[svn-commits] branch 1.2 - r892 /branches/1.2/wct4xxp.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Jan 12 10:07:42 CST 2006


Author: markster
Date: Thu Jan 12 10:07:41 2006
New Revision: 892

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

Modified:
    branches/1.2/wct4xxp.c

Modified: branches/1.2/wct4xxp.c
URL: http://svn.digium.com/view/zaptel/branches/1.2/wct4xxp.c?rev=892&r1=891&r2=892&view=diff
==============================================================================
--- branches/1.2/wct4xxp.c (original)
+++ branches/1.2/wct4xxp.c Thu Jan 12 10:07:41 2006
@@ -1923,13 +1923,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