[Asterisk-cvs] zaptel wcfxo.c,1.20,1.21

markster at lists.digium.com markster at lists.digium.com
Mon Nov 17 15:43:24 CST 2003


Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv15164

Modified Files:
	wcfxo.c 
Log Message:
Fix up a missing one


Index: wcfxo.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wcfxo.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- wcfxo.c	17 Nov 2003 22:06:15 -0000	1.20
+++ wcfxo.c	17 Nov 2003 22:09:40 -0000	1.21
@@ -322,12 +322,12 @@
 		}
 		/* Look for pegging to indicate ringing */
 		sample = (short)(le32_to_cpu(readchunk[(x << 1) + (1 - wc->alt)]) >> 16);
-		if ((sample > 32000) && (peg != 1)) {
+		if ((sample > 32000) && (wc->peg != 1)) {
 			if ((wc->pegtimer < PEGTIME) && (wc->pegtimer > MINPEGTIME))
 				wc->pegcount++;
 			wc->pegtimer = 0;
 			wc->peg = 1;
-		} else if ((sample < -32000) && (peg != -1)) {
+		} else if ((sample < -32000) && (wc->peg != -1)) {
 			if ((wc->pegtimer < PEGTIME) && (wc->pegtimer > MINPEGTIME))
 				wc->pegcount++;
 			wc->pegtimer = 0;




More information about the svn-commits mailing list