#include <stdio.h>#include <stdlib.h>#include <libxml/parser.h>#include "../../parser/parse_content.h"#include "../../parser/parse_from.h"#include "../../cmpapi.h"#include "../pua/hash.h"#include "rls.h"#include "notify.h"#include "resource_notify.h"

Go to the source code of this file.
Defines | |
| #define | CONT_COPY(buf, dest, source) |
| #define | CONT_COPY_1 |
Functions | |
| int | parse_rlsubs_did (char *str_did, str *callid, str *from_tag, str *to_tag) |
| int | parse_subs_state (str auth_state, str **reason, int *expires) |
| int | rls_handle_notify (struct sip_msg *msg, char *c1, char *c2) |
| void | rls_presentity_clean (unsigned int ticks, void *param) |
| void | timer_send_notify (unsigned int ticks, void *param) |
Variables | |
| static str | su_200_rpl = str_init("OK") |
| #define CONT_COPY | ( | buf, | |||
| dest, | |||||
| source | ) |
Value:
dest.s= (char*)buf+ size;\ memcpy(dest.s, source.s, source.len);\ dest.len= source.len;\ size+= source.len;
Definition at line 49 of file resource_notify.c.
| #define CONT_COPY_1 |
Value:
(buf, dest_s, dest_len, source_s, source_len)\ dest_s= (char*)buf+ size;\ memcpy(dest_s, source_s, source_len);\ dest_len= source_len;\ size+= source_len;
Definition at line 56 of file resource_notify.c.
Definition at line 415 of file resource_notify.c.
References DID_SEP, DID_SEP_LEN, _str::len, LM_ERR, NULL, and _str::s.
Referenced by timer_send_notify().
Definition at line 62 of file resource_notify.c.
References ACTIVE_STATE, ERR_MEM, _str::len, len, LM_ERR, NULL, PENDING_STATE, pkg_free, pkg_malloc, PKG_MEM_STR, _str::s, str2int(), and TERMINATED_STATE.
Referenced by rls_handle_notify().
| int rls_handle_notify | ( | struct sip_msg * | msg, | |
| char * | c1, | |||
| char * | c2 | |||
| ) |
Definition at line 141 of file resource_notify.c.
References hdr_field::body, to_body::body, ua_pres::call_id, sip_msg::callid, cmp_hdrname_strzn(), sip_msg::content_type, DB_INT, DB_STR, to_body::error, ua_pres::event, sip_msg::event, ua_pres::flag, db_func::free_result, sip_msg::from, ua_pres::from_tag, get_body(), get_content_length, get_event_flag(), HDR_EOH_F, sip_msg::headers, db_func::insert, db_val_t::int_val, _str::len, LM_DBG, LM_ERR, db_res::n, hdr_field::name, hdr_field::next, db_val_t::nul, NULL, parse_from_header(), parse_headers(), parse_subs_state(), parse_to(), hdr_field::parsed, ua_pres::pres_uri, pua_get_record_id, db_func::query, rlpres_table, rls_db, rls_dbf, RLS_SUBSCRIBE, _str::s, sl_binds::send_reply, slb, str_auth_state_col, str_content_type_col, str_expires_col, str_presence_state_col, str_reason_col, str_resource_uri_col, str_rlsubs_did_col, str_updated_col, db_val_t::str_val, to_body::tag_value, sip_msg::to, TO, ua_pres::to_tag, db_val_t::type, db_func::update, UPDATED_TYPE, to_body::uri, db_func::use_table, db_val_t::val, and ua_pres::watcher_uri.
| void rls_presentity_clean | ( | unsigned int | ticks, | |
| void * | param | |||
| ) |
Definition at line 785 of file resource_notify.c.
References DB_INT, db_func::delete, db_val_t::int_val, LM_ERR, db_val_t::nul, NULL, OP_LT, rlpres_table, rls_db, rls_dbf, str_expires_col, db_val_t::type, db_func::use_table, and db_val_t::val.
Referenced by mod_init().
| void timer_send_notify | ( | unsigned int | ticks, | |
| void * | param | |||
| ) |
Definition at line 445 of file resource_notify.c.
References ACTIVE_STATE, agg_body_sendn_update(), auth_state_col, BOUNDARY_STRING_LEN, buf, buf_len, BUF_REALLOC_SIZE, COMPUTE_ANTET_LEN, content_type_col, core_hash(), DB_INT, ERR_MEM, to_body::error, db_func::free_result, from_tag, generate_cid(), generate_string(), get_auth_string(), hash_size, int2str(), db_val_t::int_val, _str::len, len, LM_DBG, LM_ERR, lock, db_res::n, NO_UPDATE_TYPE, db_val_t::nul, NULL, parse_rlsubs_did(), pkg_free, pkg_malloc, PKG_MEM_STR, PKG_MEM_TYPE, pres_copy_subs, pres_search_shtable, pres_state_col, subscription::pres_uri, db_func::query, REALLOC_BUF, reason_col, resource_uri_col, rlpres_table, rls_db, rls_dbf, rls_table, ROW_VALUES, db_res::rows, _str::s, 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::string_val, TERMINATED_STATE, db_val_t::type, db_func::update, UPDATED_TYPE, db_func::use_table, db_val_t::val, and subscription::version.
Referenced by mod_init().
str su_200_rpl = str_init("OK") [static] |
Definition at line 47 of file resource_notify.c.
1.5.6