Merged revisions 53064 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Thu, 1 Feb 2007 17:42:08 +0000 (17:42 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 1 Feb 2007 17:42:08 +0000 (17:42 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r53064 | file | 2007-02-01 11:37:44 -0600 (Thu, 01 Feb 2007) | 2 lines

Fix silly logic. We really want to write UDPTL frames out when the call is up.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@53066 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index a937c05..412ff67 100644 (file)
@@ -3642,7 +3642,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);
                        sip_pvt_unlock(p);
                }