[svn-commits] trunk - r893 /trunk/wct4xxp.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Jan 12 10:08:04 CST 2006


Author: markster
Date: Thu Jan 12 10:08:03 2006
New Revision: 893

URL: http://svn.digium.com/view/zaptel?rev=893&view=rev
Log:
Fix loopup / loopdown code

Modified:
    trunk/wct4xxp.c

Modified: trunk/wct4xxp.c
URL: http://svn.digium.com/view/zaptel/trunk/wct4xxp.c?rev=893&r1=892&r2=893&view=diff
==============================================================================
--- trunk/wct4xxp.c (original)
+++ trunk/wct4xxp.c Thu Jan 12 10:08:03 2006
@@ -2143,13 +2143,19 @@
 	int span;
 	for (span=0;span<wc->numspans;span++) {
 		struct t4_span *ts = wc->tspans[span];
+		int docheck=0;
+		if (ts->loopupcnt || ts->loopdowncnt)
+			docheck++;
 		if (ts->alarmtimer) {
 			if (!--ts->alarmtimer) {
+				docheck++;
 				ts->span.alarms &= ~(ZT_ALARM_RECOVER);
-				if (!polling)
-					__t4_check_alarms(wc, span);
-				zt_alarm_notify(&ts->span);
-			}
+			}
+		}
+		if (docheck) {
+			if (!polling)
+				__t4_check_alarms(wc, span);
+			zt_alarm_notify(&ts->span);
 		}
 	}
 }



More information about the svn-commits mailing list