[OpenSIPS-Users] Opensips 2.1.2 - can't pass var in rewritehostport()
Răzvan Crainea
razvan at opensips.org
Tue Nov 13 12:11:07 EST 2018
You can achieve this by using:
$rd = $hdr(X-IP-header); # X-IP-header is the header's name that holds
the IP
Best regards,
Răzvan
On 11/8/18 10:03 AM, maatohewetbi wrote:
> I have Opensips 2.1.2 and wanna to pass IP variable using sip header and
> parse it in Opensips to use with rewritehostport() function. I've checked
> that when I use it like rewritehostport("var(IP):5060") I can't pass this
> variable, it's empty. I've read it's impossible to do it. How can I do it
> right?
>
>
>
> --
> Sent from: http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--
Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com
More information about the Users
mailing list