[Asterisk-cvs] asterisk/channels chan_zap.c,1.344.2.9,1.344.2.10

russell at lists.digium.com russell at lists.digium.com
Sat Jan 8 16:07:35 CST 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv8385/channels

Modified Files:
      Tag: v1-0
	chan_zap.c 
Log Message:
Make sure we clear out owner in SUB_REAL when moving a call (bug #3267)


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.344.2.9
retrieving revision 1.344.2.10
diff -u -d -r1.344.2.9 -r1.344.2.10
--- chan_zap.c	30 Dec 2004 20:36:57 -0000	1.344.2.9
+++ chan_zap.c	8 Jan 2005 22:12:02 -0000	1.344.2.10
@@ -7040,6 +7040,7 @@
 					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;
 			}




More information about the svn-commits mailing list