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

Go to the source code of this file.
Defines | |
| #define | DP_MAX_ATTRS_LEN 32 |
| #define | MAX_PHONE_NB_DIGITS 127 |
Functions | |
| struct subst_expr * | repl_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 DP_MAX_ATTRS_LEN 32 |
| #define MAX_PHONE_NB_DIGITS 127 |
| struct subst_expr* repl_exp_parse | ( | str | subst | ) | [read] |
Definition at line 49 of file dp_repl.c.
References _str::len, LM_ERR, subst_expr::max_pmatch, NULL, parse_repl(), repl_expr_free(), subst_expr::replace_all, _str::s, shm_malloc(), and WITHOUT_SEP.
Referenced by build_rule().
| 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 | |||
| ) |
Definition at line 107 of file dp_repl.c.
References replace_with::c, dp_output_buf, sip_msg::first_line, len, _str::len, LM_CRIT, LM_DBG, LM_ERR, dpl_node::match_exp, MAX_PHONE_NB_DIGITS, subst_expr::max_pmatch, MAX_REPLACE_WITH, subst_expr::n_escapes, sip_msg::new_uri, replace_with::nmatch, NULL, replace_with::offset, pv_get_spec_value(), dpl_node::repl_comp, subst_expr::replace, REPLACE_CHAR, REPLACE_NMATCH, REPLACE_SPEC, REPLACE_URI, subst_expr::replacement, msg_start::request, _pv_value::rs, s, _str::s, SIP_REQUEST, replace_with::size, replace_with::spec, dpl_node::subst_comp, dpl_node::subst_exp, msg_start::type, replace_with::type, msg_start::u, and replace_with::u.
Referenced by translate().
Definition at line 264 of file dp_repl.c.
References dpl_node::attrs, dp_attrs_buf, DP_MAX_ATTRS_LEN, EQUAL_OP, dpl_id::first_index, dpl_index::first_rule, dpl_index::len, _str::len, LM_DBG, LM_ERR, dpl_node::match_comp, dpl_node::match_exp, dpl_node::matchop, dpl_node::next, dpl_index::next, NULL, dpl_node::pr, REGEX_OP, rule_translate(), _str::s, and search_rule().
Referenced by dp_translate_f(), and mi_translate().
char dp_attrs_buf[DP_MAX_ATTRS_LEN+1] [static] |
char dp_output_buf[MAX_PHONE_NB_DIGITS+1] [static] |
1.5.6