X-Git-Url: http://git.asterisk.org/gitweb/?p=asterisk%2Fasterisk.git;a=blobdiff_plain;f=res%2Fres_pjsip_pubsub.c;h=4daacd42c30ff036b675b7431fb4750b8716e32d;hp=ecc00599646cdb35b1297ac0bc455e93426dc992;hb=9deb416397ff8df1fe9a4bd13da88c7bb6002db8;hpb=bbf5fbbd8c6aa4ec2e8b48da1926b24a32632ca5 diff --git a/res/res_pjsip_pubsub.c b/res/res_pjsip_pubsub.c index ecc0059..4daacd4 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");