[asterisk-commits] file: branch 1.4 r181295 - /branches/1.4/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Mar 11 11:36:54 CDT 2009


Author: file
Date: Wed Mar 11 11:36:50 2009
New Revision: 181295

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=181295
Log:
Fix a problem with inband DTMF detection on outgoing SIP calls when dtmfmode=auto.

When dtmfmode was set to auto the inband DTMF detector was not setup
on outgoing SIP calls. This caused inband DTMF detection to fail.
The inband DTMF detector is now setup for both dtmfmode inband and auto.

ssue #13713)
Reported by: makoto

Modified:
    branches/1.4/channels/chan_sip.c

Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=181295&r1=181294&r2=181295
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Wed Mar 11 11:36:50 2009
@@ -4154,7 +4154,7 @@
 
 
 
-	if (ast_test_flag(&i->flags[0], SIP_DTMF) ==  SIP_DTMF_INBAND) {
+	if ((ast_test_flag(&i->flags[0], SIP_DTMF) == SIP_DTMF_INBAND) || (ast_test_flag(&i->flags[0], SIP_DTMF) == SIP_DTMF_AUTO)) {
 		i->vad = ast_dsp_new();
 		ast_dsp_set_features(i->vad, DSP_FEATURE_DTMF_DETECT);
 		if (global_relaxdtmf)




More information about the asterisk-commits mailing list