dialplan.h File Reference

#include <pcre.h>
#include "../../pvar.h"
#include "../../parser/msg_parser.h"

Include dependency graph for dialplan.h:

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

Go to the source code of this file.

Data Structures

struct  dp_param
struct  dpl_id
struct  dpl_index
struct  dpl_node

Defines

#define DP_VAL_INT   0
#define DP_VAL_SPEC   1
#define EQUAL_OP   0
#define MAX_REPLACE_WITH   10
#define REGEX_OP   1

Typedefs

typedef struct dp_paramdp_param_p
typedef struct dp_param dp_param_t
typedef struct dpl_iddpl_id_p
typedef struct dpl_id dpl_id_t
typedef struct dpl_indexdpl_index_p
typedef struct dpl_index dpl_index_t
typedef struct dpl_nodedpl_node_p
typedef struct dpl_node dpl_node_t

Functions

void destroy_data ()
int dp_load_db ()
int init_data ()
struct subst_exprrepl_exp_parse (str subst)
void repl_expr_free (struct subst_expr *se)
int rule_translate (struct sip_msg *msg, str, dpl_node_t *rule, str *)
dpl_id_p select_dpid (int id)
int translate (struct sip_msg *msg, str user_name, str *repl_user, dpl_id_p idp, str *)


Define Documentation

#define DP_VAL_INT   0

Definition at line 70 of file dialplan.h.

Referenced by dp_get_ivalue(), and dp_trans_fixup().

#define DP_VAL_SPEC   1

Definition at line 71 of file dialplan.h.

Referenced by dp_trans_fixup().

#define EQUAL_OP   0

#define MAX_REPLACE_WITH   10

Definition at line 38 of file dialplan.h.

#define REGEX_OP   1

Definition at line 35 of file dialplan.h.

Referenced by build_rule(), and translate().


Typedef Documentation

typedef struct dp_param * dp_param_p

typedef struct dp_param dp_param_t

typedef struct dpl_id* dpl_id_p

typedef struct dpl_id dpl_id_t

typedef struct dpl_index * dpl_index_p

typedef struct dpl_index dpl_index_t

typedef struct dpl_node * dpl_node_p

typedef struct dpl_node dpl_node_t


Function Documentation

void destroy_data (  ) 

Definition at line 165 of file dp_db.c.

References crt_idx, destroy_hash(), and shm_free.

Referenced by mod_destroy().

int dp_load_db (  ) 

int init_data (  ) 

Definition at line 137 of file dp_db.c.

Referenced by mod_init().

struct subst_expr* repl_exp_parse ( str  subst  )  [read]

void repl_expr_free ( struct subst_expr se  ) 

Definition at line 34 of file dp_repl.c.

References subst_expr::replacement, _str::s, and shm_free.

Referenced by build_rule(), destroy_rule(), and repl_exp_parse().

int rule_translate ( struct sip_msg msg,
str  ,
dpl_node_t rule,
str  
)

dpl_id_p select_dpid ( int  id  ) 

Definition at line 606 of file dp_db.c.

References crt_idx, dpl_id::dp_id, dpl_id::next, and NULL.

Referenced by dp_translate_f(), and mi_translate().

int translate ( struct sip_msg msg,
str  user_name,
str repl_user,
dpl_id_p  idp,
str  
)


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