[OpenSIPS-Users] How to access "fixed_nated_contact" in a REQUEST_ROUTE?

Iñaki Baz Castillo ibc at aliax.net
Thu Apr 30 14:40:05 CEST 2009


2009/4/30 Chris Maciejewski <chris at wima.co.uk>:
> Hi,
>
> In a REQUEST_ROUTE I am calling fix_nated_contact(); before handling
> REGISTER packets and I can see in a 'location' table
> <sip:10000 at 192.168.5.50> is correctly changed to
> <sip:10000@{public_ip}:{port}>.
>
> However when I call xlog(" CONTACT: $ct"); is still shows original
> contact <sip:10000 at 192.168.5.50>.
>
> How can I access rewritten (with the public IP) contact in a REQUEST_ROUTE?

Most probably it's not possible. but you already know that the new
Contact will be:

  "sip(s):ORIGINAL_CONTACT_USER@$si:$sp"

-- 
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the Users mailing list