[OpenSIPS-Users] Nat_keepalive help

Miha miha at softnet.si
Thu Dec 12 13:16:41 CET 2013


HI,

I need a little help with nat. UAC register's ok and it is reachable but 
after a while it become unreachable due to nat issue. If I use 
nat_keepalive on uac deivce everything is ok, but I would like that this 
is handled by opensips.

I tried to use  nat_keepalive but getting all the time this:

  54.820695 opensips -> uac_public_ip SIP 308 Request: NOTIFY 
sip:uac_public_ip:13401 |
  54.829847 uac_public_ip -> opensips SIP 297 Status: *481 Call 
Leg/Transaction Does Not Exis*t |

What is the best way to implement this?



modparam("registrar", "received_avp", "$avp(received_avp)")
modparam("registrar", "tcp_persistent_flag", 10)
modparam("nathelper", "received_avp", "$avp(received_avp)")
modparam("nathelper", "natping_interval", 10)
modparam("nathelper", "ping_nated_only", 1)


               if (nat_uac_test("18")) {
                         xlog("fixing nat");
                          if (method=="REGISTER") {
                                 nat_keepalive();
                                  fix_nated_register();

                         } else {
                                 fix_nated_contact();
                         }
                 force_rport();
                 }

tnx!

miha


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20131212/b1bc2c3c/attachment.htm>


More information about the Users mailing list