restarts busydetector (if enabled) when DTMF is received.
(closes issue #16389) Reported by: alecdavis Tested by: alecdavis Patch dtmf_busydetector.diff.txt uploaded by alecdavis (license 585) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@234897 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
90be4cf5ef
commit
6c50fad99f
|
@ -1401,6 +1401,12 @@ struct ast_frame *ast_dsp_process(struct ast_channel *chan, struct ast_dsp *dsp,
|
||||||
memmove(dsp->digit_state.digits, dsp->digit_state.digits + 1, dsp->digit_state.current_digits);
|
memmove(dsp->digit_state.digits, dsp->digit_state.digits + 1, dsp->digit_state.current_digits);
|
||||||
dsp->digit_state.current_digits--;
|
dsp->digit_state.current_digits--;
|
||||||
dsp->dtmf_began = 0;
|
dsp->dtmf_began = 0;
|
||||||
|
|
||||||
|
if (dsp->features & DSP_FEATURE_BUSY_DETECT) {
|
||||||
|
/* Reset Busy Detector as we have some confirmed activity */
|
||||||
|
memset(dsp->historicsilence, 0, sizeof(dsp->historicsilence));
|
||||||
|
memset(dsp->historicnoise, 0, sizeof(dsp->historicnoise));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event) {
|
if (event) {
|
||||||
|
|
Loading…
Reference in New Issue