]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
MODENDP-296
authorBrian West <brian@freeswitch.org>
Wed, 3 Mar 2010 22:12:35 +0000 (22:12 +0000)
committerBrian West <brian@freeswitch.org>
Wed, 3 Mar 2010 22:12:35 +0000 (22:12 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16888 d0543943-73ff-0310-b7d9-9358b9ac24b2

conf/sip_profiles/external.xml
conf/sip_profiles/internal-ipv6.xml
conf/sip_profiles/internal.xml
src/mod/endpoints/mod_sofia/sofia.c

index 5f6435f1417ce5eeca4e15dc64375cf7185b3118..8f1076364cac461a12523c33bc081cc2ca6cff9f 100644 (file)
@@ -25,7 +25,7 @@
     <param name="sip-port" value="$${external_sip_port}"/>
     <param name="dialplan" value="XML"/>
     <param name="context" value="public"/>
-    <param name="dtmf-duration" value="100"/>
+    <param name="dtmf-duration" value="2000"/>
     <param name="inbound-codec-prefs" value="$${global_codec_prefs}"/>
     <param name="outbound-codec-prefs" value="$${outbound_codec_prefs}"/>
     <param name="hold-music" value="$${hold_music}"/>
index 755e172dbfc18422a9a5a9964c1f0a007447e1b6..1e9019a7209ffc616a320f44902b0470b1eb7884 100644 (file)
@@ -13,7 +13,7 @@
     <!-- port to bind to for sip traffic -->
     <param name="sip-port" value="$${internal_sip_port}"/>
     <param name="dialplan" value="XML"/>
-    <param name="dtmf-duration" value="100"/>
+    <param name="dtmf-duration" value="2000"/>
     <param name="inbound-codec-prefs" value="$${global_codec_prefs}"/>
     <param name="outbound-codec-prefs" value="$${global_codec_prefs}"/>
     <param name="use-rtp-timer" value="true"/>
index 11df053f8f654c1dc3b7b317108672fa21dee56f..1e319faf671321e28b0fb3f60d79a584a20fe947 100644 (file)
@@ -48,7 +48,7 @@
     <!-- port to bind to for sip traffic -->
     <param name="sip-port" value="$${internal_sip_port}"/>
     <param name="dialplan" value="XML"/>
-    <param name="dtmf-duration" value="100"/>
+    <param name="dtmf-duration" value="2000"/>
     <param name="inbound-codec-prefs" value="$${global_codec_prefs}"/>
     <param name="outbound-codec-prefs" value="$${global_codec_prefs}"/>
     <param name="rtp-timer-name" value="soft"/>
index 06e6c4bb7abdf384fa5129313796808e7c813849..835155e0b4700da36be5d187ba9e2fb46104e5c8 100644 (file)
@@ -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;