|
|
|
@ -476,6 +476,7 @@ static void options(int *argc, char ***argv) {
|
|
|
|
|
{ "https-cert", 0,0, G_OPTION_ARG_STRING, &rtpe_config.https_cert,"Certificate for HTTPS and WSS","FILE"},
|
|
|
|
|
{ "https-key", 0,0, G_OPTION_ARG_STRING, &rtpe_config.https_key, "Private key for HTTPS and WSS","FILE"},
|
|
|
|
|
{ "http-threads", 0,0, G_OPTION_ARG_INT, &rtpe_config.http_threads,"Number of worker threads for HTTP and WS","INT"},
|
|
|
|
|
{ "software-id", 0,0, G_OPTION_ARG_STRING, &rtpe_config.software_id,"Identification string of this software presented to external systems","STRING"},
|
|
|
|
|
#ifdef WITH_TRANSCODING
|
|
|
|
|
{ "dtx-delay", 0,0, G_OPTION_ARG_INT, &rtpe_config.dtx_delay, "Delay in milliseconds to trigger DTX handling","INT"},
|
|
|
|
|
{ "max-dtx", 0,0, G_OPTION_ARG_INT, &rtpe_config.max_dtx, "Maximum duration of DTX handling", "INT"},
|
|
|
|
@ -734,6 +735,10 @@ static void options(int *argc, char ***argv) {
|
|
|
|
|
}
|
|
|
|
|
rtpe_config.cn_payload.len = len;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!rtpe_config.software_id)
|
|
|
|
|
rtpe_config.software_id = g_strdup_printf("rtpengine-%s", RTPENGINE_VERSION);
|
|
|
|
|
g_strcanon(rtpe_config.software_id, "QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890-", '-');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void fill_initial_rtpe_cfg(struct rtpengine_config* ini_rtpe_cfg) {
|
|
|
|
@ -859,6 +864,7 @@ static void options_free(void) {
|
|
|
|
|
g_strfreev(rtpe_config.https_ifs);
|
|
|
|
|
g_free(rtpe_config.https_cert);
|
|
|
|
|
g_free(rtpe_config.https_key);
|
|
|
|
|
g_free(rtpe_config.software_id);
|
|
|
|
|
|
|
|
|
|
// free common config options
|
|
|
|
|
config_load_free(&rtpe_config.common);
|
|
|
|
|