#include <stdio.h>#include <stdlib.h>#include <string.h>#include <time.h>#include <libxml/parser.h>#include "../../mem/mem.h"#include "../../dprint.h"#include "../../ut.h"#include "../tm/tm_load.h"#include "../tm/dlg.h"#include "../../parser/msg_parser.h"#include "../../parser/contact/parse_contact.h"#include "../../parser/parse_from.h"#include "../../parser/parse_expires.h"#include "../presence/hash.h"#include "hash.h"#include "pua.h"#include "send_subscribe.h"#include "pua_callback.h"#include "event_list.h"

Go to the source code of this file.
Functions | |
| void | print_subs (subs_info_t *subs) |
| dlg_t * | pua_build_dlg_t (ua_pres_t *presentity) |
| int | send_subscribe (subs_info_t *subs) |
| str * | subs_build_hdr (str *contact, int expires, int event, str *extra_headers) |
| void | subs_cback_func (struct cell *t, int cb_type, struct tmcb_params *ps) |
| ua_pres_t * | subs_cbparam_indlg (ua_pres_t *subs, int expires, int ua_flag) |
| ua_pres_t * | subscribe_cbparam (subs_info_t *subs, int ua_flag) |
| void print_subs | ( | subs_info_t * | subs | ) |
Definition at line 49 of file send_subscribe.c.
References _str::len, LM_DBG, subs_info::pres_uri, _str::s, and subs_info::watcher_uri.
Referenced by send_subscribe().
Definition at line 141 of file send_subscribe.c.
References dlg_id::call_id, ua_pres::call_id, ua_pres::cseq, DLG_CONFIRMED, ua_pres::from_tag, dlg::id, dlg_seq::is_set, _str::len, LM_DBG, LM_ERR, dlg::loc_seq, dlg_id::loc_tag, dlg::loc_uri, NULL, parse_rr_body(), pkg_free, pkg_malloc, ua_pres::pres_uri, ua_pres::record_route, dlg_id::rem_tag, dlg::rem_target, dlg::rem_uri, ua_pres::remote_contact, dlg::route_set, _str::s, dlg::state, ua_pres::to_tag, dlg_seq::value, and ua_pres::watcher_uri.
Referenced by send_subscribe(), and update_pua().
| int send_subscribe | ( | subs_info_t * | subs | ) |
Definition at line 803 of file send_subscribe.c.
References subs_info::contact, core_hash(), ua_pres::event, subs_info::event, subs_info::expires, subs_info::extra_headers, ua_pres::flag, subs_info::flag, free_rr(), HASH_SIZE, HashT, subs_info::id, insert(), INSERT_TYPE, LM_DBG, LM_ERR, hash_entry::lock, NULL, subs_info::outbound_proxy, htable::p_records, pkg_free, subs_info::pres_uri, print_subs(), pua_build_dlg_t(), subs_info::remote_target, REQ_OTHER, dlg::route_set, _str::s, search_htable(), shm_free, subs_info::source_flag, subs_build_hdr(), subs_cback_func(), subs_cbparam_indlg(), subscribe_cbparam(), tm_binds::t_request, tm_binds::t_request_within, tmb, UPDATE_TYPE, subs_info::watcher_uri, XMPP_INITIAL_SUBS, and XMPP_SUBSCRIBE.
Referenced by bind_pua(), and subs_cback_func().
Definition at line 59 of file send_subscribe.c.
References buf, CRLF, CRLF_LEN, get_event(), int2str(), _str::len, len, LM_ERR, MAX_FORWARD, min_expires, pua_event::name, NULL, pkg_free, pkg_malloc, and _str::s.
Referenced by send_subscribe(), and update_pua().
| void subs_cback_func | ( | struct cell * | t, | |
| int | cb_type, | |||
| struct tmcb_params * | ps | |||
| ) |
Definition at line 211 of file send_subscribe.c.
References BLA_SUBSCRIBE, hdr_field::body, ua_pres::call_id, sip_msg::callid, subs_info::cb_param, tmcb_params::code, ua_pres::contact, sip_msg::contact, subs_info::contact, core_hash(), ua_pres::cseq, sip_msg::cseq, delete_htable(), ua_pres::desired_expires, ERR_MEM, to_body::error, ua_pres::etag, subs_info::event, ua_pres::event, ua_pres::expires, subs_info::expires, sip_msg::expires, ua_pres::extra_headers, subs_info::extra_headers, FAKED_REPLY, ua_pres::flag, subs_info::flag, sip_msg::from, ua_pres::from_tag, get_cseq, get_dialog(), HASH_SIZE, HashT, HDR_EOH_F, ua_pres::id, subs_info::id, insert_htable(), INSERT_TYPE, _str::len, LM_DBG, LM_ERR, hash_entry::lock, NULL, subs_info::outbound_proxy, htable::p_records, tmcb_params::param, parse_contact(), parse_expires(), parse_from_header(), parse_headers(), parse_to(), hdr_field::parsed, pkg_free, ua_pres::pres_uri, subs_info::pres_uri, print_rr_body(), ua_pres::record_route, sip_msg::record_route, record_route(), ua_pres::remote_contact, subs_info::remote_target, REQ_OTHER, tmcb_params::rpl, run_pua_callbacks(), _str::s, send_subscribe(), SHARE_MEM, shm_free, shm_malloc(), subs_info::source_flag, str2int(), to_body::tag_value, sip_msg::to, TO, ua_pres::to_tag, update_htable(), to_body::uri, ua_pres::watcher_uri, subs_info::watcher_uri, XMPP_INITIAL_SUBS, and XMPP_SUBSCRIBE.
Referenced by send_subscribe(), and update_pua().
Definition at line 703 of file send_subscribe.c.
References ua_pres::call_id, ua_pres::cb_param, CONT_COPY, ua_pres::contact, ua_pres::desired_expires, ua_pres::event, ua_pres::extra_headers, ua_pres::flag, ua_pres::from_tag, ua_pres::id, _str::len, LM_DBG, LM_ERR, NULL, ua_pres::outbound_proxy, ua_pres::pres_uri, ua_pres::remote_contact, _str::s, shm_malloc(), ua_pres::to_tag, ua_pres::ua_flag, and ua_pres::watcher_uri.
Referenced by send_subscribe(), and update_pua().
| ua_pres_t* subscribe_cbparam | ( | subs_info_t * | subs, | |
| int | ua_flag | |||
| ) |
Definition at line 618 of file send_subscribe.c.
References subs_info::cb_param, ua_pres::cb_param, CONT_COPY, ua_pres::contact, subs_info::contact, ua_pres::desired_expires, subs_info::event, ua_pres::event, subs_info::expires, ua_pres::extra_headers, subs_info::extra_headers, ua_pres::flag, ua_pres::id, subs_info::id, _str::len, LM_ERR, NULL, ua_pres::outbound_proxy, subs_info::outbound_proxy, ua_pres::pres_uri, subs_info::pres_uri, _str::s, shm_malloc(), subs_info::source_flag, ua_pres::ua_flag, ua_pres::watcher_uri, and subs_info::watcher_uri.
Referenced by send_subscribe().
1.5.6