From: Matthew Nicholson Date: Thu, 9 Jun 2011 15:37:04 +0000 (+0000) Subject: unlock pvt when we drop voice frames received in early media when in t.38 mode X-Git-Tag: 1.6.2.19-rc1~3^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffb13d7d3866963247ddbea30d302af0a0fd7bf2;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.6.2@322699 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 1d556474be..b7f2ef2d8a 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -6511,6 +6511,7 @@ static int sip_write(struct ast_channel *ast, struct ast_frame *frame) sip_pvt_lock(p); if (p->t38.state == T38_ENABLED) { /* drop frame, can't sent VOICE frames while in T.38 mode */ + sip_pvt_unlock(p); break; } else if (p->rtp) { /* If channel is not up, activate early media session */