avpops.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <regex.h>
#include "../../mem/shm_mem.h"
#include "../../mem/mem.h"
#include "../../parser/parse_hname2.h"
#include "../../sr_module.h"
#include "../../str.h"
#include "../../dprint.h"
#include "../../error.h"
#include "../../ut.h"
#include "avpops_parse.h"
#include "avpops_impl.h"
#include "avpops_db.h"

Include dependency graph for avpops.c:

Go to the source code of this file.

Functions

static int avpops_child_init (int rank)
static int avpops_init (void)
static int fixup_check_avp (void **param, int param_no)
static int fixup_copy_avp (void **param, int param_no)
static int fixup_db_avp (void **param, int param_no, int allow_scheme)
static int fixup_db_delete_avp (void **param, int param_no)
static int fixup_db_load_avp (void **param, int param_no)
static int fixup_db_query_avp (void **param, int param_no)
static int fixup_db_store_avp (void **param, int param_no)
static int fixup_delete_avp (void **param, int param_no)
static int fixup_is_avp_set (void **param, int param_no)
static int fixup_op_avp (void **param, int param_no)
static int fixup_pushto_avp (void **param, int param_no)
static int fixup_subst (void **param, int param_no)
static int w_check_avps (struct sip_msg *msg, char *param, char *check)
static int w_copy_avps (struct sip_msg *msg, char *param, char *check)
static int w_dbdelete_avps (struct sip_msg *msg, char *source, char *param)
static int w_dbload_avps (struct sip_msg *msg, char *source, char *param)
static int w_dbquery1_avps (struct sip_msg *msg, char *query, char *param)
static int w_dbquery2_avps (struct sip_msg *msg, char *query, char *dest)
static int w_dbstore_avps (struct sip_msg *msg, char *source, char *param)
static int w_delete_avps (struct sip_msg *msg, char *param, char *foo)
static int w_is_avp_set (struct sip_msg *msg, char *param, char *foo)
static int w_op_avps (struct sip_msg *msg, char *param, char *op)
static int w_print_avps (struct sip_msg *msg, char *foo, char *bar)
static int w_pushto_avps (struct sip_msg *msg, char *destination, char *param)
static int w_subst (struct sip_msg *msg, char *src, char *subst)

Variables

static str attribute_col = str_init("attribute")
static cmd_export_t cmds []
 Exported functions.
static strdb_columns [6] = {&uuid_col, &attribute_col, &value_col, &type_col, &username_col, &domain_col}
static str db_table = {NULL, 0}
static MODULE_VERSION str db_url = {NULL, 0}
static str domain_col = str_init("domain")
struct module_exports exports
static param_export_t params []
 Exported parameters.
static str type_col = str_init("type")
static int use_domain = 0
static str username_col = str_init("username")
static str uuid_col = str_init("uuid")
static str value_col = str_init("value")


Function Documentation

static int avpops_child_init ( int  rank  )  [static]

Definition at line 198 of file avpops.c.

References avpops_db_init(), PROC_MAIN, PROC_TCP_MAIN, and _str::s.

static int avpops_init ( void   )  [static]

Definition at line 163 of file avpops.c.

References avpops_db_bind(), init_store_avps(), _str::len, LM_CRIT, and _str::s.

static int fixup_check_avp ( void **  param,
int  param_no 
) [static]

static int fixup_copy_avp ( void **  param,
int  param_no 
) [static]

static int fixup_db_avp ( void **  param,
int  param_no,
int  allow_scheme 
) [static]

static int fixup_db_delete_avp ( void **  param,
int  param_no 
) [static]

Definition at line 314 of file avpops.c.

References fixup_db_avp().

static int fixup_db_load_avp ( void **  param,
int  param_no 
) [static]

Definition at line 309 of file avpops.c.

References fixup_db_avp().

static int fixup_db_query_avp ( void **  param,
int  param_no 
) [static]

Definition at line 325 of file avpops.c.

References E_UNSPEC, _str::len, LM_ERR, NULL, parse_pvname_list(), pv_parse_format(), PVT_AVP, _str::s, and s.

static int fixup_db_store_avp ( void **  param,
int  param_no 
) [static]

Definition at line 320 of file avpops.c.

References fixup_db_avp().

static int fixup_delete_avp ( void **  param,
int  param_no 
) [static]

static int fixup_is_avp_set ( void **  param,
int  param_no 
) [static]

static int fixup_op_avp ( void **  param,
int  param_no 
) [static]

static int fixup_pushto_avp ( void **  param,
int  param_no 
) [static]

static int fixup_subst ( void **  param,
int  param_no 
) [static]

static int w_check_avps ( struct sip_msg msg,
char *  param,
char *  check 
) [static]

Definition at line 1031 of file avpops.c.

References ops_check_avp().

static int w_copy_avps ( struct sip_msg msg,
char *  param,
char *  check 
) [static]

Definition at line 1019 of file avpops.c.

References ops_copy_avp().

static int w_dbdelete_avps ( struct sip_msg msg,
char *  source,
char *  param 
) [static]

Definition at line 992 of file avpops.c.

References ops_dbdelete_avps(), and use_domain.

static int w_dbload_avps ( struct sip_msg msg,
char *  source,
char *  param 
) [static]

Definition at line 986 of file avpops.c.

References ops_dbload_avps(), and use_domain.

static int w_dbquery1_avps ( struct sip_msg msg,
char *  query,
char *  param 
) [static]

Definition at line 1004 of file avpops.c.

References ops_dbquery_avps().

static int w_dbquery2_avps ( struct sip_msg msg,
char *  query,
char *  dest 
) [static]

Definition at line 1009 of file avpops.c.

References ops_dbquery_avps().

static int w_dbstore_avps ( struct sip_msg msg,
char *  source,
char *  param 
) [static]

Definition at line 998 of file avpops.c.

References ops_dbstore_avps(), and use_domain.

static int w_delete_avps ( struct sip_msg msg,
char *  param,
char *  foo 
) [static]

Definition at line 1014 of file avpops.c.

References ops_delete_avp().

static int w_is_avp_set ( struct sip_msg msg,
char *  param,
char *  foo 
) [static]

Definition at line 1048 of file avpops.c.

References ops_is_avp_set().

static int w_op_avps ( struct sip_msg msg,
char *  param,
char *  op 
) [static]

Definition at line 1037 of file avpops.c.

References ops_op_avp().

static int w_print_avps ( struct sip_msg msg,
char *  foo,
char *  bar 
) [static]

Definition at line 1053 of file avpops.c.

References ops_print_avp().

static int w_pushto_avps ( struct sip_msg msg,
char *  destination,
char *  param 
) [static]

Definition at line 1025 of file avpops.c.

References ops_pushto_avp().

static int w_subst ( struct sip_msg msg,
char *  src,
char *  subst 
) [static]

Definition at line 1043 of file avpops.c.

References ops_subst().


Variable Documentation

str attribute_col = str_init("attribute") [static]

Definition at line 58 of file avpops.c.

cmd_export_t cmds[] [static]

Exported functions.

Definition at line 98 of file avpops.c.

Definition at line 63 of file avpops.c.

str db_table = {NULL, 0} [static]

Definition at line 55 of file avpops.c.

Referenced by check_username(), and does_uri_exist().

MODULE_VERSION str db_url = {NULL, 0} [static]

Definition at line 54 of file avpops.c.

str domain_col = str_init("domain") [static]

Definition at line 147 of file avpops.c.

param_export_t params[] [static]

Exported parameters.

Definition at line 132 of file avpops.c.

str type_col = str_init("type") [static]

Definition at line 60 of file avpops.c.

int use_domain = 0 [static]

Definition at line 56 of file avpops.c.

str username_col = str_init("username") [static]

Definition at line 61 of file avpops.c.

str uuid_col = str_init("uuid") [static]

Definition at line 57 of file avpops.c.

str value_col = str_init("value") [static]

Definition at line 59 of file avpops.c.


Generated on Thu May 17 12:00:35 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6