[asterisk-commits] mmichelson: branch mmichelson/pub_sub r385808 - /team/mmichelson/pub_sub/res/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Apr 15 13:46:28 CDT 2013
Author: mmichelson
Date: Mon Apr 15 13:46:25 2013
New Revision: 385808
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=385808
Log:
Unsolicited MWI refcount is now handled properly.
Next will be an audit for solicited MWI.
Modified:
team/mmichelson/pub_sub/res/res_sip_mwi.c
Modified: team/mmichelson/pub_sub/res/res_sip_mwi.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/pub_sub/res/res_sip_mwi.c?view=diff&rev=385808&r1=385807&r2=385808
==============================================================================
--- team/mmichelson/pub_sub/res/res_sip_mwi.c (original)
+++ team/mmichelson/pub_sub/res/res_sip_mwi.c Mon Apr 15 13:46:25 2013
@@ -90,6 +90,7 @@
/* Safe strcpy */
strcpy(mwi_stasis_sub->mailbox, mailbox);
+ ao2_ref(mwi_sub, +1);
mwi_stasis_sub->stasis_sub = stasis_subscribe(topic, mwi_stasis_cb, mwi_sub);
return mwi_stasis_sub;
}
@@ -119,6 +120,8 @@
static void mwi_subscription_destructor(void *obj)
{
struct mwi_subscription *sub = obj;
+
+ ast_debug(3, "Destroying MWI subscription for endpoint %s\n", sub->id);
ao2_cleanup(sub->sip_sub);
ao2_cleanup(sub->stasis_subs);
}
More information about the asterisk-commits
mailing list