Gotta set slot to 0 before you print :)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3228 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
071e006eac
commit
4f9cdc3d9d
|
@ -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",
|
||||
|
|
Reference in New Issue