dp_repl.c File Reference

#include "../../re.h"
#include "../../mem/shm_mem.h"
#include "dialplan.h"

Include dependency graph for dp_repl.c:

Go to the source code of this file.

Defines

#define DP_MAX_ATTRS_LEN   32
#define MAX_PHONE_NB_DIGITS   127

Functions

struct subst_exprrepl_exp_parse (str subst)
void repl_expr_free (struct subst_expr *se)
int rule_translate (struct sip_msg *msg, str string, dpl_node_t *rule, str *result)
int translate (struct sip_msg *msg, str input, str *output, dpl_id_p idp, str *attrs)

Variables

static char dp_attrs_buf [DP_MAX_ATTRS_LEN+1]
static char dp_output_buf [MAX_PHONE_NB_DIGITS+1]


Define Documentation

#define DP_MAX_ATTRS_LEN   32

Definition at line 262 of file dp_repl.c.

Referenced by translate().

#define MAX_PHONE_NB_DIGITS   127

Definition at line 105 of file dp_repl.c.

Referenced by rule_translate().


Function Documentation

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  string,
dpl_node_t rule,
str result 
)

int translate ( struct sip_msg msg,
str  input,
str output,
dpl_id_p  idp,
str attrs 
)


Variable Documentation

char dp_attrs_buf[DP_MAX_ATTRS_LEN+1] [static]

Definition at line 263 of file dp_repl.c.

Referenced by translate().

char dp_output_buf[MAX_PHONE_NB_DIGITS+1] [static]

Definition at line 106 of file dp_repl.c.

Referenced by rule_translate().


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