Menu

NAT issue

Reuven
2012-01-03
2013-05-09
  • Reuven

    Reuven - 2012-01-03

    Hello All

    I use opensips 1.7 and I have NAT issue that I would like to ask.
    I use location table to keep the UA information and I found that opensips keep the internal IP and port (I guess it take the IP and Port from contact header), in case that my UA is behind NAT I would like that opensips will keep the external IP and Port.
    the response from opensips to device working but new request to device send to internal IP and fail.
    I changed my config to
    modparam( "usrloc", db_mode", 3);
    save("location", "sv" );

    but after REGISTER in the location table I see internal IP and Port and fields RECEIVED and PATH are NULL

    I would like to ask you what i need to change/add that my opensips will support NAT ?

    Thanks

     
  • Bogdan-Andrei Iancu

    Hi Reuven,

    for nat traversal purposes, you need to use some helper modules, like "nathelper" doing "fix_nated_register();" before save(location).

    Regards,
    Bogdan