diff options
author | Mark Michelson <mmichelson@digium.com> | 2013-09-13 14:50:38 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2013-09-13 14:50:38 +0000 |
commit | 9deb416397ff8df1fe9a4bd13da88c7bb6002db8 (patch) | |
tree | 824adb6ec4b6dd579710df20c0acd61b7e2fe8bf /res/res_pjsip_session.c | |
parent | bbf5fbbd8c6aa4ec2e8b48da1926b24a32632ca5 (diff) |
Create more accurate Contact headers for dialogs when we are the UAS.
(closes issue AST-1207)
reported by John Bigelow
Review: https://reviewboard.asterisk.org/r/2842
........
Merged revisions 399083 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@399084 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_pjsip_session.c')
-rw-r--r-- | res/res_pjsip_session.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/res/res_pjsip_session.c b/res/res_pjsip_session.c index 226e43f3e..c6c395361 100644 --- a/res/res_pjsip_session.c +++ b/res/res_pjsip_session.c @@ -1185,7 +1185,7 @@ struct ast_sip_session *ast_sip_session_create_outgoing(struct ast_sip_endpoint return NULL; } - if (!(dlg = ast_sip_create_dialog(endpoint, uri, request_user))) { + if (!(dlg = ast_sip_create_dialog_uac(endpoint, uri, request_user))) { return NULL; } @@ -1337,7 +1337,8 @@ static pjsip_inv_session *pre_session_setup(pjsip_rx_data *rdata, const struct a } return NULL; } - if (pjsip_dlg_create_uas(pjsip_ua_instance(), rdata, NULL, &dlg) != PJ_SUCCESS) { + dlg = ast_sip_create_dialog_uas(endpoint, rdata); + if (!dlg) { pjsip_endpt_respond_stateless(ast_sip_get_pjsip_endpoint(), rdata, 500, NULL, NULL, NULL); return NULL; } |