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

Chris Maciejewski chris at wima.co.uk
Thu Apr 30 13:55:13 CEST 2009


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?

Thanks for help.
Chris



More information about the Users mailing list