projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78be0c2
)
Fix counter in SIP (bug #291)
author
Mark Spencer
<markster@digium.com>
Sat, 27 Sep 2003 02:30:03 +0000
(
02:30
+0000)
committer
Mark Spencer
<markster@digium.com>
Sat, 27 Sep 2003 02:30:03 +0000
(
02:30
+0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1566
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_sip.c
patch
|
blob
|
history
diff --git
a/channels/chan_sip.c
b/channels/chan_sip.c
index
e62232a
..
feb3abf
100755
(executable)
--- a/
channels/chan_sip.c
+++ b/
channels/chan_sip.c
@@
-1032,6
+1032,11
@@
static int sip_hangup(struct ast_channel *ast)
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)) {