From: Joshua Colp Date: Sat, 1 Mar 2014 20:27:17 +0000 (+0000) Subject: res_pjsip_session: Set options (100rel, timers) on incoming sessions. X-Git-Tag: 12.2.0-rc1~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49c2d55c10bee90f77fb5350b226a212bc233bc0;p=thirdparty%2Fasterisk.git res_pjsip_session: Set options (100rel, timers) on incoming sessions. This change passes options to the UAS creation function. This in turn sets up 100rel and session timer properties on the incoming session. Reported by Julian Russell on asterisk-users mailing list. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@409287 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_pjsip_session.c b/res/res_pjsip_session.c index 3ad34de78f..067bf87812 100644 --- a/res/res_pjsip_session.c +++ b/res/res_pjsip_session.c @@ -1384,7 +1384,7 @@ static pjsip_inv_session *pre_session_setup(pjsip_rx_data *rdata, const struct a pjsip_endpt_respond_stateless(ast_sip_get_pjsip_endpoint(), rdata, 500, NULL, NULL, NULL); return NULL; } - if (pjsip_inv_create_uas(dlg, rdata, NULL, 0, &inv_session) != PJ_SUCCESS) { + if (pjsip_inv_create_uas(dlg, rdata, NULL, options, &inv_session) != PJ_SUCCESS) { pjsip_endpt_respond_stateless(ast_sip_get_pjsip_endpoint(), rdata, 500, NULL, NULL, NULL); pjsip_dlg_terminate(dlg); return NULL;