[Asterisk-cvs] asterisk dsp.c,1.29.2.2,1.29.2.3

russell at lists.digium.com russell at lists.digium.com
Wed Jan 12 23:02:50 CST 2005


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

Modified Files:
      Tag: v1-0
	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.29.2.2
retrieving revision 1.29.2.3
diff -u -d -r1.29.2.2 -r1.29.2.3
--- dsp.c	3 Dec 2004 01:45:25 -0000	1.29.2.2
+++ dsp.c	13 Jan 2005 05:06:49 -0000	1.29.2.3
@@ -1308,10 +1308,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