[Asterisk-cvs] zaptel wct4xxp.c,1.33,1.34

markster at lists.digium.com markster at lists.digium.com
Fri Apr 9 14:43:24 CDT 2004


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

Modified Files:
	wct4xxp.c 
Log Message:
Still okay to be a source if you have yellow alarm (duh!)


Index: wct4xxp.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wct4xxp.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- wct4xxp.c	9 Apr 2004 17:19:57 -0000	1.33
+++ wct4xxp.c	9 Apr 2004 18:44:39 -0000	1.34
@@ -675,7 +675,7 @@
 	for (x=0;x<4;x++) {
 		if (wc->syncs[x]) {
 			if ((wc->spans[wc->syncs[x] - 1].flags & ZT_FLAG_RUNNING) && 
-				!(wc->spans[wc->syncs[x] - 1].alarms)) {
+				!(wc->spans[wc->syncs[x] - 1].alarms & ~(ZT_ALARM_YELLOW))) {
 					/* Valid timing sourc e*/
 					__t4_set_timing_source(wc, wc->syncs[x] - 1);
 					return;




More information about the svn-commits mailing list