From 9f92220a9c1940000541d40b29ffe174ac4f47ca Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Tue, 27 Dec 2005 00:07:45 +0000 Subject: [PATCH] backport fix to ensure that DSP is never enabled on pseudo channels git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7641 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_zap.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 4a59a58f66..d591abd999 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -2959,6 +2959,9 @@ static void enable_dtmf_detect(struct zt_pvt *p) int val; #endif + if (p->channel == CHAN_PSEUDO) + return; + p->ignoredtmf = 0; #ifdef ZT_TONEDETECT @@ -5031,7 +5034,10 @@ static struct ast_channel *zt_new(struct zt_pvt *i, int state, int startpbx, int 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