Module: kamailio Branch: 5.2 Commit: 65d13ddf14c134555fa99555ef46273cb8f56248 URL: https://github.com/kamailio/kamailio/commit/65d13ddf14c134555fa99555ef46273c...
Author: Marco Capetta mcapetta@sipwise.com Committer: Victor Seva linuxmaniac@torreviejawireless.org Date: 2019-11-29T12:51:53+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.
(cherry picked from commit 81b268d9610ea16420d7ce2aa1a9e3ba5364773c)
---
Modified: src/modules/dialplan/dp_repl.c
---
Diff: https://github.com/kamailio/kamailio/commit/65d13ddf14c134555fa99555ef46273c... Patch: https://github.com/kamailio/kamailio/commit/65d13ddf14c134555fa99555ef46273c...
---
diff --git a/src/modules/dialplan/dp_repl.c b/src/modules/dialplan/dp_repl.c index 093e48fd37..f50b328034 100644 --- a/src/modules/dialplan/dp_repl.c +++ b/src/modules/dialplan/dp_repl.c @@ -703,7 +703,7 @@ int dp_translate_helper(sip_msg_t *msg, str *input, str *output, dpl_id_p idp, return 0; } 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",