[Asterisk-cvs] asterisk/channels chan_zap.c,1.358,1.359

markster at lists.digium.com markster at lists.digium.com
Sat Oct 16 18:44:57 CDT 2004


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

Modified Files:
	chan_zap.c 
Log Message:
Don't restart PRI channels


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.358
retrieving revision 1.359
diff -u -d -r1.358 -r1.359
--- chan_zap.c	16 Oct 2004 22:34:57 -0000	1.358
+++ chan_zap.c	16 Oct 2004 22:44:53 -0000	1.359
@@ -9648,13 +9648,15 @@
 	ast_mutex_unlock(&iflock);
 	ast_destroy(cfg);
 #ifdef ZAPATA_PRI
-	for (x=0;x<NUM_SPANS;x++) {
-		if (pris[x].pvts[0]) {
-			if (start_pri(pris + x)) {
-				ast_log(LOG_ERROR, "Unable to start D-channel on span %d\n", x + 1);
-				return -1;
-			} else if (option_verbose > 1) 
-				ast_verbose(VERBOSE_PREFIX_2 "Starting D-Channel on span %d\n", x + 1);
+	if (!reload) {
+		for (x=0;x<NUM_SPANS;x++) {
+			if (pris[x].pvts[0]) {
+				if (start_pri(pris + x)) {
+					ast_log(LOG_ERROR, "Unable to start D-channel on span %d\n", x + 1);
+					return -1;
+				} else if (option_verbose > 1) 
+					ast_verbose(VERBOSE_PREFIX_2 "Starting D-Channel on span %d\n", x + 1);
+			}
 		}
 	}
 #endif




More information about the svn-commits mailing list