summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-10-16 22:44:53 +0000
committerMark Spencer <markster@digium.com>2004-10-16 22:44:53 +0000
commitc646d9ce18b4b75bf45e09a2dd6f40bfc02c6e82 (patch)
tree70de91fd09c7440a60434b0eb7c21998944421e8 /channels
parent9b46246c2b457f41bd27aedf704d0b872c6ff405 (diff)
Don't restart PRI channels
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4025 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_zap.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 42366544a..9a223d185 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -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