mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
add auto-jitterbuffer-msec param and auto-disable the jitterbuffer when briding to another channel who also has a jitterbuffer so both legs will disable during a bridge
This commit is contained in:
@@ -2351,6 +2351,11 @@ switch_status_t reconfig_sofia(sofia_profile_t *profile)
|
||||
} else {
|
||||
sofia_clear_pflag(profile, PFLAG_DISABLE_HOLD);
|
||||
}
|
||||
} else if (!strcasecmp(var, "auto-jitterbuffer-msec")) {
|
||||
int msec = atoi(val);
|
||||
if (msec > 19) {
|
||||
profile->jb_msec = switch_core_strdup(profile->pool, val);
|
||||
}
|
||||
} else if (!strcasecmp(var, "sip-trace")) {
|
||||
if (switch_true(val)) {
|
||||
sofia_set_flag(profile, TFLAG_TPORT_LOG);
|
||||
@@ -3089,6 +3094,11 @@ switch_status_t config_sofia(int reload, char *profile_name)
|
||||
} else {
|
||||
sofia_clear_pflag(profile, PFLAG_DISABLE_HOLD);
|
||||
}
|
||||
} else if (!strcasecmp(var, "auto-jitterbuffer-msec")) {
|
||||
int msec = atoi(val);
|
||||
if (msec > 19) {
|
||||
profile->jb_msec = switch_core_strdup(profile->pool, val);
|
||||
}
|
||||
} else if (!strcasecmp(var, "dtmf-type")) {
|
||||
if (!strcasecmp(val, "rfc2833")) {
|
||||
profile->dtmf_type = DTMF_2833;
|
||||
|
||||
Reference in New Issue
Block a user