[Asterisk-cvs] zaptel zaptel.c,1.92,1.93

markster at lists.digium.com markster at lists.digium.com
Fri Sep 10 11:51:57 CDT 2004


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

Modified Files:
	zaptel.c 
Log Message:
Merge timing patch from Paul


Index: zaptel.c
===================================================================
RCS file: /usr/cvsroot/zaptel/zaptel.c,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -d -r1.92 -r1.93
--- zaptel.c	25 Aug 2004 16:31:06 -0000	1.92
+++ zaptel.c	10 Sep 2004 15:53:58 -0000	1.93
@@ -2576,6 +2576,15 @@
 		span->lastalarms = span->alarms;
 		for (x=0;x < span->channels;x++)
 			zt_qevent_lock(&span->chans[x], j);
+		/* Switch to other master if current master in alarm */
+		for (x=1; x<maxspans; x++) {
+			if (spans[x] && !spans[x]->alarms) {
+				if(master != spans[x])
+					printk("Zaptel: Master changed to %s\n", spans[x]->name);
+				master = spans[x];
+				break;
+			}
+		}
 	}
 }
 




More information about the svn-commits mailing list