[asterisk-commits] file: branch file/gulp_fax r394365 - /team/file/gulp_fax/res/res_sip_t38.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jul 15 08:18:04 CDT 2013


Author: file
Date: Mon Jul 15 08:18:02 2013
New Revision: 394365

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=394365
Log:
Add some missing state changes.

Modified:
    team/file/gulp_fax/res/res_sip_t38.c

Modified: team/file/gulp_fax/res/res_sip_t38.c
URL: http://svnview.digium.com/svn/asterisk/team/file/gulp_fax/res/res_sip_t38.c?view=diff&rev=394365&r1=394364&r2=394365
==============================================================================
--- team/file/gulp_fax/res/res_sip_t38.c (original)
+++ team/file/gulp_fax/res/res_sip_t38.c Mon Jul 15 08:18:02 2013
@@ -245,7 +245,7 @@
 			if (state->state == T38_PEER_REINVITE) {
 				/* XXX Need to reject their reinvite */
 			}
-			/* XXX Need to change state to rejected */
+			t38_change_state(data->session, session_media, state, T38_REJECTED);
 			break;
 		} else if (state->state == T38_PEER_REINVITE) {
 			state->our_parms = *parameters;
@@ -264,7 +264,7 @@
 			state->our_parms.version = MIN(state->our_parms.version, state->their_parms.version);
 			state->our_parms.rate_management = state->their_parms.rate_management;
 			ast_udptl_set_local_max_ifp(session_media->udptl, state->our_parms.max_ifp);
-			/* XXX Need to change state to enabled */
+			t38_change_state(data->session, session_media, state, T38_ENABLED);
 			/* XXX Need to accept their reinvite */
 		} else if (state->state != T38_ENABLED) {
 			if (t38_initialize_session(data->session, session_media)) {
@@ -281,7 +281,7 @@
 	case AST_T38_REFUSED:
 	case AST_T38_REQUEST_TERMINATE:         /* Shutdown T38 */
 		if (state->state == T38_PEER_REINVITE) {
-			/* XXX Need to change state to rejected */
+			t38_change_state(data->session, session_media, state, T38_REJECTED);
 			/* XXX Need to reject their reinvite */
 		} else if (state->state == T38_ENABLED) {
 			/* XXX Need to send reinvite */




More information about the asterisk-commits mailing list