Small but important fix for channel relocation (bug #54)
authorMark Spencer <markster@digium.com>
Sun, 22 Feb 2004 20:41:15 +0000 (20:41 +0000)
committerMark Spencer <markster@digium.com>
Sun, 22 Feb 2004 20:41:15 +0000 (20:41 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2213 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 81fd90f..72dbcfc 100755 (executable)
@@ -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;