mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 11:28:25 +00:00
Fix counter in SIP (bug #291)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1566 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1032,6 +1032,11 @@ static int sip_hangup(struct ast_channel *ast)
|
|||||||
p->owner = NULL;
|
p->owner = NULL;
|
||||||
ast->pvt->pvt = NULL;
|
ast->pvt->pvt = NULL;
|
||||||
|
|
||||||
|
ast_mutex_lock(&usecnt_lock);
|
||||||
|
usecnt--;
|
||||||
|
ast_mutex_unlock(&usecnt_lock);
|
||||||
|
ast_update_use_count();
|
||||||
|
|
||||||
needdestroy = 1;
|
needdestroy = 1;
|
||||||
/* Start the process if it's not already started */
|
/* Start the process if it's not already started */
|
||||||
if (!p->alreadygone && strlen(p->initreq.data)) {
|
if (!p->alreadygone && strlen(p->initreq.data)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user