[sr-dev] [kamailio] dialplan: skip check subexpressions on expressions with pvs (#17)

Victor Seva notifications at github.com
Sun Jan 11 11:52:41 CET 2015


> @@ -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:
https://github.com/kamailio/kamailio/pull/17/files#r22765911
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20150111/3e10d404/attachment.html>


More information about the sr-dev mailing list