Don't lock when soft hanging up
authorMark Spencer <markster@digium.com>
Fri, 15 Aug 2003 23:57:13 +0000 (23:57 +0000)
committerMark Spencer <markster@digium.com>
Fri, 15 Aug 2003 23:57:13 +0000 (23:57 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1346 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index e1727de..ba8cafa 100755 (executable)
@@ -1123,7 +1123,7 @@ static int sip_indicate(struct ast_channel *ast, int condition)
                if (ast->_state != AST_STATE_UP) {
                        transmit_response(p, "486 Busy Here", &p->initreq);
                        p->alreadygone = 1;
-                       ast_softhangup(ast, AST_SOFTHANGUP_DEV);
+                       ast_softhangup_nolock(ast, AST_SOFTHANGUP_DEV);
                        break;
                }
                return -1;
@@ -1131,7 +1131,7 @@ static int sip_indicate(struct ast_channel *ast, int condition)
                if (ast->_state != AST_STATE_UP) {
                        transmit_response(p, "503 Service Unavailable", &p->initreq);
                        p->alreadygone = 1;
-                       ast_softhangup(ast, AST_SOFTHANGUP_DEV);
+                       ast_softhangup_nolock(ast, AST_SOFTHANGUP_DEV);
                        break;
                }
                return -1;