Преглед на файлове

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 години
родител
ревизия
81b268d961
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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",