summaryrefslogtreecommitdiff
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-12-26 23:56:44 +0000
committerMark Spencer <markster@digium.com>2005-12-26 23:56:44 +0000
commit63ed37defd389f67f1406f6defb4f8ffd653402a (patch)
tree84f03cbdf09d35161958fb7ab7b54fd309f75525 /channels/chan_zap.c
parenta4f1d606b71b83429de92d7b5235d54d898c461f (diff)
Don't do DTMF detect on pseudo's!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7640 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r--channels/chan_zap.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 523c4aa01..2868c8ffa 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -3022,6 +3022,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
@@ -5101,7 +5104,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