[zaptel-commits] mattf: branch 1.4 r3161 - /branches/1.4/wct4xxp/base.c

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Thu Oct 18 15:53:41 CDT 2007


Author: mattf
Date: Thu Oct 18 15:53:40 2007
New Revision: 3161

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3161
Log:
Make sure we only increment timingslips when there actually are timing slips, instead of everytime we service the framer

Modified:
    branches/1.4/wct4xxp/base.c

Modified: branches/1.4/wct4xxp/base.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/wct4xxp/base.c?view=diff&rev=3161&r1=3160&r2=3161
==============================================================================
--- branches/1.4/wct4xxp/base.c (original)
+++ branches/1.4/wct4xxp/base.c Thu Oct 18 15:53:40 2007
@@ -2617,7 +2617,9 @@
 			t4_check_alarms(wc, span);		
 	}
 	if (!ts->span.alarms) {
-		ts->span.timingslips++;
+		if ((isr3 & 0x3) || (isr4 & 0xc0))
+			ts->span.timingslips++;
+
 		if (debug & DEBUG_MAIN) {
 			if (isr3 & 0x02)
 				printk("TE%d10P: RECEIVE slip NEGATIVE on span %d\n", wc->numspans, span + 1);




More information about the zaptel-commits mailing list