[SR-Users] PSTN Routing with Prefix
Alex Balashov
abalashov at evaristesys.com
Wed Dec 3 11:53:31 CET 2014
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 at 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 at 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
More information about the sr-users
mailing list