mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user