]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't restart PRI channels
authorMark Spencer <markster@digium.com>
Sat, 16 Oct 2004 22:44:53 +0000 (22:44 +0000)
committerMark Spencer <markster@digium.com>
Sat, 16 Oct 2004 22:44:53 +0000 (22:44 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4025 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 42366544ae0d0078c535f12d2991419adcc5cb22..9a223d1855dd4a2daca9f049e978676c6d59d8f2 100755 (executable)
@@ -9648,13 +9648,15 @@ static int setup_zap(int reload)
        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