Never release lock when doing a hangup or bad things can happen when masq is taking...
[asterisk/asterisk.git] / channels / chan_local.c
index 3d4511d..662cf7c 100755 (executable)
@@ -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);