From fa1cb68b3cd5855d2b0fbca26a0aa36582c100c4 Mon Sep 17 00:00:00 2001 From: Brian West Date: Wed, 3 Mar 2010 22:12:35 +0000 Subject: [PATCH] MODENDP-296 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16888 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- conf/sip_profiles/external.xml | 2 +- conf/sip_profiles/internal-ipv6.xml | 2 +- conf/sip_profiles/internal.xml | 2 +- src/mod/endpoints/mod_sofia/sofia.c | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/conf/sip_profiles/external.xml b/conf/sip_profiles/external.xml index 5f6435f141..8f1076364c 100644 --- a/conf/sip_profiles/external.xml +++ b/conf/sip_profiles/external.xml @@ -25,7 +25,7 @@ - + diff --git a/conf/sip_profiles/internal-ipv6.xml b/conf/sip_profiles/internal-ipv6.xml index 755e172dbf..1e9019a720 100644 --- a/conf/sip_profiles/internal-ipv6.xml +++ b/conf/sip_profiles/internal-ipv6.xml @@ -13,7 +13,7 @@ - + diff --git a/conf/sip_profiles/internal.xml b/conf/sip_profiles/internal.xml index 11df053f8f..1e319faf67 100644 --- a/conf/sip_profiles/internal.xml +++ b/conf/sip_profiles/internal.xml @@ -48,7 +48,7 @@ - + diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 06e6c4bb7a..835155e0b4 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -2477,7 +2477,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")) { uint32_t dur = atoi(val); - if (dur > switch_core_min_dtmf_duration(0) && dur < switch_core_max_dtmf_duration(0)) { + 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; @@ -3259,7 +3259,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")) { uint32_t dur = atoi(val); - if (dur > switch_core_min_dtmf_duration(0) && dur < switch_core_max_dtmf_duration(0)) { + 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;