mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Never release lock when doing a hangup or bad things can happen when masq is taking place
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1296 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -297,7 +297,7 @@ static int local_hangup(struct ast_channel *ast)
|
||||
/* Need to actually hangup since there is no PBX */
|
||||
ochan = p->chan;
|
||||
else
|
||||
local_queue_frame(p, isoutbound, &f, ast);
|
||||
local_queue_frame(p, isoutbound, &f, NULL);
|
||||
ast_pthread_mutex_unlock(&p->lock);
|
||||
if (ochan)
|
||||
ast_hangup(ochan);
|
||||
|
Reference in New Issue
Block a user