[Asterisk-cvs] asterisk dsp.c,1.35,1.36

markster at lists.digium.com markster at lists.digium.com
Tue Jan 11 12:06:21 CST 2005


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv7201

Modified Files:
	dsp.c 
Log Message:
Fix typo in tone detect (bug #3315)


Index: dsp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/dsp.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- dsp.c	3 Jan 2005 01:21:15 -0000	1.35
+++ dsp.c	11 Jan 2005 18:10:30 -0000	1.36
@@ -1196,10 +1196,10 @@
 		}
 #endif
 		if (avgtone > dsp->historicnoise[x]) {
-			if (avgtone - (avgtone / BUSY_PERCENT) <= dsp->historicsilence[x])
+			if (avgtone - (avgtone / BUSY_PERCENT) <= dsp->historicnoise[x])
 				hittone++;
 		} else {
-			if (avgtone + (avgtone / BUSY_PERCENT) >= dsp->historicsilence[x])
+			if (avgtone + (avgtone / BUSY_PERCENT) >= dsp->historicnoise[x])
 				hittone++;
 		}
 	}




More information about the svn-commits mailing list