[asterisk-commits] branch 1.2 r36697 - /branches/1.2/dsp.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Jul 2 20:23:37 MST 2006


Author: russell
Date: Sun Jul  2 22:23:36 2006
New Revision: 36697

URL: http://svn.digium.com/view/asterisk?rev=36697&view=rev
Log:
fix the build with BUSYDETECT_TONEONLY defined (issue #7414)

Modified:
    branches/1.2/dsp.c

Modified: branches/1.2/dsp.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/dsp.c?rev=36697&r1=36696&r2=36697&view=diff
==============================================================================
--- branches/1.2/dsp.c (original)
+++ branches/1.2/dsp.c Sun Jul  2 22:23:36 2006
@@ -1279,6 +1279,7 @@
 			res = 0;
 		}
 	}
+#ifndef BUSYDETECT_TONEONLY
 	/* If we know the expected busy tone silent-period length, check we are in the range */
 	if (res && (dsp->busy_quietlength > 0)) {
 		if (abs(avgsilence - dsp->busy_quietlength) > (dsp->busy_quietlength*BUSY_PAT_PERCENT/100)) {
@@ -1289,6 +1290,7 @@
 			res = 0;
 		}
 	}
+#endif
 #if 1
 	if (res)
 		ast_log(LOG_DEBUG, "ast_dsp_busydetect detected busy, avgtone: %d, avgsilence %d\n", avgtone, avgsilence);



More information about the asterisk-commits mailing list