From e08247218e0eb46d1881a60523410b9da7d94956 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Sun, 22 Feb 2004 20:41:15 +0000 Subject: [PATCH] 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 --- channels/chan_zap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 81fd90f9d8..72dbcfca71 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -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;