]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_pjsip_session: Set options (100rel, timers) on incoming sessions.
authorJoshua Colp <jcolp@digium.com>
Sat, 1 Mar 2014 20:28:04 +0000 (20:28 +0000)
committerJoshua Colp <jcolp@digium.com>
Sat, 1 Mar 2014 20:28:04 +0000 (20:28 +0000)
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.
........

Merged revisions 409287 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@409288 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_pjsip_session.c

index 3ad34de78fa7495aacd796ac30023bd46c88ef2a..067bf878125c8feec2158da3b001542b123a8234 100644 (file)
@@ -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;