[asterisk-commits] alecdavis: branch 1.6.2 r234898 - in /branches/1.6.2: ./ main/dsp.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 14 21:08:56 CST 2009


Author: alecdavis
Date: Mon Dec 14 21:08:54 2009
New Revision: 234898

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=234898
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.2/   (props changed)
    branches/1.6.2/main/dsp.c

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.2/main/dsp.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/main/dsp.c?view=diff&rev=234898&r1=234897&r2=234898
==============================================================================
--- branches/1.6.2/main/dsp.c (original)
+++ branches/1.6.2/main/dsp.c Mon Dec 14 21:08:54 2009
@@ -1410,6 +1410,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