X-Git-Url: http://git.asterisk.org/gitweb/?p=asterisk%2Fasterisk.git;a=blobdiff_plain;f=include%2Fasterisk%2Fres_pjsip.h;h=df4ba7decb3e15a8989182eb41465fe242d36256;hp=d25a1d4fddf88d44da856a60223fbd4ff3802b64;hb=9deb416397ff8df1fe9a4bd13da88c7bb6002db8;hpb=bbf5fbbd8c6aa4ec2e8b48da1926b24a32632ca5 diff --git a/include/asterisk/res_pjsip.h b/include/asterisk/res_pjsip.h index d25a1d4..df4ba7d 100644 --- a/include/asterisk/res_pjsip.h +++ b/include/asterisk/res_pjsip.h @@ -1188,7 +1188,7 @@ struct ast_sip_body { }; /*! - * \brief General purpose method for creating a dialog with an endpoint + * \brief General purpose method for creating a UAC dialog with an endpoint * * \param endpoint A pointer to the endpoint * \param aor_name Optional name of the AOR to target, may even be an explicit SIP URI @@ -1197,7 +1197,15 @@ struct ast_sip_body { * \retval non-NULL success * \retval NULL failure */ - pjsip_dialog *ast_sip_create_dialog(const struct ast_sip_endpoint *endpoint, const char *aor_name, const char *request_user); +pjsip_dialog *ast_sip_create_dialog_uac(const struct ast_sip_endpoint *endpoint, const char *aor_name, const char *request_user); + +/*! + * \brief General purpose method for creating a UAS dialog with an endpoint + * + * \param endpoint A pointer to the endpoint + * \param rdata The request that is starting the dialog + */ +pjsip_dialog *ast_sip_create_dialog_uas(const struct ast_sip_endpoint *endpoint, pjsip_rx_data *rdata); /*! * \brief General purpose method for creating a SIP request