[asterisk-commits] alecdavis: branch 1.6.1 r234899 - in /branches/1.6.1: ./ main/dsp.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Dec 14 21:10:38 CST 2009
Author: alecdavis
Date: Mon Dec 14 21:10:36 2009
New Revision: 234899
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=234899
Log:
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)
Modified:
branches/1.6.1/ (props changed)
branches/1.6.1/main/dsp.c
Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.1/main/dsp.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.1/main/dsp.c?view=diff&rev=234899&r1=234898&r2=234899
==============================================================================
--- branches/1.6.1/main/dsp.c (original)
+++ branches/1.6.1/main/dsp.c Mon Dec 14 21:10:36 2009
@@ -1367,6 +1367,12 @@
memmove(dsp->digit_state.digits, dsp->digit_state.digits + 1, dsp->digit_state.current_digits);
dsp->digit_state.current_digits--;
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) {
More information about the asterisk-commits
mailing list