[asterisk-commits] mmichelson: branch group/CCSS r236688 - /team/group/CCSS/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 28 12:21:11 CST 2009


Author: mmichelson
Date: Mon Dec 28 12:21:09 2009
New Revision: 236688

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=236688
Log:
Fill in instance_destructor.


Modified:
    team/group/CCSS/channels/chan_sip.c

Modified: team/group/CCSS/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/channels/chan_sip.c?view=diff&rev=236688&r1=236687&r2=236688
==============================================================================
--- team/group/CCSS/channels/chan_sip.c (original)
+++ team/group/CCSS/channels/chan_sip.c Mon Dec 28 12:21:09 2009
@@ -3770,16 +3770,17 @@
 
 static void sip_cc_monitor_destructor(void *monitor)
 {
-	/* XXX STUB */
 	/* Nothing to do here. */
 }
 
 static void sip_cc_monitor_instance_destructor(const int core_id)
 {
-	/* XXX STUB */
-	/* unref the subscription_pvt and publish_pvt if they exist. unlink the
-	 * sip_monitor_instance from the container.
-	 */
+	struct sip_monitor_instance *monitor_instance = find_sip_monitor_instance(core_id);
+	if (!monitor_instance) {
+		return;
+	}
+	ao2_unlink(sip_monitor_instances, monitor_instance);
+	ao2_ref(monitor_instance, -1);
 }
 
 




More information about the asterisk-commits mailing list