[asterisk-commits] mmichelson: branch mmichelson/direct_media r383038 - /team/mmichelson/direct_...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Mar 13 14:14:51 CDT 2013


Author: mmichelson
Date: Wed Mar 13 14:14:48 2013
New Revision: 383038

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=383038
Log:
Remove the restriction of sending a request if an outstanding INVITE transaction is active.

We still will not create a reinvite or UPDATE if there's an INVITE transaction in progress, but
BYEs and other request types will work fine now.


Modified:
    team/mmichelson/direct_media/res/res_sip_session.c

Modified: team/mmichelson/direct_media/res/res_sip_session.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/direct_media/res/res_sip_session.c?view=diff&rev=383038&r1=383037&r2=383038
==============================================================================
--- team/mmichelson/direct_media/res/res_sip_session.c (original)
+++ team/mmichelson/direct_media/res/res_sip_session.c Wed Mar 13 14:14:48 2013
@@ -524,16 +524,6 @@
 
 	if (inv_session->state == PJSIP_INV_STATE_DISCONNECTED) {
 		/* Don't try to do anything with a hung-up call */
-		return;
-	}
-
-	if (inv_session->invite_tsx) {
-		/* We can't send a request yet, so delay it */
-		char method[15];
-		ast_copy_pj_str(method, &tdata->msg->line.req.method.name, sizeof(method));
-		ast_debug(3, "Delaying sending %s request to %s due to outstanding transaction\n",
-				method, ast_sorcery_object_get_id(session->endpoint));
-		delay_request(session, NULL, on_response, method, tdata);
 		return;
 	}
 




More information about the asterisk-commits mailing list