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


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to