aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-07 21:18:00 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-07 21:18:00 +0000
commit4b83ae4bcd76e923a113bf5cc388b431acf82ae8 (patch)
treecb15455df59bacbbbcdec8cffc0c649341ddfe4d /channels/chan_zap.c
parentdd02eaad89e14597cd03f56798bcbffa68650df3 (diff)
Make sure we clear out owner in SUB_REAL when moving a call (bug #3267)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4707 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-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 3280e1a18..b6cb5025b 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -7148,6 +7148,7 @@ static int pri_fixup_principle(struct zt_pri *pri, int principle, q931_call *c)
ast_log(LOG_WARNING, "Whoa, there's no owner, and we're having to fix up channel %d to channel %d\n", pri->pvts[x]->channel, pri->pvts[principle]->channel);
pri->pvts[principle]->call = pri->pvts[x]->call;
/* Free up the old channel, now not in use */
+ pri->pvts[x]->subs[SUB_REAL].owner = NULL;
pri->pvts[x]->owner = NULL;
pri->pvts[x]->call = NULL;
}