diff options
author | Mark Spencer <markster@digium.com> | 2004-06-16 21:26:53 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-06-16 21:26:53 +0000 |
commit | e3c58c8ebee22341fadaf9b12636ec05978ee983 (patch) | |
tree | 850b3d784033a03a1bbe2531be325dba86f6e3f6 /channels | |
parent | fdf586e4166c7c31d68fe3e280f8e637e761488f (diff) |
Gotta set slot to 0 before you print :)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3228 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_zap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 817850568..6255769b4 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -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", |