aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-02-22 20:41:15 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-02-22 20:41:15 +0000
commit74cef7a888f7874cd79c4ede97f56b50dc78212a (patch)
tree8cb599fff2d6e1b2020e8d0e07ec84fe3d852b55 /channels
parentf201de832926ca65908db8bf04c68799f46af071 (diff)
Small but important fix for channel relocation (bug #54)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2213 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_zap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 81fd90f9d..72dbcfca7 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;