Small but important fix for channel relocation (bug #54)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2213 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
84cbebcf17
commit
e08247218e
|
@ -5887,6 +5887,7 @@ static int pri_fixup(struct zt_pri *pri, int channel, q931_call *c)
|
|||
if (pri->pvt[channel]->owner) {
|
||||
pri->pvt[channel]->owner->pvt->pvt = pri->pvt[channel];
|
||||
pri->pvt[channel]->owner->fds[0] = pri->pvt[channel]->subs[SUB_REAL].zfd;
|
||||
pri->pvt[channel]->subs[SUB_REAL].owner = pri->pvt[x]->subs[SUB_REAL].owner;
|
||||
} else
|
||||
ast_log(LOG_WARNING, "Whoa, there's no owner, and we're having to fix up channel %d to channel %d\n", x, channel);
|
||||
pri->pvt[channel]->call = pri->pvt[x]->call;
|
||||
|
|
Loading…
Reference in New Issue