In modules/dialplan/dp_repl.c:

> @@ -188,7 +188,13 @@ int rule_translate(sip_msg_t *msg, str string, dpl_node_t * rule,
>  	}
>  
>  	if(rule->tflags&DP_TFLAGS_PV_SUBST) {
> -		subst_comp = dpl_dynamic_pcre(msg, &rule->subst_exp, NULL);
> +		subst_comp = dpl_dynamic_pcre(msg, &rule->subst_exp, &cap_cnt);
> +		if (cap_cnt > MAX_REPLACE_WITH) {

The other check is done a few lines later

if(repl_comp->max_pmatch > cap_cnt){


Reply to this email directly or view it on GitHub.