aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-01 17:37:44 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-01 17:37:44 +0000
commit5a7c75df3c803244e94b3224ccd81af3d4f7b131 (patch)
treebdd1973b2010023bf0ba56f7d1d9d22ebb7d3a08
parent49d3a6b4b6ddc1838f39ce3cadfceeaf318c172d (diff)
Fix silly logic. We really want to write UDPTL frames out when the call is up.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@53064 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index ce4a883a6..00c253ce5 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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);
}