[asterisk-commits] file: branch file/issue12437 r176939 - /team/file/issue12437/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Feb 18 08:13:00 CST 2009
Author: file
Date: Wed Feb 18 08:13:00 2009
New Revision: 176939
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=176939
Log:
Only attempt to trigger the reinvite when the channel is actually up.
Modified:
team/file/issue12437/channels/chan_sip.c
Modified: team/file/issue12437/channels/chan_sip.c
URL: http://svn.digium.com/svn-view/asterisk/team/file/issue12437/channels/chan_sip.c?view=diff&rev=176939&r1=176938&r2=176939
==============================================================================
--- team/file/issue12437/channels/chan_sip.c (original)
+++ team/file/issue12437/channels/chan_sip.c Wed Feb 18 08:13:00 2009
@@ -3828,13 +3828,15 @@
we simply forget the frames if we get modem frames before the bridge is up.
Fax will re-transmit.
*/
- if (ast_test_flag(&p->t38.t38support, SIP_PAGE2_T38SUPPORT_UDPTL) && p->t38.state == T38_DISABLED) {
- if (!p->pendinginvite) {
- p->t38.state = T38_LOCAL_REINVITE;
- transmit_reinvite_with_t38_sdp(p);
+ if (ast->_state == AST_STATE_UP) {
+ if (ast_test_flag(&p->t38.t38support, SIP_PAGE2_T38SUPPORT_UDPTL) && p->t38.state == T38_DISABLED) {
+ if (!p->pendinginvite) {
+ p->t38.state = T38_LOCAL_REINVITE;
+ transmit_reinvite_with_t38_sdp(p);
+ }
+ } else if (p->t38.state == T38_ENABLED) {
+ res = ast_udptl_write(p->udptl, frame);
}
- } else if (p->t38.state == T38_ENABLED && ast->_state == AST_STATE_UP) {
- res = ast_udptl_write(p->udptl, frame);
}
ast_mutex_unlock(&p->lock);
}
More information about the asterisk-commits
mailing list