]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make sure we clear out owner in SUB_REAL when moving a call (bug #3267)
authorRussell Bryant <russell@russellbryant.com>
Sat, 8 Jan 2005 22:12:02 +0000 (22:12 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sat, 8 Jan 2005 22:12:02 +0000 (22:12 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4719 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 2fce6b09d183721aa8b714fe50c4299fa794d8ea..496229207ae61e5b172a40e2d679eed4d2c04c3b 100755 (executable)
@@ -7040,6 +7040,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;
                        }