diff options
author | Jason Parker <jparker@digium.com> | 2008-03-19 22:25:34 +0000 |
---|---|---|
committer | Jason Parker <jparker@digium.com> | 2008-03-19 22:25:34 +0000 |
commit | 9e3603dac9c84cbd6204ccc58c081fbc4fd3034a (patch) | |
tree | 92d567411c45399c63a2504af296191c91956bb0 /channels | |
parent | 8d4276578a1e9b60f55647165b4e361647f6af3b (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: https://origsvn.digium.com/svn/asterisk/trunk@110161 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_h323.c | 2 | ||||
-rw-r--r-- | channels/chan_mgcp.c | 2 | ||||
-rw-r--r-- | channels/chan_misdn.c | 6 | ||||
-rw-r--r-- | channels/chan_sip.c | 4 | ||||
-rw-r--r-- | channels/chan_zap.c | 8 |
5 files changed, 11 insertions, 11 deletions
diff --git a/channels/chan_h323.c b/channels/chan_h323.c index 2b1ef51e7..10ef7e133 100644 --- a/channels/chan_h323.c +++ b/channels/chan_h323.c @@ -1053,7 +1053,7 @@ static struct ast_channel *__oh323_new(struct oh323_pvt *pvt, int state, const c /* Allocate dsp for in-band DTMF support */ if (pvt->options.dtmfmode & H323_DTMF_INBAND) { pvt->vad = ast_dsp_new(); - ast_dsp_set_features(pvt->vad, DSP_FEATURE_DTMF_DETECT); + ast_dsp_set_features(pvt->vad, DSP_FEATURE_DIGIT_DETECT); } /* Register channel functions. */ ch->tech_pvt = pvt; diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c index 70cf0c4f2..f18dac361 100644 --- a/channels/chan_mgcp.c +++ b/channels/chan_mgcp.c @@ -1511,7 +1511,7 @@ static struct ast_channel *mgcp_new(struct mgcp_subchannel *sub, int state) ast_channel_set_fd(tmp, 0, ast_rtp_fd(sub->rtp)); if (i->dtmfmode & (MGCP_DTMF_INBAND | MGCP_DTMF_HYBRID)) { i->dsp = ast_dsp_new(); - ast_dsp_set_features(i->dsp,DSP_FEATURE_DTMF_DETECT); + ast_dsp_set_features(i->dsp, DSP_FEATURE_DIGIT_DETECT); /* this is to prevent clipping of dtmf tones during dsp processing */ ast_dsp_set_digitmode(i->dsp, DSP_DIGITMODE_NOQUELCH); } else { diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index 1a5d671e1..b09c11e94 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -2154,9 +2154,9 @@ static int read_config(struct chan_list *ch, int orig) ch->dsp = ast_dsp_new(); if (ch->dsp) { if (ch->faxdetect) - ast_dsp_set_features(ch->dsp, DSP_FEATURE_DTMF_DETECT | DSP_FEATURE_FAX_DETECT); + ast_dsp_set_features(ch->dsp, DSP_FEATURE_DIGIT_DETECT | DSP_FEATURE_FAX_DETECT); else - ast_dsp_set_features(ch->dsp, DSP_FEATURE_DTMF_DETECT ); + ast_dsp_set_features(ch->dsp, DSP_FEATURE_DIGIT_DETECT ); } if (!ch->trans) ch->trans = ast_translator_build_path(AST_FORMAT_SLINEAR, AST_FORMAT_ALAW); @@ -5492,7 +5492,7 @@ static int misdn_set_opt_exec(struct ast_channel *chan, void *data) if (!ch->dsp) ch->dsp = ast_dsp_new(); if (ch->dsp) - ast_dsp_set_features(ch->dsp, DSP_FEATURE_DTMF_DETECT | DSP_FEATURE_FAX_DETECT); + ast_dsp_set_features(ch->dsp, DSP_FEATURE_DIGIT_DETECT | DSP_FEATURE_FAX_DETECT); if (!ch->trans) ch->trans = ast_translator_build_path(AST_FORMAT_SLINEAR, AST_FORMAT_ALAW); } diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 55e3362b1..dbdc20f13 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5317,7 +5317,7 @@ static struct ast_channel *sip_new(struct sip_pvt *i, int state, const char *tit if (ast_test_flag(&i->flags[0], SIP_DTMF) == SIP_DTMF_INBAND) { i->vad = ast_dsp_new(); - ast_dsp_set_features(i->vad, DSP_FEATURE_DTMF_DETECT); + ast_dsp_set_features(i->vad, DSP_FEATURE_DIGIT_DETECT); if (global_relaxdtmf) ast_dsp_set_digitmode(i->vad, DSP_DIGITMODE_DTMF | DSP_DIGITMODE_RELAXDTMF); } @@ -21187,7 +21187,7 @@ static int sip_dtmfmode(struct ast_channel *chan, void *data) if (ast_test_flag(&p->flags[0], SIP_DTMF) == SIP_DTMF_INBAND) { if (!p->vad) { p->vad = ast_dsp_new(); - ast_dsp_set_features(p->vad, DSP_FEATURE_DTMF_DETECT); + ast_dsp_set_features(p->vad, DSP_FEATURE_DIGIT_DETECT); } } else { if (p->vad) { 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 } |