Bläddra i källkod

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.
Marco Capetta 6 år sedan
förälder
incheckning
81b268d961
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/modules/dialplan/dp_repl.c

+ 1 - 1
src/modules/dialplan/dp_repl.c

@@ -700,7 +700,7 @@ repl:
 		}
 	}
 	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",