[svn-commits] file: branch file/issue12437 r176550 - /team/file/issue12437/channels/chan_sip.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Feb 17 10:46:41 CST 2009


Author: file
Date: Tue Feb 17 10:46:41 2009
New Revision: 176550

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=176550
Log:
If we receive a modem frame and we currently do not have T38 session up then trigger a reinvite so we do.

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=176550&r1=176549&r2=176550
==============================================================================
--- team/file/issue12437/channels/chan_sip.c (original)
+++ team/file/issue12437/channels/chan_sip.c Tue Feb 17 10:46:41 2009
@@ -3828,8 +3828,14 @@
 				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 (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 && ast->_state == AST_STATE_UP) {
 				res = ast_udptl_write(p->udptl, frame);
+			}
 			ast_mutex_unlock(&p->lock);
 		}
 		break;




More information about the svn-commits mailing list