From e88dda8ca9aa1d024f8979395b7b555d10928c2b Mon Sep 17 00:00:00 2001
From: Joshua Colp <jcolp@digium.com>
Date: Thu, 1 Feb 2007 17:42:08 +0000
Subject: [PATCH] Merged revisions 53064 via svnmerge from
 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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index a937c053a0..412ff6783e 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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);
 		}
-- 
GitLab