]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
unlock pvt when we drop voice frames received in early media when in t.38 mode
authorMatthew Nicholson <mnicholson@digium.com>
Thu, 9 Jun 2011 15:36:05 +0000 (15:36 +0000)
committerMatthew Nicholson <mnicholson@digium.com>
Thu, 9 Jun 2011 15:36:05 +0000 (15:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@322698 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 6d975dade40a7207b1bcd39c12ba790b98de8d76..f5413ce79698a75bf005709c959d1caae48a3eed 100644 (file)
@@ -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 */