[sr-dev] git:master:81b268d9: dialplan: fixed avp usage in subst_exp field
Daniel-Constantin Mierla
miconda at gmail.com
Fri Mar 29 10:18:42 CET 2019
Module: kamailio
Branch: master
Commit: 81b268d9610ea16420d7ce2aa1a9e3ba5364773c
URL: https://github.com/kamailio/kamailio/commit/81b268d9610ea16420d7ce2aa1a9e3ba5364773c
Author: Marco Capetta <mcapetta at sipwise.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-03-29T10:11:06+01:00
dialplan: fixed avp usage in subst_exp field
- in case both match_exp and subst_exp contain avps, the content
of match_exp were used to evaluate the substitute expression.
---
Modified: src/modules/dialplan/dp_repl.c
---
Diff: https://github.com/kamailio/kamailio/commit/81b268d9610ea16420d7ce2aa1a9e3ba5364773c.diff
Patch: https://github.com/kamailio/kamailio/commit/81b268d9610ea16420d7ce2aa1a9e3ba5364773c.patch
---
diff --git a/src/modules/dialplan/dp_repl.c b/src/modules/dialplan/dp_repl.c
index 06762ce6d2..2cd568ca5f 100644
--- a/src/modules/dialplan/dp_repl.c
+++ b/src/modules/dialplan/dp_repl.c
@@ -700,7 +700,7 @@ int dp_translate_helper(sip_msg_t *msg, str *input, str *output, dpl_id_p idp,
}
}
if(rulep->tflags&DP_TFLAGS_PV_SUBST) {
- re_list = dpl_dynamic_pcre_list(msg, &rulep->match_exp);
+ re_list = dpl_dynamic_pcre_list(msg, &rulep->subst_exp);
if(re_list==NULL) {
/* failed to compile dynamic pcre -- ignore */
LM_DBG("failed to compile dynamic pcre[%.*s]\n",
More information about the sr-dev
mailing list