[SR-Users] looks like dp_translate with pvs in repl_exp is badly broken

Daniel-Constantin Mierla miconda at gmail.com
Wed Mar 22 12:10:47 CET 2017


Hello,

are you using dialog plan with match_dynamic set to 1 or the default 0?

https://www.kamailio.org/docs/modules/stable/modules/dialplan.html#dialplan.p.match_dynamic

Cheers,
Daniel

On Wed, Mar 22, 2017 at 10:23 AM, Juha Heinanen <jh at tutpro.com> wrote:

> Juha Heinanen writes:
>
> > when match_exp of dp 100 is ^#test and repl_exp is sip:$rU@$rd this
> code:
> >
> >     xlog("L_INFO", "****** ru = $ru\n");
> >     dp_translate(100, "$rU/$var(res)");
> >     xlog("L_INFO", "****** res = $var(res)\n");
> >
> > produces:
> >
> > Mar 22 08:21:17 lohi /usr/bin/sip-proxy[7543]: INFO: ****** ru = sip:#
> test at test.tutpro.com
> > Mar 22 08:21:17 lohi /usr/bin/sip-proxy[7543]: INFO: ****** res =
> sip:$rU@$rd
>
> OK, that happens only if subs_exp is empty.  if it is ^, dp_translate
> works as expected.
>
> -- Juha
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>



-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/micond
<http://www.linkedin.com/in/miconda>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20170322/302a04c6/attachment.html>


More information about the sr-users mailing list