#include <libxml/parser.h>#include "../../str.h"#include "../presence/subscribe.h"


Go to the source code of this file.
Defines | |
| #define | BOUNDARY_STRING_LEN 24 |
| #define | BUF_REALLOC_SIZE 2048 |
| #define | COMPUTE_ANTET_LEN(boundary_string) (strlen( boundary_string)+ MAX_HEADERS_LENGTH + 6) |
| #define | MAX_FORWARD 70 |
| #define | MAX_HEADERS_LENGTH (104+ 255+ 1) |
| #define | REALLOC_BUF |
| #define | RLS_HDR_LEN 1024 |
Typedefs | |
| typedef int(* | list_func_t )(char *uri, void *param) |
Functions | |
| int | agg_body_sendn_update (str *rl_uri, char *boundary_string, str *rlmi_body, str *multipart_body, subs_t *subs, unsigned int hash_code) |
| char * | generate_cid (char *uri, int uri_len) |
| char * | generate_string (int seed, int length) |
| char * | get_auth_string (int flag) |
| int | process_list_and_exec (xmlNodePtr list, list_func_t function, void *param) |
| int | rls_send_notify (subs_t *subs, str *body, char *start_cid, char *boundary_string) |
| int | send_full_notify (subs_t *subs, xmlNodePtr rl_node, int version, str *rl_uri, unsigned int hash_code) |
| #define BOUNDARY_STRING_LEN 24 |
Definition at line 37 of file rls/notify.h.
Referenced by send_full_notify(), and timer_send_notify().
| #define BUF_REALLOC_SIZE 2048 |
Definition at line 38 of file rls/notify.h.
Referenced by constr_multipart_body(), and timer_send_notify().
| #define COMPUTE_ANTET_LEN | ( | boundary_string | ) | (strlen( boundary_string)+ MAX_HEADERS_LENGTH + 6) |
Definition at line 49 of file rls/notify.h.
Referenced by constr_multipart_body(), and timer_send_notify().
| #define MAX_FORWARD 70 |
Definition at line 41 of file rls/notify.h.
| #define MAX_HEADERS_LENGTH (104+ 255+ 1) |
Definition at line 39 of file rls/notify.h.
| #define REALLOC_BUF |
Value:
size+= BUF_REALLOC_SIZE;\ buf= (char*)realloc(buf, size);\ if(buf== NULL) \ { ERR_MEM("constr_multipart_body");}
Definition at line 43 of file rls/notify.h.
Referenced by constr_multipart_body(), and timer_send_notify().
| #define RLS_HDR_LEN 1024 |
| typedef int(* list_func_t)(char *uri, void *param) |
Definition at line 53 of file rls/notify.h.
| int agg_body_sendn_update | ( | str * | rl_uri, | |
| char * | boundary_string, | |||
| str * | rlmi_body, | |||
| str * | multipart_body, | |||
| subs_t * | subs, | |||
| unsigned int | hash_code | |||
| ) |
Definition at line 208 of file rls/notify.c.
References ERR_MEM, generate_cid(), _str::len, len, LM_ERR, LOCAL_TYPE, NULL, pkg_free, pkg_malloc, PKG_MEM_STR, pres_update_shtable, rls_send_notify(), rls_table, and _str::s.
Referenced by send_full_notify(), and timer_send_notify().
| char* generate_cid | ( | char * | uri, | |
| int | uri_len | |||
| ) |
Definition at line 917 of file rls/notify.c.
Referenced by add_resource_instance(), agg_body_sendn_update(), and timer_send_notify().
| char* generate_string | ( | int | seed, | |
| int | length | |||
| ) |
Definition at line 892 of file rls/notify.c.
References buf, LM_ERR, and NULL.
Referenced by add_resource_instance(), send_full_notify(), and timer_send_notify().
| char* get_auth_string | ( | int | flag | ) |
Definition at line 928 of file rls/notify.c.
References ACTIVE_STATE, NULL, PENDING_STATE, and TERMINATED_STATE.
Referenced by add_resource_instance(), and timer_send_notify().
| int process_list_and_exec | ( | xmlNodePtr | list, | |
| list_func_t | function, | |||
| void * | param | |||
| ) |
Definition at line 858 of file rls/notify.c.
References LM_DBG, LM_ERR, NULL, process_list_and_exec(), and XMLNodeGetAttrContentByName.
Referenced by constr_rlmi_doc(), process_list_and_exec(), and resource_subscriptions().
Definition at line 631 of file rls/notify.c.
References dialog_id::callid, subscription::callid, ERR_MEM, dialog_id::from_tag, subscription::from_tag, _str::len, LM_DBG, LM_ERR, NULL, pkg_free, rls_free_td(), rls_notify_callback(), rls_notify_dlg(), rls_notify_extra_hdr(), _str::s, SHARE_MEM, shm_free, shm_malloc(), tm_binds::t_request_within, tmb, dialog_id::to_tag, and subscription::to_tag.
Referenced by agg_body_sendn_update(), and handle_expired_record().
| int send_full_notify | ( | subs_t * | subs, | |
| xmlNodePtr | rl_node, | |||
| int | version, | |||
| str * | rl_uri, | |||
| unsigned int | hash_code | |||
| ) |
Definition at line 70 of file rls/notify.c.
References agg_body_sendn_update(), auth_state_col, BOUNDARY_STRING_LEN, constr_multipart_body(), constr_rlmi_doc(), CONSTR_RLSUBS_DID(), content_type_col, DB_INT, DB_STR, db_func::free_result, generate_string(), db_val_t::int_val, LM_DBG, LM_ERR, db_res::n, NO_UPDATE_TYPE, db_val_t::nul, NULL, pkg_free, pres_state_col, db_func::query, reason_col, resource_uri_col, rlpres_table, rls_db, rls_dbf, _str::s, str_auth_state_col, str_content_type_col, str_presence_state_col, str_reason_col, str_resource_uri_col, str_rlsubs_did_col, str_updated_col, db_val_t::str_val, db_val_t::type, db_func::update, db_func::use_table, and db_val_t::val.
Referenced by rls_handle_subscribe().
1.5.6