From: Matthew Nicholson Date: Thu, 9 Jun 2011 15:36:05 +0000 (+0000) Subject: unlock pvt when we drop voice frames received in early media when in t.38 mode X-Git-Tag: 1.4.42-rc2~3^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=847e704100b2f4715c5b1a02f58430d3d9ac6fe1;p=thirdparty%2Fasterisk.git 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 --- 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 */