mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 15:49:56 +00:00
Don't lock when soft hanging up
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1346 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user