#include "../../str.h"
#include "../tm/dlg.h"
#include "subscribe.h"
#include "presentity.h"


Go to the source code of this file.
Definition in file presence/notify.h.
| #define BLA_LEN 10 |
Definition at line 48 of file presence/notify.h.
| #define FULL_STATE_FLAG (1<<0) |
Definition at line 43 of file presence/notify.h.
Referenced by create_winfo_xml(), and get_wi_notify_body().
| #define PARTIAL_STATE_FLAG (1<<1) |
| #define PRES_LEN 8 |
| #define PWINFO_LEN 14 |
Definition at line 47 of file presence/notify.h.
| typedef struct wid_cback c_back_param |
| char* get_status_str | ( | int | flag | ) |
Definition at line 96 of file presence/notify.c.
References ACTIVE_STATUS, NULL, PENDING_STATUS, TERMINATED_STATUS, and WAITING_STATUS.
Referenced by build_str_hdr(), create_winfo_xml(), handle_subscribe(), pres_update_status(), and printf_subs().
Definition at line 1632 of file presence/notify.c.
References ACTIVE_STATUS, core_hash(), subscription::db_flag, subscription::event, subscription::expires, fallback2db, INSERTDB_FLAG, _str::len, LM_DBG, LM_ERR, LOCAL_TYPE, pres_ev::name, subscription::pres_uri, subscription::reason, _str::s, send_notify_request(), shtable_size, subscription::status, subs_htable, TERMINATED_STATUS, update_shtable(), and update_subs_db().
Referenced by publ_notify(), query_db_notify(), refresh_watcher(), update_subscription(), and update_watchers_status().
| void PRINT_DLG | ( | FILE * | out, | |
| dlg_t * | _d | |||
| ) |
| void printf_subs | ( | subs_t * | subs | ) |
Definition at line 108 of file presence/notify.c.
References subscription::callid, subscription::contact, subscription::event, subscription::expires, subscription::from_domain, subscription::from_tag, subscription::from_user, get_status_str(), _str::len, LM_DBG, subscription::local_cseq, pres_ev::name, subscription::pres_uri, subscription::record_route, _str::s, subscription::status, subscription::to_domain, subscription::to_tag, and subscription::to_user.
Referenced by get_subs_db(), get_subs_dialog(), send_notify_request(), update_db_subs(), update_in_list(), update_pw_dialogs(), and update_subscription().
| int publ_notify | ( | presentity_t * | p, | |
| str | pres_uri, | |||
| str * | body, | |||
| str * | offline_etag, | |||
| str * | rules_doc | |||
| ) |
Definition at line 1302 of file presence/notify.c.
References pres_ev::agg_nbody, pres_ev::apply_auth_nbody, subscription::auth_rules_doc, pres_ev::aux_body_processing, pres_ev::aux_free_body, presentity::event, pres_ev::free_body, free_subs_list(), get_p_notify_body(), get_subs_dialog(), _str::len, LM_DBG, LM_ERR, pres_ev::name, notify(), NULL, pkg_free, PKG_MEM_TYPE, _str::s, s, and presentity::sender.
Referenced by msg_presentity_clean(), and update_presentity().
Definition at line 1368 of file presence/notify.c.
References pres_ev::agg_nbody, pres_ev::apply_auth_nbody, pres_ev::aux_body_processing, free_subs_list(), get_p_notify_body(), get_subs_dialog(), _str::len, LM_DBG, LM_ERR, pres_ev::name, notify(), NULL, pkg_free, PKG_MEM_TYPE, PUBL_TYPE, _str::s, s, pres_ev::type, and WINFO_TYPE.
Referenced by mi_refreshWatchers(), and update_subscription().
Definition at line 1439 of file presence/notify.c.
References ACTIVE_STATUS, pres_ev::agg_nbody, pres_ev::apply_auth_nbody, subscription::auth_rules_doc, build_dlg_t(), build_str_hdr(), subscription::contact, subscription::event, subscription::expires, pres_ev::free_body, free_cbparam(), free_tm_dlg(), get_p_notify_body(), get_wi_notify_body(), dlg::hooks, _str::len, LM_DBG, LM_ERR, LM_INFO, dlg::loc_uri, pres_ev::name, dlg_hooks::next_hop, NULL, p_tm_callback(), PENDING_STATUS, pkg_free, subscription::pres_uri, printf_subs(), subscription::reason, dlg::rem_uri, pres_ev::req_auth, _str::s, shm_dup_cbparam(), subscription::status, tm_binds::t_request_within, TERMINATED_STATUS, tmb, pres_ev::type, and WINFO_TYPE.
Referenced by handle_expired_subs(), and notify().
Definition at line 70 of file presence/notify.c.
Referenced by get_sphere(), pres_htable_restore(), and update_presentity().
Definition at line 79 of file presence/notify.c.
Definition at line 83 of file presence/notify.c.
Definition at line 69 of file presence/notify.c.
Definition at line 76 of file presence/notify.c.
Definition at line 75 of file presence/notify.c.
Definition at line 74 of file presence/notify.c.
Definition at line 84 of file presence/notify.c.
Definition at line 77 of file presence/notify.c.
Definition at line 91 of file presence/notify.c.
Referenced by insert_db_subs_auth(), and msg_watchers_clean().
Definition at line 88 of file presence/notify.c.
Definition at line 80 of file presence/notify.c.
Definition at line 90 of file presence/notify.c.
Definition at line 86 of file presence/notify.c.
Definition at line 82 of file presence/notify.c.
Definition at line 81 of file presence/notify.c.
Definition at line 87 of file presence/notify.c.
Definition at line 85 of file presence/notify.c.
Definition at line 71 of file presence/notify.c.
Definition at line 78 of file presence/notify.c.
Definition at line 67 of file presence/notify.c.
Definition at line 68 of file presence/notify.c.
Definition at line 89 of file presence/notify.c.
Definition at line 73 of file presence/notify.c.
Definition at line 72 of file presence/notify.c.
1.5.6