[asterisk-commits] rmudgett: branch rmudgett/dahdi_ccss r242513 - /team/rmudgett/dahdi_ccss/chan...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jan 22 17:28:28 CST 2010


Author: rmudgett
Date: Fri Jan 22 17:28:24 2010
New Revision: 242513

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=242513
Log:
Added module reference counts when CCSS is active.

Modified:
    team/rmudgett/dahdi_ccss/channels/chan_dahdi.c

Modified: team/rmudgett/dahdi_ccss/channels/chan_dahdi.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/dahdi_ccss/channels/chan_dahdi.c?view=diff&rev=242513&r1=242512&r2=242513
==============================================================================
--- team/rmudgett/dahdi_ccss/channels/chan_dahdi.c (original)
+++ team/rmudgett/dahdi_ccss/channels/chan_dahdi.c Fri Jan 22 17:28:24 2010
@@ -15957,11 +15957,11 @@
 		return -1;
 	}
 
-	/* BUGBUG Need chan_dahdi to increment module ref count. */
+	ast_module_ref(ast_module_info->self);
 
 	res = sig_pri_cc_agent_init(agent, pvt_chan);
 	if (res) {
-		/* BUGBUG Need chan_dahdi to decrement module ref count. */
+		ast_module_unref(ast_module_info->self);
 	}
 	return res;
 }
@@ -15987,7 +15987,7 @@
 {
 	sig_pri_cc_agent_destructor(agent);
 
-	/* BUGBUG Need chan_dahdi to decrement module ref count. */
+	ast_module_unref(ast_module_info->self);
 }
 #endif	/* defined(HAVE_PRI_CCSS) */
 #endif	/* defined(HAVE_PRI) */
@@ -16031,11 +16031,11 @@
 {
 	int res;
 
-	/* BUGBUG Need chan_dahdi to increment module ref count. */
+	ast_module_ref(ast_module_info->self);
 
 	res = sig_pri_cc_monitor_init(monitor, core_id);
 	if (res) {
-		/* BUGBUG Need chan_dahdi to decrement module ref count. */
+		ast_module_unref(ast_module_info->self);
 	}
 	return res;
 }
@@ -16061,7 +16061,7 @@
 {
 	sig_pri_cc_monitor_destructor(monitor);
 
-	/* BUGBUG Need chan_dahdi to decrement module ref count. */
+	ast_module_unref(ast_module_info->self);
 }
 #endif	/* defined(HAVE_PRI_CCSS) */
 #endif	/* defined(HAVE_PRI) */




More information about the asterisk-commits mailing list