summaryrefslogtreecommitdiff
path: root/res/res_pjsip_pubsub.c
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2013-09-13 14:50:38 +0000
committerMark Michelson <mmichelson@digium.com>2013-09-13 14:50:38 +0000
commit9deb416397ff8df1fe9a4bd13da88c7bb6002db8 (patch)
tree824adb6ec4b6dd579710df20c0acd61b7e2fe8bf /res/res_pjsip_pubsub.c
parentbbf5fbbd8c6aa4ec2e8b48da1926b24a32632ca5 (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_pubsub.c')
-rw-r--r--res/res_pjsip_pubsub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_pjsip_pubsub.c b/res/res_pjsip_pubsub.c
index ecc005996..4daacd42c 100644
--- a/res/res_pjsip_pubsub.c
+++ b/res/res_pjsip_pubsub.c
@@ -282,7 +282,7 @@ struct ast_sip_subscription *ast_sip_create_subscription(const struct ast_sip_su
}
sub->role = role;
if (role == AST_SIP_NOTIFIER) {
- pjsip_dlg_create_uas(pjsip_ua_instance(), rdata, NULL, &dlg);
+ dlg = ast_sip_create_dialog_uas(endpoint, rdata);
} else {
RAII_VAR(struct ast_sip_contact *, contact, NULL, ao2_cleanup);
@@ -293,7 +293,7 @@ struct ast_sip_subscription *ast_sip_create_subscription(const struct ast_sip_su
ao2_ref(sub, -1);
return NULL;
}
- dlg = ast_sip_create_dialog(endpoint, contact->uri, NULL);
+ dlg = ast_sip_create_dialog_uac(endpoint, contact->uri, NULL);
}
if (!dlg) {
ast_log(LOG_WARNING, "Unable to create dialog for SIP subscription\n");