[OpenSIPS-Users] Rewrite Request uri

Mike Claudi Pedersen mike.pedersen at ipnordic.dk
Mon Apr 14 13:40:59 CEST 2014


How do i rewrite the request uri, i know it says that rewriteuri(str); does
this, but i need to be able to do this with a variable something like:

$var(NEWURI) = "sip:+0245" + $tU + "@voip.mycompany.com";

and then rewrite the request with this ?

rewriteuri("$var(NEWURI)") isnt working, apparantly because im not allowed
to pass the result of a variable to this, like i can do in
xlog("L_INFO","var(NEWURI)")

any advice on how to achieve this would be greatly appreciated?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140414/9220559c/attachment-0001.htm>


More information about the Users mailing list