[OpenSIPS-Users] Public IP in REGISTER

Liviu Chircu liviu at opensips.org
Wed Mar 11 05:59:14 EST 2020


On 09.03.2020 02:24, Jehanzaib Younis wrote:
>               if (is_method("REGISTER")) {
>                         fix_nated_register();
>                         nat_keepalive();

Hi, Jehanzaib!

Bingo!  This is the cause of your strange double-pinging. You are using 
two NAT pinging modules at the same time: nathelper + nat_traversal.  
And, of course, nat_traversal will keep on pinging the old value until 
its "virtual expiration" timer kicks in, ignoring the fact that the 
contact actually got refreshed within the user location by a new 
binding, xx.xxx.xx.xx:25004.

Possible solutions:

* stop using nat_traversal
* stop using nathelper
* keep using them both, but be careful not to arm them simultaneously 
(can be tricky)

Regards,

-- 
Liviu Chircu
www.twitter.com/liviuchircu | www.opensips-solutions.com

OpenSIPS Summit, Amsterdam, May 2020
   www.opensips.org/events




More information about the Users mailing list