Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv23131/channels

Modified Files:
        chan_zap.c 
Log Message:
Restart PRI when we come out of alarm if we're not already up...


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.507
retrieving revision 1.508
diff -u -d -r1.507 -r1.508
--- chan_zap.c  11 Sep 2005 17:01:10 -0000      1.507
+++ chan_zap.c  13 Sep 2005 02:20:37 -0000      1.508
@@ -2205,6 +2205,8 @@
                ast_log(LOG_NOTICE, "Switching from from d-channel %d to 
channel %d!\n",
                        pri->dchannels[oldslot], pri->dchannels[newslot]);
        pri->pri = pri->dchans[newslot];
+       if (!pri_is_up(pri) && !(pri->dchanavail[newslot] & DCHAN_NOTINALARM))
+               pri_restart(pri->dchans[newslot]);
        return 0;
 }
 #endif
@@ -7706,7 +7708,7 @@
        return NULL;
 }
 
-#ifndef PRI_NEW_SET_API
+#ifndef PRI_RESTART
 #error "Upgrade your libpri"
 #endif
 static void zt_pri_message(struct pri *pri, char *s)

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to