rls/notify.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "../../ut.h"
#include "../../str.h"
#include "../../dprint.h"
#include "../../data_lump_rpl.h"
#include "../../parser/msg_parser.h"
#include "../../parser/parse_event.h"
#include "../../parser/parse_expires.h"
#include "../../parser/parse_cseq.h"
#include "../../parser/contact/parse_contact.h"
#include "../../parser/parse_rr.h"
#include "../tm/dlg.h"
#include "../presence/utils_func.h"
#include "../presence/hash.h"
#include "rls.h"
#include "notify.h"

Include dependency graph for rls/notify.c:

Go to the source code of this file.

Data Structures

struct  res_param

Typedefs

typedef struct res_param res_param_t

Functions

int add_resource (char *uri, void *param)
int add_resource_instance (char *uri, xmlNodePtr resource_node, db_res_t *result, char **cid_array)
int agg_body_sendn_update (str *rl_uri, char *boundary_string, str *rlmi_body, str *multipart_body, subs_t *subs, unsigned int hash_code)
strconstr_multipart_body (db_res_t *result, char **cid_array, char *boundary_string)
strconstr_rlmi_doc (db_res_t *result, str *rl_uri, int version, xmlNodePtr rl_node, char ***cid_array)
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_node, list_func_t function, void *param)
void rls_free_td (dlg_t *td)
void rls_notify_callback (struct cell *t, int type, struct tmcb_params *ps)
dlg_trls_notify_dlg (subs_t *subs)
strrls_notify_extra_hdr (subs_t *subs, char *start_cid, char *boundary_string)
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)

Variables

int auth_state_col = 0
int content_type_col
int pres_state_col = 0
int reason_col = 0
int resource_uri_col = 0


Typedef Documentation

typedef struct res_param res_param_t


Function Documentation

int add_resource ( char *  uri,
void *  param 
)

Definition at line 353 of file rls/notify.c.

References add_resource_instance(), LM_DBG, LM_ERR, and NULL.

Referenced by constr_rlmi_doc().

int add_resource_instance ( char *  uri,
xmlNodePtr  resource_node,
db_res_t result,
char **  cid_array 
)

int agg_body_sendn_update ( str rl_uri,
char *  boundary_string,
str rlmi_body,
str multipart_body,
subs_t subs,
unsigned int  hash_code 
)

str * constr_multipart_body ( db_res_t result,
char **  cid_array,
char *  boundary_string 
)

str * constr_rlmi_doc ( db_res_t result,
str rl_uri,
int  version,
xmlNodePtr  rl_node,
char ***  cid_array 
)

char* generate_cid ( char *  uri,
int  uri_len 
)

Definition at line 917 of file rls/notify.c.

References len, and NULL.

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_node,
list_func_t  function,
void *  param 
)

void rls_free_td ( dlg_t td  ) 

Definition at line 624 of file rls/notify.c.

References dlg::loc_uri, pkg_free, dlg::rem_uri, and _str::s.

Referenced by rls_send_notify().

void rls_notify_callback ( struct cell t,
int  type,
struct tmcb_params ps 
)

dlg_t * rls_notify_dlg ( subs_t subs  ) 

str* rls_notify_extra_hdr ( subs_t subs,
char *  start_cid,
char *  boundary_string 
)

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 
)


Variable Documentation

int auth_state_col = 0

Definition at line 57 of file rls/notify.c.

Referenced by constr_multipart_body(), send_full_notify(), and timer_send_notify().

int pres_state_col = 0

Definition at line 57 of file rls/notify.c.

Referenced by constr_multipart_body(), send_full_notify(), and timer_send_notify().

int reason_col = 0


Generated on Thu May 24 10:00:40 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6