#638 onreply_route nat_uac_test("1") ignores RFC1918 Contact

1.8.x
closed-invalid
modules (454)
5
2013-05-10
2013-03-28
a719719
No

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.

Discussion

  • Bogdan-Andrei Iancu

    Hi,

    Could you attached the opensips log (in debug 4) corresponding to the reply processing?

    Regards,
    Bogdan

     
  • Bogdan-Andrei Iancu

    • assigned_to: nobody --> bogdan_iancu
    • labels: --> modules
     
  • a719719

    a719719 - 2013-04-13

    I can't reproduce it myself so it will take while before i can post the debug logging.

     
  • Bogdan-Andrei Iancu

    • status: open --> closed-invalid
     
  • Bogdan-Andrei Iancu

    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

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks