From 9e3603dac9c84cbd6204ccc58c081fbc4fd3034a Mon Sep 17 00:00:00 2001 From: Jason Parker Date: Wed, 19 Mar 2008 22:25:34 +0000 Subject: Rename DSP_FEATURE_DTMF_DETECT, because we are *NOT* only detecting DTMF digits. This was very misleading. Early cleanup for issue #11968 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@110161 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_zap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'channels/chan_zap.c') diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 88983415d..effd5cccf 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -3703,7 +3703,7 @@ static void disable_dtmf_detect(struct zt_pvt *p) ioctl(p->subs[SUB_REAL].zfd, ZT_TONEDETECT, &val); #endif if (!p->hardwaredtmf && p->dsp) { - p->dsp_features &= ~DSP_FEATURE_DTMF_DETECT; + p->dsp_features &= ~DSP_FEATURE_DIGIT_DETECT; ast_dsp_set_features(p->dsp, p->dsp_features); } } @@ -3724,7 +3724,7 @@ static void enable_dtmf_detect(struct zt_pvt *p) ioctl(p->subs[SUB_REAL].zfd, ZT_TONEDETECT, &val); #endif if (!p->hardwaredtmf && p->dsp) { - p->dsp_features |= DSP_FEATURE_DTMF_DETECT; + p->dsp_features |= DSP_FEATURE_DIGIT_DETECT; ast_dsp_set_features(p->dsp, p->dsp_features); } } @@ -5903,11 +5903,11 @@ static struct ast_channel *zt_new(struct zt_pvt *i, int state, int startpbx, int if (ioctl(i->subs[index].zfd, ZT_TONEDETECT, &x)) { #endif i->hardwaredtmf = 0; - features |= DSP_FEATURE_DTMF_DETECT; + features |= DSP_FEATURE_DIGIT_DETECT; #ifdef ZT_TONEDETECT } else if (NEED_MFDETECT(i)) { i->hardwaredtmf = 1; - features |= DSP_FEATURE_DTMF_DETECT; + features |= DSP_FEATURE_DIGIT_DETECT; } #endif } -- cgit v1.2.3