mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
FSCORE-442
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14893 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1926,7 +1926,7 @@ switch_status_t reconfig_sofia(sofia_profile_t *profile)
|
||||
profile->challenge_realm = switch_core_strdup(profile->pool, val);
|
||||
} else if (!strcasecmp(var, "dtmf-duration")) {
|
||||
int dur = atoi(val);
|
||||
if (dur > 10 && dur < 8000) {
|
||||
if (dur > switch_core_min_dtmf_duration(0) && dur < switch_core_max_dtmf_duration(0)) {
|
||||
profile->dtmf_duration = dur;
|
||||
} else {
|
||||
profile->dtmf_duration = SWITCH_DEFAULT_DTMF_DURATION;
|
||||
@@ -2598,7 +2598,7 @@ switch_status_t config_sofia(int reload, char *profile_name)
|
||||
profile->challenge_realm = switch_core_strdup(profile->pool, val);
|
||||
} else if (!strcasecmp(var, "dtmf-duration")) {
|
||||
int dur = atoi(val);
|
||||
if (dur > 10 && dur < 8000) {
|
||||
if (dur > switch_core_min_dtmf_duration(0) && dur < switch_core_max_dtmf_duration(0)) {
|
||||
profile->dtmf_duration = dur;
|
||||
} else {
|
||||
profile->dtmf_duration = SWITCH_DEFAULT_DTMF_DURATION;
|
||||
|
||||
Reference in New Issue
Block a user