]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Gotta set slot to 0 before you print :)
authorMark Spencer <markster@digium.com>
Wed, 16 Jun 2004 21:26:53 +0000 (21:26 +0000)
committerMark Spencer <markster@digium.com>
Wed, 16 Jun 2004 21:26:53 +0000 (21:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3228 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 81785056850acc081d394d398185a5797d39aa8c..6255769b48a2db44c60da440d8fee90d0e09c377 100755 (executable)
@@ -1856,9 +1856,9 @@ int pri_find_dchan(struct zt_pri *pri)
                }
        }
        if (newslot < 0) {
+               newslot = 0;
                ast_log(LOG_WARNING, "No D-channels available!  Using Primary on channel anyway %d!\n",
                        pri->dchannels[newslot]);
-               newslot = 0;
        }
        if (old && (oldslot != newslot))
                ast_log(LOG_NOTICE, "Switching from from d-channel %d to channel %d!\n",