I have in the onreply_route route this check:
if (nat_uac_test("1"))
{
fix_nated_contact();
}
But this Contact header remains untouched:
SIP/2.0 200 OK
...
CONTACT: <sip:PBX.network.local:5060;transport=Tcp;maddr=172.16.1.1>
...
If i remove the nat_uac_test("1") check and just execute fix_nated_contact() the Contact header is changed:
CONTACT: <sip:1.2.3.4:5060;transport=Tcp>
So i think the nat_uac_test("1") check doesn't detect the RFC1918 Contact header. I use 1.8.2 svn9916.
Hi,
Could you attached the opensips log (in debug 4) corresponding to the reply processing?
Regards,
Bogdan
I can't reproduce it myself so it will take while before i can post the debug logging.
Hi,
The nat_uac_test() function was prouved to work perfectly for more than 8 years - I would rather suspect some configuration issue on your side.
For the moment (as no usefull input provided) I will close this report.
If you have a way to reproduce this (like an IP that is not recognized or so), please open a new report.
Thanks and regards,
Bogdan