]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix silly logic. We really want to write UDPTL frames out when the call is up.
authorJoshua Colp <jcolp@digium.com>
Thu, 1 Feb 2007 17:37:44 +0000 (17:37 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 1 Feb 2007 17:37:44 +0000 (17:37 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@53064 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index ce4a883a6ade0592aed66402efc8ac8875a923a5..00c253ce5bc3d1670bbaff70aa066d043e4f8835 100644 (file)
@@ -3518,7 +3518,7 @@ static int sip_write(struct ast_channel *ast, struct ast_frame *frame)
                                we simply forget the frames if we get modem frames before the bridge is up.
                                Fax will re-transmit.
                        */
-                       if (p->udptl && ast->_state != AST_STATE_UP) 
+                       if (p->udptl && ast->_state == AST_STATE_UP) 
                                res = ast_udptl_write(p->udptl, frame);
                        ast_mutex_unlock(&p->lock);
                }