[asterisk-commits] mmichelson: branch mmichelson/outbound_auth r383399 - /team/mmichelson/outbou...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Mar 19 17:07:24 CDT 2013
Author: mmichelson
Date: Tue Mar 19 17:07:21 2013
New Revision: 383399
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=383399
Log:
Only restart the INVITE session UAC on the initial INVITE transaction.
Modified:
team/mmichelson/outbound_auth/res/res_sip_session.c
Modified: team/mmichelson/outbound_auth/res/res_sip_session.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/outbound_auth/res/res_sip_session.c?view=diff&rev=383399&r1=383398&r2=383399
==============================================================================
--- team/mmichelson/outbound_auth/res/res_sip_session.c (original)
+++ team/mmichelson/outbound_auth/res/res_sip_session.c Tue Mar 19 17:07:21 2013
@@ -778,7 +778,9 @@
pjsip_inv_session *inv = pjsip_dlg_get_inv_session(dlg);
struct ast_sip_session *session = inv->mod_data[session_module.id];
- pjsip_inv_uac_restart(inv, PJ_TRUE);
+ if (inv->state < PJSIP_INV_STATE_CONFIRMED && tdata->msg->line.req.method.id == PJSIP_INVITE_METHOD) {
+ pjsip_inv_uac_restart(inv, PJ_TRUE);
+ }
ast_sip_session_send_request(session, tdata);
return 0;
}
More information about the asterisk-commits
mailing list