#include <stdio.h>#include <stdlib.h>#include <string.h>#include <libxml/parser.h>#include <time.h>#include "../../mem/mem.h"#include "../../dprint.h"#include "../../parser/parse_expires.h"#include "../../mem/shm_mem.h"#include "../../parser/msg_parser.h"#include "../../cmpapi.h"#include "../tm/tm_load.h"#include "pua.h"#include "hash.h"#include "send_publish.h"#include "pua_callback.h"#include "event_list.h"

Go to the source code of this file.
Functions | |
| str * | publ_build_hdr (int expires, pua_event_t *ev, str *content_type, str *etag, str *extra_headers, int is_body) |
| void | publ_cback_func (struct cell *t, int type, struct tmcb_params *ps) |
| ua_pres_t * | publish_cbparam (publ_info_t *publ, str *body, str *tuple_id, int ua_flag) |
| int | send_publish (publ_info_t *publ) |
| str* publ_build_hdr | ( | int | expires, | |
| pua_event_t * | ev, | |||
| str * | content_type, | |||
| str * | etag, | |||
| str * | extra_headers, | |||
| int | is_body | |||
| ) |
Definition at line 51 of file send_publish.c.
References buf, pua_event::content_type, CRLF, CRLF_LEN, int2str(), _str::len, len, LM_DBG, LM_ERR, MAX_FORWARD, min_expires, pua_event::name, NULL, pkg_malloc, and _str::s.
Referenced by send_publish(), and update_pua().
| void publ_cback_func | ( | struct cell * | t, | |
| int | type, | |||
| struct tmcb_params * | ps | |||
| ) |
Definition at line 147 of file send_publish.c.
References hdr_field::body, publ_info::body, ua_pres::body, ua_pres::cb_param, publ_info::cb_param, cmp_hdrname_strzn(), tmcb_params::code, ua_pres::content_type, publ_info::content_type, core_hash(), delete_htable(), ua_pres::desired_expires, ua_pres::etag, ua_pres::event, publ_info::event, ua_pres::expires, sip_msg::expires, publ_info::expires, ua_pres::extra_headers, publ_info::extra_headers, FAKED_REPLY, ua_pres::flag, HASH_SIZE, HashT, HDR_EOH_F, sip_msg::headers, ua_pres::id, publ_info::id, insert_htable(), _str::len, LM_DBG, LM_ERR, hash_entry::lock, MI_ASYN_PUBLISH, MI_PUBLISH, hdr_field::name, hdr_field::next, NULL, htable::p_records, tmcb_params::param, parse_expires(), parse_headers(), hdr_field::parsed, publ_info::pres_uri, ua_pres::pres_uri, REQ_OTHER, tmcb_params::rpl, run_pua_callbacks(), _str::s, search_htable(), send_publish(), shm_free, shm_malloc(), publ_info::source_flag, ua_pres::tuple_id, ua_pres::ua_flag, and update_htable().
Referenced by send_publish(), and update_pua().
| ua_pres_t* publish_cbparam | ( | publ_info_t * | publ, | |
| str * | body, | |||
| str * | tuple_id, | |||
| int | ua_flag | |||
| ) |
Definition at line 606 of file send_publish.c.
References ua_pres::body, publ_info::cb_param, ua_pres::cb_param, ua_pres::content_type, publ_info::content_type, ua_pres::desired_expires, ua_pres::etag, publ_info::etag, publ_info::event, ua_pres::event, publ_info::expires, ua_pres::extra_headers, publ_info::extra_headers, ua_pres::flag, ua_pres::id, publ_info::id, _str::len, LM_ERR, NULL, ua_pres::pres_uri, publ_info::pres_uri, _str::s, shm_malloc(), publ_info::source_flag, ua_pres::tuple_id, and ua_pres::ua_flag.
Referenced by build_uppubl_cbparam(), and send_publish().
| int send_publish | ( | publ_info_t * | publ | ) |
Type of the message
Request-URI
To
From
Optional headers
Message body
Outbound proxy
Callback function
Callback parameter
Definition at line 386 of file send_publish.c.
References publ_info::body, publ_info::content_type, core_hash(), ERR_PUBLISH_NO_BODY, ua_pres::etag, publ_info::etag, publ_info::event, publ_info::expires, publ_info::extra_headers, publ_info::flag, get_event(), HASH_SIZE, HashT, publ_info::id, insert(), INSERT_TYPE, _str::len, LM_DBG, LM_ERR, hash_entry::lock, NULL, outbound_proxy, htable::p_records, pkg_free, pkg_malloc, publ_info::pres_uri, pua_event::process_body, publ_build_hdr(), publ_cback_func(), publish_cbparam(), REQ_OTHER, _str::s, search_htable(), send_publish(), shm_free, publ_info::source_flag, tm_binds::t_request, tmb, ua_pres::tuple_id, UPDATE_TYPE, and ua_pres::version.
Referenced by bind_pua(), publ_cback_func(), and send_publish().
1.5.6