|
|
|
@ -674,6 +674,7 @@ static void options(int *argc, char ***argv, charp_ht templates) { |
|
|
|
g_autoptr(char) transcode_config = NULL; |
|
|
|
int silent_timeout = 0; |
|
|
|
int timeout = 0; |
|
|
|
int final_timeout = 0; |
|
|
|
|
|
|
|
GOptionEntry e[] = { |
|
|
|
{ "table", 't', 0, G_OPTION_ARG_INT, &rtpe_config.kernel_table, "Kernel table to use", "INT" }, |
|
|
|
@ -706,7 +707,7 @@ static void options(int *argc, char ***argv, charp_ht templates) { |
|
|
|
{ "control-pmtu", 0,0, G_OPTION_ARG_STRING, &control_pmtu, "Path MTU discovery behaviour on UDP control sockets", "want|dont" }, |
|
|
|
{ "timeout", 'o', 0, G_OPTION_ARG_INT, &timeout, "RTP timeout", "SECS" }, |
|
|
|
{ "silent-timeout",'s',0,G_OPTION_ARG_INT, &silent_timeout, "RTP timeout for muted", "SECS" }, |
|
|
|
{ "final-timeout",'a',0,G_OPTION_ARG_INT, &rtpe_config.final_timeout, "Call timeout", "SECS" }, |
|
|
|
{ "final-timeout",'a',0,G_OPTION_ARG_INT, &final_timeout, "Call timeout", "SECS" }, |
|
|
|
{ "offer-timeout",0,0, G_OPTION_ARG_INT, &rtpe_config.offer_timeout, "Timeout for incomplete one-sided calls", "SECS" }, |
|
|
|
{ "port-min", 'm', 0, G_OPTION_ARG_INT, &rtpe_config.port_min, "Lowest port to use for RTP", "INT" }, |
|
|
|
{ "port-max", 'M', 0, G_OPTION_ARG_INT, &rtpe_config.port_max, "Highest port to use for RTP", "INT" }, |
|
|
|
@ -1084,8 +1085,9 @@ static void options(int *argc, char ***argv, charp_ht templates) { |
|
|
|
if (rtpe_config.offer_timeout <= 0) |
|
|
|
rtpe_config.offer_timeout = 3600; |
|
|
|
|
|
|
|
if (rtpe_config.final_timeout <= 0) |
|
|
|
rtpe_config.final_timeout = 0; |
|
|
|
rtpe_config.final_timeout_us = final_timeout * 1000000LL; |
|
|
|
if (rtpe_config.final_timeout_us <= 0) |
|
|
|
rtpe_config.final_timeout_us = 0; |
|
|
|
|
|
|
|
if (rtpe_config.rtcp_interval <= 0) |
|
|
|
rtpe_config.rtcp_interval = 5000; |
|
|
|
|