[asterisk-commits] trunk - r7640 /trunk/channels/chan_zap.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Dec 26 17:56:46 CST 2005


Author: markster
Date: Mon Dec 26 17:56:44 2005
New Revision: 7640

URL: http://svn.digium.com/view/asterisk?rev=7640&view=rev
Log:
Don't do DTMF detect on pseudo's!

Modified:
    trunk/channels/chan_zap.c

Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?rev=7640&r1=7639&r2=7640&view=diff
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Mon Dec 26 17:56:44 2005
@@ -3021,6 +3021,9 @@
 #ifdef ZT_TONEDETECT
 	int val;
 #endif
+
+	if (p->channel == CHAN_PSEUDO)
+		return;
 
 	p->ignoredtmf = 0;
 
@@ -5101,7 +5104,10 @@
 			if (i->dsp) {
 				ast_log(LOG_DEBUG, "Already have a dsp on %s?\n", tmp->name);
 			} else {
-				i->dsp = ast_dsp_new();
+				if (i->channel != CHAN_PSEUDO)
+					i->dsp = ast_dsp_new();
+				else
+					i->dsp = NULL;
 				if (i->dsp) {
 					i->dsp_features = features & ~DSP_PROGRESS_TALK;
 #ifdef ZAPATA_PRI



More information about the asterisk-commits mailing list