[asterisk-commits] mmichelson: branch mmichelson/chan_fixup r173357 - /team/mmichelson/chan_fixu...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Feb 4 10:01:05 CST 2009


Author: mmichelson
Date: Wed Feb  4 10:01:04 2009
New Revision: 173357

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=173357
Log:
Update autochans to point to NULL when a channel is freed


Modified:
    team/mmichelson/chan_fixup/main/channel.c

Modified: team/mmichelson/chan_fixup/main/channel.c
URL: http://svn.digium.com/svn-view/asterisk/team/mmichelson/chan_fixup/main/channel.c?view=diff&rev=173357&r1=173356&r2=173357
==============================================================================
--- team/mmichelson/chan_fixup/main/channel.c (original)
+++ team/mmichelson/chan_fixup/main/channel.c Wed Feb  4 10:01:04 2009
@@ -1234,6 +1234,10 @@
 	ast_channel_lock(chan);
 	ast_channel_unlock(chan);
 
+	/* Update autochans that point to this channel to point to NULL so that we
+	 * can know if the channel is gone
+	 */
+	ast_autochan_new_channel(chan, NULL);
 	/* Get rid of each of the data stores on the channel */
 	while ((datastore = AST_LIST_REMOVE_HEAD(&chan->datastores, entry)))
 		/* Free the data store */




More information about the asterisk-commits mailing list