dlg_db_handler.h File Reference

#include "../../str.h"
#include "../../db/db.h"

Include dependency graph for dlg_db_handler.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define CALL_ID_COL   "callid"
#define DB_DEFAULT_UPDATE_PERIOD   60
#define DB_MODE_DELAYED   2
#define DB_MODE_NONE   0
#define DB_MODE_REALTIME   1
#define DB_MODE_SHUTDOWN   3
#define DIALOG_TABLE_COL_NO   20
#define DIALOG_TABLE_NAME   "dialog"
#define DLG_TABLE_VERSION   3
#define FROM_CONTACT_COL   "caller_contact"
#define FROM_CSEQ_COL   "caller_cseq"
#define FROM_ROUTE_COL   "caller_route_set"
#define FROM_SOCK_COL   "caller_sock"
#define FROM_TAG_COL   "from_tag"
#define FROM_URI_COL   "from_uri"
#define HASH_ENTRY_COL   "hash_entry"
#define HASH_ID_COL   "hash_id"
#define SFLAGS_COL   "sflags"
#define START_TIME_COL   "start_time"
#define STATE_COL   "state"
#define TIMEOUT_COL   "timeout"
#define TO_CONTACT_COL   "callee_contact"
#define TO_CSEQ_COL   "callee_cseq"
#define TO_ROUTE_COL   "callee_route_set"
#define TO_SOCK_COL   "callee_sock"
#define TO_TAG_COL   "to_tag"
#define TO_URI_COL   "to_uri"
#define TOROUTE_COL   "toroute"

Functions

void destroy_dlg_db (void)
void dialog_update_db (unsigned int ticks, void *param)
int dlg_connect_db (const str *db_url)
int init_dlg_db (const str *db_url, int dlg_hash_size, int db_update_period, int fetch_num_rows)
int remove_dialog_from_db (struct dlg_cell *cell)
int update_dialog_dbinfo (struct dlg_cell *cell)

Variables

str call_id_column
str dialog_table_name
int dlg_db_mode
str from_contact_column
str from_cseq_column
str from_route_column
str from_sock_column
str from_tag_column
str from_uri_column
str h_entry_column
str h_id_column
str sflags_column
str start_time_column
str state_column
str timeout_column
str to_contact_column
str to_cseq_column
str to_route_column
str to_sock_column
str to_tag_column
str to_uri_column
str toroute_column


Define Documentation

#define CALL_ID_COL   "callid"

Definition at line 34 of file dlg_db_handler.h.

#define DB_DEFAULT_UPDATE_PERIOD   60

Definition at line 59 of file dlg_db_handler.h.

#define DB_MODE_DELAYED   2

Definition at line 62 of file dlg_db_handler.h.

Referenced by child_init(), init_dlg_db(), mod_destroy(), and mod_init().

#define DB_MODE_NONE   0

Definition at line 60 of file dlg_db_handler.h.

Referenced by child_init(), mod_destroy(), and mod_init().

#define DB_MODE_REALTIME   1

Definition at line 61 of file dlg_db_handler.h.

Referenced by child_init(), dlg_onreply(), dlg_onroute(), and mod_init().

#define DB_MODE_SHUTDOWN   3

Definition at line 63 of file dlg_db_handler.h.

Referenced by child_init(), mod_destroy(), and mod_init().

#define DIALOG_TABLE_COL_NO   20

#define DIALOG_TABLE_NAME   "dialog"

Definition at line 54 of file dlg_db_handler.h.

#define DLG_TABLE_VERSION   3

Definition at line 56 of file dlg_db_handler.h.

Referenced by init_dlg_db().

#define FROM_CONTACT_COL   "caller_contact"

Definition at line 49 of file dlg_db_handler.h.

#define FROM_CSEQ_COL   "caller_cseq"

Definition at line 45 of file dlg_db_handler.h.

#define FROM_ROUTE_COL   "caller_route_set"

Definition at line 47 of file dlg_db_handler.h.

#define FROM_SOCK_COL   "caller_sock"

Definition at line 50 of file dlg_db_handler.h.

#define FROM_TAG_COL   "from_tag"

Definition at line 36 of file dlg_db_handler.h.

#define FROM_URI_COL   "from_uri"

Definition at line 35 of file dlg_db_handler.h.

#define HASH_ENTRY_COL   "hash_entry"

Definition at line 40 of file dlg_db_handler.h.

#define HASH_ID_COL   "hash_id"

Definition at line 39 of file dlg_db_handler.h.

#define SFLAGS_COL   "sflags"

Definition at line 52 of file dlg_db_handler.h.

#define START_TIME_COL   "start_time"

Definition at line 42 of file dlg_db_handler.h.

#define STATE_COL   "state"

Definition at line 41 of file dlg_db_handler.h.

#define TIMEOUT_COL   "timeout"

Definition at line 43 of file dlg_db_handler.h.

#define TO_CONTACT_COL   "callee_contact"

Definition at line 48 of file dlg_db_handler.h.

#define TO_CSEQ_COL   "callee_cseq"

Definition at line 44 of file dlg_db_handler.h.

#define TO_ROUTE_COL   "callee_route_set"

Definition at line 46 of file dlg_db_handler.h.

#define TO_SOCK_COL   "callee_sock"

Definition at line 51 of file dlg_db_handler.h.

#define TO_TAG_COL   "to_tag"

Definition at line 38 of file dlg_db_handler.h.

#define TO_URI_COL   "to_uri"

Definition at line 37 of file dlg_db_handler.h.

#define TOROUTE_COL   "toroute"

Definition at line 53 of file dlg_db_handler.h.


Function Documentation

void destroy_dlg_db ( void   ) 

Definition at line 162 of file dlg_db_handler.c.

References db_func::close.

Referenced by mod_destroy().

void dialog_update_db ( unsigned int  ticks,
void *  param 
)

int dlg_connect_db ( const str db_url  ) 

Definition at line 113 of file dlg_db_handler.c.

References db_func::init, and LM_CRIT.

Referenced by child_init(), and init_dlg_db().

int init_dlg_db ( const str db_url,
int  dlg_hash_size,
int  db_update_period,
int  fetch_num_rows 
)

int remove_dialog_from_db ( struct dlg_cell cell  ) 

int update_dialog_dbinfo ( struct dlg_cell cell  ) 


Variable Documentation

Definition at line 43 of file dlg_db_handler.c.

Referenced by mod_init().

Definition at line 63 of file dlg_db_handler.c.

Referenced by mod_init().

Definition at line 58 of file dlg_db_handler.c.

Referenced by mod_init().

Definition at line 54 of file dlg_db_handler.c.

Referenced by mod_init().

Definition at line 56 of file dlg_db_handler.c.

Referenced by mod_init().

Definition at line 60 of file dlg_db_handler.c.

Referenced by mod_init().

Definition at line 45 of file dlg_db_handler.c.

Referenced by mod_init().

Definition at line 44 of file dlg_db_handler.c.

Referenced by mod_init().

Definition at line 49 of file dlg_db_handler.c.

Referenced by mod_init().

Definition at line 48 of file dlg_db_handler.c.

Referenced by mod_init().

Definition at line 61 of file dlg_db_handler.c.

Referenced by mod_init().

Definition at line 51 of file dlg_db_handler.c.

Referenced by mod_init().

Definition at line 50 of file dlg_db_handler.c.

Referenced by mod_init().

Definition at line 52 of file dlg_db_handler.c.

Referenced by mod_init().

Definition at line 57 of file dlg_db_handler.c.

Referenced by mod_init().

Definition at line 53 of file dlg_db_handler.c.

Referenced by mod_init().

Definition at line 55 of file dlg_db_handler.c.

Referenced by mod_init().

Definition at line 59 of file dlg_db_handler.c.

Referenced by mod_init().

Definition at line 47 of file dlg_db_handler.c.

Referenced by mod_init().

Definition at line 46 of file dlg_db_handler.c.

Referenced by mod_init().

Definition at line 62 of file dlg_db_handler.c.

Referenced by mod_init().


Generated on Tue May 22 16:00:38 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6