MODENDP-296
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16888 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
745ef92c60
commit
fa1cb68b3c
|
@ -25,7 +25,7 @@
|
||||||
<param name="sip-port" value="$${external_sip_port}"/>
|
<param name="sip-port" value="$${external_sip_port}"/>
|
||||||
<param name="dialplan" value="XML"/>
|
<param name="dialplan" value="XML"/>
|
||||||
<param name="context" value="public"/>
|
<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="inbound-codec-prefs" value="$${global_codec_prefs}"/>
|
||||||
<param name="outbound-codec-prefs" value="$${outbound_codec_prefs}"/>
|
<param name="outbound-codec-prefs" value="$${outbound_codec_prefs}"/>
|
||||||
<param name="hold-music" value="$${hold_music}"/>
|
<param name="hold-music" value="$${hold_music}"/>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<!-- port to bind to for sip traffic -->
|
<!-- port to bind to for sip traffic -->
|
||||||
<param name="sip-port" value="$${internal_sip_port}"/>
|
<param name="sip-port" value="$${internal_sip_port}"/>
|
||||||
<param name="dialplan" value="XML"/>
|
<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="inbound-codec-prefs" value="$${global_codec_prefs}"/>
|
||||||
<param name="outbound-codec-prefs" value="$${global_codec_prefs}"/>
|
<param name="outbound-codec-prefs" value="$${global_codec_prefs}"/>
|
||||||
<param name="use-rtp-timer" value="true"/>
|
<param name="use-rtp-timer" value="true"/>
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
<!-- port to bind to for sip traffic -->
|
<!-- port to bind to for sip traffic -->
|
||||||
<param name="sip-port" value="$${internal_sip_port}"/>
|
<param name="sip-port" value="$${internal_sip_port}"/>
|
||||||
<param name="dialplan" value="XML"/>
|
<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="inbound-codec-prefs" value="$${global_codec_prefs}"/>
|
||||||
<param name="outbound-codec-prefs" value="$${global_codec_prefs}"/>
|
<param name="outbound-codec-prefs" value="$${global_codec_prefs}"/>
|
||||||
<param name="rtp-timer-name" value="soft"/>
|
<param name="rtp-timer-name" value="soft"/>
|
||||||
|
|
|
@ -2477,7 +2477,7 @@ switch_status_t reconfig_sofia(sofia_profile_t *profile)
|
||||||
profile->challenge_realm = switch_core_strdup(profile->pool, val);
|
profile->challenge_realm = switch_core_strdup(profile->pool, val);
|
||||||
} else if (!strcasecmp(var, "dtmf-duration")) {
|
} else if (!strcasecmp(var, "dtmf-duration")) {
|
||||||
uint32_t dur = atoi(val);
|
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;
|
profile->dtmf_duration = dur;
|
||||||
} else {
|
} else {
|
||||||
profile->dtmf_duration = SWITCH_DEFAULT_DTMF_DURATION;
|
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);
|
profile->challenge_realm = switch_core_strdup(profile->pool, val);
|
||||||
} else if (!strcasecmp(var, "dtmf-duration")) {
|
} else if (!strcasecmp(var, "dtmf-duration")) {
|
||||||
uint32_t dur = atoi(val);
|
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;
|
profile->dtmf_duration = dur;
|
||||||
} else {
|
} else {
|
||||||
profile->dtmf_duration = SWITCH_DEFAULT_DTMF_DURATION;
|
profile->dtmf_duration = SWITCH_DEFAULT_DTMF_DURATION;
|
||||||
|
|
Loading…
Reference in New Issue