diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index a937c053a0393502af0aa937e2e0d5be9943034b..412ff6783e46c8fa542e68eb7b61f8169e43599e 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);
 		}