Browse Source

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 năm trước cách đây
mục cha
commit
81b268d961
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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",