[svn-commits] branch 1.2 - r7641 /branches/1.2/channels/chan_zap.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Mon Dec 26 18:07:47 CST 2005


Author: kpfleming
Date: Mon Dec 26 18:07:45 2005
New Revision: 7641

URL: http://svn.digium.com/view/asterisk?rev=7641&view=rev
Log:
backport fix to ensure that DSP is never enabled on pseudo channels

Modified:
    branches/1.2/channels/chan_zap.c

Modified: branches/1.2/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_zap.c?rev=7641&r1=7640&r2=7641&view=diff
==============================================================================
--- branches/1.2/channels/chan_zap.c (original)
+++ branches/1.2/channels/chan_zap.c Mon Dec 26 18:07:45 2005
@@ -2958,6 +2958,9 @@
 #ifdef ZT_TONEDETECT
 	int val;
 #endif
+
+	if (p->channel == CHAN_PSEUDO)
+		return;
 
 	p->ignoredtmf = 0;
 
@@ -5031,7 +5034,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 svn-commits mailing list