]> 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:37:04 +0000 (15:37 +0000)
committerMatthew Nicholson <mnicholson@digium.com>
Thu, 9 Jun 2011 15:37:04 +0000 (15:37 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@322699 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 1d556474be1febda14197385d96fb4671f11dd95..b7f2ef2d8a8ca2a2a66b98a587ae1ae3858e6131 100644 (file)
@@ -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 */