[Asterisk-cvs] zaptel zaptel.c,1.95,1.96
markster at lists.digium.com
markster at lists.digium.com
Wed Oct 6 12:10:22 CDT 2004
Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv11507
Modified Files:
zaptel.c
Log Message:
Can't consider masters that are not running...
Index: zaptel.c
===================================================================
RCS file: /usr/cvsroot/zaptel/zaptel.c,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -d -r1.95 -r1.96
--- zaptel.c 27 Sep 2004 19:50:03 -0000 1.95
+++ zaptel.c 6 Oct 2004 16:11:46 -0000 1.96
@@ -2608,7 +2608,7 @@
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 (spans[x] && !spans[x]->alarms && (spans[x]->flags & ZT_FLAG_RUNNING)) {
if(master != spans[x])
printk("Zaptel: Master changed to %s\n", spans[x]->name);
master = spans[x];
More information about the svn-commits
mailing list