Procházet zdrojové kódy

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 před 6 roky
rodič
revize
81b268d961
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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",