[Asterisk-cvs] zaptel wct4xxp.c,1.25,1.26

markster at lists.digium.com markster at lists.digium.com
Fri Apr 2 12:22:35 CST 2004


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

Modified Files:
	wct4xxp.c 
Log Message:
Don't consider yellow alarm in selecting timing sources


Index: wct4xxp.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wct4xxp.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- wct4xxp.c	2 Apr 2004 16:58:23 -0000	1.25
+++ wct4xxp.c	2 Apr 2004 17:21:44 -0000	1.26
@@ -1299,8 +1299,11 @@
 		alarms |= ZT_ALARM_LOOPBACK;
 
 	wc->spans[span].alarms = alarms;
-	/* Re-check the timing source when we enter alarm */
-	if (!oldalarms && alarms)
+	/* Re-check the timing source when we enter/leave alarm, not withstanding
+	   yellow alarm */
+	oldalarms &= ~ZT_ALARM_YELLOW;
+	alarms &= ~ZT_ALARM_YELLOW;
+	if ((!oldalarms && alarms) || (oldalarms && !alarms))
 		t4_set_timing_source_auto(wc);
 
 	zt_alarm_notify(&wc->spans[span]);




More information about the svn-commits mailing list