<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
HI,<br>
<br>
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.<br>
<br>
I tried to use nat_keepalive but getting all the time this:<br>
<br>
54.820695 opensips -> uac_public_ip SIP 308 Request: NOTIFY
<a class="moz-txt-link-freetext" href="sip:uac_public_ip:13401">sip:uac_public_ip:13401</a> |<br>
54.829847 uac_public_ip -> opensips SIP 297 Status: <b>481 Call
Leg/Transaction Does Not Exis</b>t |<br>
<br>
What is the best way to implement this?<br>
<br>
<br>
<br>
modparam("registrar", "received_avp", "$avp(received_avp)")<br>
modparam("registrar", "tcp_persistent_flag", 10)<br>
modparam("nathelper", "received_avp", "$avp(received_avp)")<br>
modparam("nathelper", "natping_interval", 10)<br>
modparam("nathelper", "ping_nated_only", 1)<br>
<br>
<br>
if (nat_uac_test("18")) {<br>
xlog("fixing nat");<br>
if (method=="REGISTER") {<br>
nat_keepalive();<br>
fix_nated_register();<br>
<br>
} else {<br>
fix_nated_contact();<br>
}<br>
force_rport();<br>
}<br>
<br>
tnx!<br>
<br>
miha<br>
<br>
<br>
</body>
</html>