33 JAMI_ERR(
"PresSubServer::pres_evsub_on_srv_state() is deprecated and does nothing");
40 JAMI_DBG(
"Presence_subscription_server estate has changed but no rdata.");
47 JAMI_ERR(
"Unable to find account IP2IP");
54 JAMI_ERR(
"Presence not initialized");
62 JAMI_DBG(
"Presence_subscription_server to %s is %s",
88 JAMI_ERR(
"PresSubServer::pres_evsub_on_srv_state() is deprecated and does nothing");
140 return (!(
strcmp(remote_, s)));
147 JAMI_DBG(
"Approve Presence_subscription_server for %s: %s.", remote_,
flag ?
"true" :
"false");
172 JAMI_WARN(
"Unable to create/send NOTIFY");
static LIBJAMI_TEST_EXPORT Manager & instance()
static pjsip_module mod_presence_server
PresSubServer(SIPPresence *pres, pjsip_evsub *evsub, const char *remote, pjsip_dialog *d)
bool matches(const char *s) const
pjsip_pres_status * getStatus()
Return presence data.
void fillDoc(pjsip_tx_data *tdata, const pres_msg_data *msg_data)
Fill xml document, the header and the body.
constexpr const pj_str_t CONST_PJ_STR(T(&a)[N]) noexcept
void emitSignal(Args... args)
pj_bool_t pres_on_rx_subscribe_request(pjsip_rx_data *rdata)
A SIP Account specify SIP specific functions and object = SIPCall/SIPVoIPLink)
A SIP Presence manages buddy subscription in both PBX and IP2IP contexts.