Thank you so much for giving me a direction! I will leave rewritehost and will make appropriate changes in my routing.
Thanks Max
Il giorno 03/dic/2014, alle ore 11:53, Alex Balashov ha scritto:
Hi,
No, rewritehostport() only touches the domain part of the Request URI (the part after the @ symbol, in a typical URI). So, it can accomplish the first part of your request, but not the second.
That said, the rewritehostport() function is rather antiquated. It's much easier to manipulate the Request URI directly, and it would allow you to achieve both objectives. Take a look at pseudovariable documentation for $ru, $rU, $rd and $rp.
On 3 December 2014 03:56:11 GMT-05:00, "Massimo Varriale (IPZeta)" m.varriale@ipzeta.it wrote:
Hi, I'm trying to send outbound calls to an external IP address adding a prefix, is this possible using function rewritehostport?
Thank you Max _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Sent from my mobile, and thus lacking in the refinement one might expect from a fully fledged keyboard.
Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 United States Tel: +1-678-954-0671 Web: http://www.evaristesys.com/, http://www.alexbalashov.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users