pua.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libxml/parser.h>
#include <time.h>
#include "../../sr_module.h"
#include "../../parser/parse_expires.h"
#include "../../dprint.h"
#include "../../mem/shm_mem.h"
#include "../../parser/msg_parser.h"
#include "../../str.h"
#include "../../mem/mem.h"
#include "../../pt.h"
#include "../../db/db.h"
#include "../tm/tm_load.h"
#include "pua.h"
#include "send_publish.h"
#include "send_subscribe.h"
#include "pua_bind.h"
#include "pua_callback.h"
#include "event_list.h"
#include "add_events.h"
#include "pidf.h"

Include dependency graph for pua.c:

Go to the source code of this file.

Defines

#define PUA_TABLE_VERSION   6

Functions

int bind_pua (pua_api_t *api)
static ua_pres_tbuild_uppubl_cbparam (ua_pres_t *p)
static int child_init (int)
static int db_restore (void)
static void db_update (unsigned int ticks, void *param)
static void destroy (void)
static void hashT_clean (unsigned int ticks, void *param)
static int mod_init (void)
static int update_pua (ua_pres_t *p, unsigned int hash_code)

Variables

static cmd_export_t cmds []
static str db_table = str_init("pua")
static str db_url = str_init(DEFAULT_DB_URL)
int default_expires = 3600
int dlginfo_increase_version = 0
struct module_exports exports
int HASH_SIZE = -1
htable_tHashT = NULL
int min_expires = 0
str outbound_proxy = {0, 0}
static param_export_t params []
db_con_tpua_db = NULL
db_func_t pua_dbf
pua_event_tpua_evlist = NULL
int startup_time = 0
static str str_call_id_col = str_init("call_id")
static str str_contact_col = str_init("contact")
static str str_cseq_col = str_init("cseq")
static str str_desired_expires_col = str_init("desired_expires")
static str str_etag_col = str_init("etag")
static str str_event_col = str_init("event")
static str str_expires_col = str_init("expires")
static str str_extra_headers_col = str_init("extra_headers")
static str str_flag_col = str_init("flag")
static str str_from_tag_col = str_init("from_tag")
static str str_pres_id_col = str_init("pres_id")
static str str_pres_uri_col = str_init("pres_uri")
static str str_record_route_col = str_init("record_route")
static str str_remote_contact_col = str_init("remote_contact")
static str str_to_tag_col = str_init("to_tag")
static str str_tuple_id_col = str_init("tuple_id")
static str str_version_col = str_init("version")
static str str_watcher_uri_col = str_init("watcher_uri")
struct tm_binds tmb
int update_period = 100


Define Documentation

#define PUA_TABLE_VERSION   6

Definition at line 56 of file pua.c.

Referenced by mod_init().


Function Documentation

int bind_pua ( pua_api_t api  ) 

static ua_pres_t * build_uppubl_cbparam ( ua_pres_t p  )  [static]

static int child_init ( int  rank  )  [static]

Definition at line 257 of file pua.c.

References db_func::init, LM_CRIT, LM_DBG, LM_ERR, and db_func::use_table.

static int db_restore ( void   )  [static]

static void db_update ( unsigned int  ticks,
void *  param 
) [static]

static void destroy ( void   )  [static]

static void hashT_clean ( unsigned int  ticks,
void *  param 
) [static]

static int mod_init ( void   )  [static]

int update_pua ( ua_pres_t p,
unsigned int  hash_code 
) [static]


Variable Documentation

cmd_export_t cmds[] [static]

Definition at line 109 of file pua.c.

str db_table = str_init("pua") [static]

Definition at line 65 of file pua.c.

str db_url = str_init(DEFAULT_DB_URL) [static]

Definition at line 64 of file pua.c.

int default_expires = 3600

Definition at line 63 of file pua.c.

Referenced by calc_contact_expires(), child_init(), get_expires_hf(), and mod_init().

Definition at line 69 of file pua.c.

Referenced by pua_add_events().

module exports

Definition at line 130 of file pua.c.

int HASH_SIZE = -1

Definition at line 60 of file pua.c.

htable_t* HashT = NULL

int min_expires = 0

Definition at line 62 of file pua.c.

Referenced by calc_contact_expires(), hashT_clean(), mod_init(), publ_build_hdr(), and subs_build_hdr().

str outbound_proxy = {0, 0}

Definition at line 67 of file pua.c.

param_export_t params[] [static]

Definition at line 117 of file pua.c.

db_con_t* pua_db = NULL

Definition at line 73 of file pua.c.

Definition at line 74 of file pua.c.

Definition at line 70 of file pua.c.

Referenced by add_pua_event(), contains_pua_event(), destroy_pua_evlist(), and get_event().

int startup_time = 0

Definition at line 68 of file pua.c.

str str_call_id_col = str_init("call_id") [static]

Definition at line 84 of file pua.c.

str str_contact_col = str_init("contact") [static]

Definition at line 90 of file pua.c.

str str_cseq_col = str_init("cseq") [static]

Definition at line 87 of file pua.c.

str str_desired_expires_col = str_init("desired_expires") [static]

Definition at line 93 of file pua.c.

str str_etag_col = str_init("etag") [static]

Definition at line 81 of file pua.c.

str str_event_col = str_init("event") [static]

Definition at line 88 of file pua.c.

str str_expires_col = str_init("expires") [static]

Definition at line 79 of file pua.c.

str str_extra_headers_col = str_init("extra_headers") [static]

Definition at line 92 of file pua.c.

str str_flag_col = str_init("flag") [static]

Definition at line 80 of file pua.c.

str str_from_tag_col = str_init("from_tag") [static]

Definition at line 86 of file pua.c.

str str_pres_id_col = str_init("pres_id") [static]

Definition at line 78 of file pua.c.

str str_pres_uri_col = str_init("pres_uri") [static]

Definition at line 77 of file pua.c.

str str_record_route_col = str_init("record_route") [static]

Definition at line 89 of file pua.c.

str str_remote_contact_col = str_init("remote_contact") [static]

Definition at line 91 of file pua.c.

str str_to_tag_col = str_init("to_tag") [static]

Definition at line 85 of file pua.c.

str str_tuple_id_col = str_init("tuple_id") [static]

Definition at line 82 of file pua.c.

str str_version_col = str_init("version") [static]

Definition at line 94 of file pua.c.

str str_watcher_uri_col = str_init("watcher_uri") [static]

Definition at line 83 of file pua.c.

struct tm_binds tmb

TM bind

Definition at line 58 of file pua.c.

int update_period = 100

Definition at line 66 of file pua.c.

Referenced by hashT_clean(), and mod_init().


Generated on Thu May 24 08:01:15 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6