mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
FS-4122
This commit is contained in:
@@ -2957,7 +2957,7 @@ switch_status_t reconfig_sofia(sofia_profile_t *profile)
|
||||
} else {
|
||||
sofia_clear_pflag(profile, PFLAG_PASS_CALLEE_ID);
|
||||
}
|
||||
} else if (!strcasecmp(var, "rtp-digit-timeout")) {
|
||||
} else if (!strcasecmp(var, "rtp-digit-delay")) {
|
||||
int delay = val ? atoi(val) : 0;
|
||||
|
||||
if (delay < 0) delay = 0;
|
||||
@@ -3747,6 +3747,7 @@ switch_status_t config_sofia(int reload, char *profile_name)
|
||||
switch_thread_rwlock_create(&profile->rwlock, profile->pool);
|
||||
switch_mutex_init(&profile->flag_mutex, SWITCH_MUTEX_NESTED, profile->pool);
|
||||
profile->dtmf_duration = 100;
|
||||
profile->rtp_digit_delay = 40;
|
||||
profile->sip_force_expires = 0;
|
||||
profile->sip_expires_max_deviation = 0;
|
||||
profile->tls_version = 0;
|
||||
@@ -3845,13 +3846,12 @@ switch_status_t config_sofia(int reload, char *profile_name)
|
||||
} else {
|
||||
sofia_clear_pflag(profile, PFLAG_LIBERAL_DTMF);
|
||||
}
|
||||
} else if (!strcasecmp(var, "rtp-digit-timeout")) {
|
||||
int delay = val ? atoi(val) : 0;
|
||||
|
||||
if (delay < 0) delay = 0;
|
||||
|
||||
} else if (!strcasecmp(var, "rtp-digit-delay")) {
|
||||
int delay = atoi(val);
|
||||
if (delay < 0) {
|
||||
delay = 0;
|
||||
}
|
||||
profile->rtp_digit_delay = (uint32_t) delay;
|
||||
|
||||
} else if (!strcasecmp(var, "watchdog-enabled")) {
|
||||
profile->watchdog_enabled = switch_true(val);
|
||||
} else if (!strcasecmp(var, "watchdog-step-timeout")) {
|
||||
|
||||
Reference in New Issue
Block a user