aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-19 22:25:34 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-19 22:25:34 +0000
commit8c8015552c14c0fdce5dd61416098659fb4f402c (patch)
tree92d567411c45399c63a2504af296191c91956bb0 /channels/chan_zap.c
parent2c4aac03992077a08b75c4c43f0041778075f951 (diff)
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: http://svn.digium.com/svn/asterisk/trunk@110161 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r--channels/chan_zap.c8
1 files changed, 4 insertions, 4 deletions
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
}