avpops_impl.h File Reference

#include "../../str.h"
#include "../../usr_avp.h"
#include "../../pvar.h"
#include "../../re.h"
#include "../../parser/msg_parser.h"
#include "avpops_db.h"

Include dependency graph for avpops_impl.h:

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

Go to the source code of this file.

Data Structures

struct  db_param
struct  fis_param

Defines

#define AVP_IS_IN_DB   (1<<7)
#define AVPOPS_DB_NAME_INT   (1<<1)
#define AVPOPS_DB_VAL_INT   (1<<0)
#define AVPOPS_FLAG_ALL   (1<<24)
#define AVPOPS_FLAG_CASTN   (1<<27)
#define AVPOPS_FLAG_CASTS   (1<<28)
#define AVPOPS_FLAG_CI   (1<<25)
#define AVPOPS_FLAG_DELETE   (1<<26)
#define AVPOPS_FLAG_DOMAIN0   (1<<25)
#define AVPOPS_FLAG_EMPTY   (1<<29)
#define AVPOPS_FLAG_URI0   (1<<26)
#define AVPOPS_FLAG_USER0   (1<<24)
#define AVPOPS_FLAG_UUID0   (1<<27)
#define AVPOPS_OP_ADD   (1<<12)
#define AVPOPS_OP_BAND   (1<<8)
#define AVPOPS_OP_BNOT   (1<<11)
#define AVPOPS_OP_BOR   (1<<9)
#define AVPOPS_OP_BXOR   (1<<10)
#define AVPOPS_OP_DIV   (1<<15)
#define AVPOPS_OP_EQ   (1<<0)
#define AVPOPS_OP_FM   (1<<7)
#define AVPOPS_OP_GE   (1<<5)
#define AVPOPS_OP_GT   (1<<4)
#define AVPOPS_OP_LE   (1<<3)
#define AVPOPS_OP_LT   (1<<2)
#define AVPOPS_OP_MOD   (1<<16)
#define AVPOPS_OP_MUL   (1<<14)
#define AVPOPS_OP_NE   (1<<1)
#define AVPOPS_OP_RE   (1<<6)
#define AVPOPS_OP_SUB   (1<<13)
#define AVPOPS_USE_BRANCH   (1<<15)
#define AVPOPS_USE_DOMAIN   (1<<9)
#define AVPOPS_USE_DST_IP   (1<<13)
#define AVPOPS_USE_DURI   (1<<14)
#define AVPOPS_USE_FROM   (1<<5)
#define AVPOPS_USE_RURI   (1<<7)
#define AVPOPS_USE_SRC_IP   (1<<12)
#define AVPOPS_USE_TO   (1<<6)
#define AVPOPS_USE_USERNAME   (1<<8)
#define AVPOPS_VAL_INT   (1<<1)
#define AVPOPS_VAL_NONE   (1<<0)
#define AVPOPS_VAL_PVAR   (1<<3)
#define AVPOPS_VAL_STR   (1<<2)

Functions

void init_store_avps (str **db_columns)
int ops_check_avp (struct sip_msg *msg, struct fis_param *param, struct fis_param *check)
int ops_copy_avp (struct sip_msg *msg, struct fis_param *name1, struct fis_param *name2)
int ops_dbdelete_avps (struct sip_msg *msg, struct fis_param *sp, struct db_param *dbp, int use_domain)
int ops_dbload_avps (struct sip_msg *msg, struct fis_param *sp, struct db_param *dbp, int use_domain)
int ops_dbquery_avps (struct sip_msg *msg, pv_elem_t *query, pvname_list_t *dest)
int ops_dbstore_avps (struct sip_msg *msg, struct fis_param *sp, struct db_param *dbp, int use_domain)
int ops_delete_avp (struct sip_msg *msg, struct fis_param *ap)
int ops_is_avp_set (struct sip_msg *msg, struct fis_param *ap)
int ops_op_avp (struct sip_msg *msg, struct fis_param **param, struct fis_param *op)
int ops_print_avp (void)
int ops_pushto_avp (struct sip_msg *msg, struct fis_param *dst, struct fis_param *ap)
int ops_subst (struct sip_msg *msg, struct fis_param **src, struct subst_expr *subst)


Define Documentation

#define AVP_IS_IN_DB   (1<<7)

Definition at line 44 of file avpops_impl.h.

Referenced by dbrow2avp(), and ops_dbstore_avps().

#define AVPOPS_DB_NAME_INT   (1<<1)

Definition at line 47 of file avpops_impl.h.

Referenced by dbrow2avp(), and ops_dbstore_avps().

#define AVPOPS_DB_VAL_INT   (1<<0)

Definition at line 48 of file avpops_impl.h.

Referenced by dbrow2avp(), and ops_dbstore_avps().

#define AVPOPS_FLAG_ALL   (1<<24)

#define AVPOPS_FLAG_CASTN   (1<<27)

Definition at line 96 of file avpops_impl.h.

Referenced by fixup_copy_avp(), fixup_is_avp_set(), ops_copy_avp(), and ops_is_avp_set().

#define AVPOPS_FLAG_CASTS   (1<<28)

Definition at line 97 of file avpops_impl.h.

Referenced by fixup_copy_avp(), fixup_is_avp_set(), ops_copy_avp(), and ops_is_avp_set().

#define AVPOPS_FLAG_CI   (1<<25)

Definition at line 94 of file avpops_impl.h.

Referenced by ops_check_avp(), and parse_check_value().

#define AVPOPS_FLAG_DELETE   (1<<26)

#define AVPOPS_FLAG_DOMAIN0   (1<<25)

#define AVPOPS_FLAG_EMPTY   (1<<29)

Definition at line 98 of file avpops_impl.h.

Referenced by fixup_is_avp_set(), and ops_is_avp_set().

#define AVPOPS_FLAG_URI0   (1<<26)

Definition at line 70 of file avpops_impl.h.

Referenced by fixup_db_avp(), ops_dbdelete_avps(), ops_dbload_avps(), and ops_dbstore_avps().

#define AVPOPS_FLAG_USER0   (1<<24)

#define AVPOPS_FLAG_UUID0   (1<<27)

Definition at line 71 of file avpops_impl.h.

Referenced by fixup_db_avp(), ops_dbdelete_avps(), ops_dbload_avps(), and ops_dbstore_avps().

#define AVPOPS_OP_ADD   (1<<12)

Definition at line 86 of file avpops_impl.h.

Referenced by ops_op_avp(), and parse_op_value().

#define AVPOPS_OP_BAND   (1<<8)

Definition at line 82 of file avpops_impl.h.

Referenced by ops_check_avp(), ops_op_avp(), parse_check_value(), and parse_op_value().

#define AVPOPS_OP_BNOT   (1<<11)

Definition at line 85 of file avpops_impl.h.

Referenced by ops_op_avp(), and parse_op_value().

#define AVPOPS_OP_BOR   (1<<9)

Definition at line 83 of file avpops_impl.h.

Referenced by ops_check_avp(), ops_op_avp(), parse_check_value(), and parse_op_value().

#define AVPOPS_OP_BXOR   (1<<10)

Definition at line 84 of file avpops_impl.h.

Referenced by ops_check_avp(), ops_op_avp(), parse_check_value(), and parse_op_value().

#define AVPOPS_OP_DIV   (1<<15)

Definition at line 89 of file avpops_impl.h.

Referenced by ops_op_avp(), and parse_op_value().

#define AVPOPS_OP_EQ   (1<<0)

Definition at line 74 of file avpops_impl.h.

Referenced by ops_check_avp(), and parse_check_value().

#define AVPOPS_OP_FM   (1<<7)

Definition at line 81 of file avpops_impl.h.

Referenced by fixup_check_avp(), ops_check_avp(), and parse_check_value().

#define AVPOPS_OP_GE   (1<<5)

Definition at line 79 of file avpops_impl.h.

Referenced by ops_check_avp(), and parse_check_value().

#define AVPOPS_OP_GT   (1<<4)

Definition at line 78 of file avpops_impl.h.

Referenced by ops_check_avp(), and parse_check_value().

#define AVPOPS_OP_LE   (1<<3)

Definition at line 77 of file avpops_impl.h.

Referenced by ops_check_avp(), and parse_check_value().

#define AVPOPS_OP_LT   (1<<2)

Definition at line 76 of file avpops_impl.h.

Referenced by ops_check_avp(), and parse_check_value().

#define AVPOPS_OP_MOD   (1<<16)

Definition at line 90 of file avpops_impl.h.

Referenced by ops_op_avp(), and parse_op_value().

#define AVPOPS_OP_MUL   (1<<14)

Definition at line 88 of file avpops_impl.h.

Referenced by ops_op_avp(), and parse_op_value().

#define AVPOPS_OP_NE   (1<<1)

Definition at line 75 of file avpops_impl.h.

Referenced by ops_check_avp(), and parse_check_value().

#define AVPOPS_OP_RE   (1<<6)

Definition at line 80 of file avpops_impl.h.

Referenced by fixup_check_avp(), ops_check_avp(), and parse_check_value().

#define AVPOPS_OP_SUB   (1<<13)

Definition at line 87 of file avpops_impl.h.

Referenced by ops_op_avp(), and parse_op_value().

#define AVPOPS_USE_BRANCH   (1<<15)

Definition at line 65 of file avpops_impl.h.

Referenced by fixup_pushto_avp(), and ops_pushto_avp().

#define AVPOPS_USE_DOMAIN   (1<<9)

Definition at line 60 of file avpops_impl.h.

#define AVPOPS_USE_DST_IP   (1<<13)

Definition at line 63 of file avpops_impl.h.

#define AVPOPS_USE_DURI   (1<<14)

Definition at line 64 of file avpops_impl.h.

Referenced by fixup_pushto_avp(), and ops_pushto_avp().

#define AVPOPS_USE_FROM   (1<<5)

Definition at line 56 of file avpops_impl.h.

Referenced by get_source_uri().

#define AVPOPS_USE_RURI   (1<<7)

Definition at line 58 of file avpops_impl.h.

Referenced by fixup_pushto_avp(), get_source_uri(), and ops_pushto_avp().

#define AVPOPS_USE_SRC_IP   (1<<12)

Definition at line 62 of file avpops_impl.h.

#define AVPOPS_USE_TO   (1<<6)

Definition at line 57 of file avpops_impl.h.

Referenced by get_source_uri().

#define AVPOPS_USE_USERNAME   (1<<8)

Definition at line 59 of file avpops_impl.h.

#define AVPOPS_VAL_INT   (1<<1)

#define AVPOPS_VAL_NONE   (1<<0)

#define AVPOPS_VAL_PVAR   (1<<3)

#define AVPOPS_VAL_STR   (1<<2)


Function Documentation

void init_store_avps ( str **  db_columns  ) 

Definition at line 69 of file avpops_impl.c.

References DB_INT, DB_STR, db_val_t::nul, and db_val_t::type.

Referenced by avpops_init().

int ops_check_avp ( struct sip_msg msg,
struct fis_param param,
struct fis_param check 
)

int ops_copy_avp ( struct sip_msg msg,
struct fis_param name1,
struct fis_param name2 
)

int ops_dbdelete_avps ( struct sip_msg msg,
struct fis_param sp,
struct db_param dbp,
int  use_domain 
)

int ops_dbload_avps ( struct sip_msg msg,
struct fis_param sp,
struct db_param dbp,
int  use_domain 
)

int ops_dbquery_avps ( struct sip_msg msg,
pv_elem_t query,
pvname_list_t dest 
)

Definition at line 734 of file avpops_impl.c.

References AVP_PRINTBUF_SIZE, db_query_avp(), LM_DBG, LM_ERR, NULL, printbuf, and pv_printf().

Referenced by w_dbquery1_avps(), and w_dbquery2_avps().

int ops_dbstore_avps ( struct sip_msg msg,
struct fis_param sp,
struct db_param dbp,
int  use_domain 
)

int ops_delete_avp ( struct sip_msg msg,
struct fis_param ap 
)

int ops_is_avp_set ( struct sip_msg msg,
struct fis_param ap 
)

int ops_op_avp ( struct sip_msg msg,
struct fis_param **  param,
struct fis_param op 
)

int ops_print_avp ( void   ) 

int ops_pushto_avp ( struct sip_msg msg,
struct fis_param dst,
struct fis_param ap 
)

int ops_subst ( struct sip_msg msg,
struct fis_param **  src,
struct subst_expr subst 
)


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