From 847e704100b2f4715c5b1a02f58430d3d9ac6fe1 Mon Sep 17 00:00:00 2001 From: Matthew Nicholson Date: Thu, 9 Jun 2011 15:36:05 +0000 Subject: [PATCH] unlock pvt when we drop voice frames received in early media when in t.38 mode git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@322698 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 6d975dade4..f5413ce796 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4064,6 +4064,7 @@ static int sip_write(struct ast_channel *ast, struct ast_frame *frame) ast_mutex_lock(&p->lock); if (p->t38.state == T38_ENABLED && !p->t38.direct) { /* drop frame, can't sent VOICE frames while in T.38 mode */ + ast_mutex_unlock(&p->lock); break; } else if (p->rtp) { /* If channel is not up, activate early media session */ -- 2.47.2