[Asterisk-cvs] asterisk/channels chan_sip.c,1.181,1.182

markster at lists.digium.com markster at lists.digium.com
Fri Sep 26 21:28:52 CDT 2003


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

Modified Files:
	chan_sip.c 
Log Message:
Fix counter in SIP (bug #291)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.181
retrieving revision 1.182
diff -u -d -r1.181 -r1.182
--- chan_sip.c	26 Sep 2003 03:31:57 -0000	1.181
+++ chan_sip.c	27 Sep 2003 02:30:03 -0000	1.182
@@ -1032,6 +1032,11 @@
 	p->owner = NULL;
 	ast->pvt->pvt = NULL;
 
+	ast_mutex_lock(&usecnt_lock);
+	usecnt--;
+	ast_mutex_unlock(&usecnt_lock);
+	ast_update_use_count();
+
 	needdestroy = 1;
 	/* Start the process if it's not already started */
 	if (!p->alreadygone && strlen(p->initreq.data)) {




More information about the svn-commits mailing list