<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>the usrloc keepalive are done on its timer interval:</p>
<p> -
<a class="moz-txt-link-freetext" href="https://www.kamailio.org/docs/modules/stable/modules/usrloc.html#usrloc.p.timer_interval">https://www.kamailio.org/docs/modules/stable/modules/usrloc.html#usrloc.p.timer_interval</a></p>
<p>For the keepalive timeout I was misled by presence of the global
variable in the usrloc, but was actually not exported by this
module. I did it afterwards, just pushed to branch 5.4 as well.</p>
<p>While is not recommended to run both at the same time, imo
nothing really bad can happen, you may see more keepalives for
natted udp contacts (not for tls, tcp, ...).</p>
<p>As for an unorthodox and untested idea :-) : if you do not want
to run from latest 5.4 branch yet, you can eventually set
natping_interval to a very large value, like 20 years in seconds,
so you are pretty sure you will do an upgrade before nathelper
timer fires,</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 22.09.20 19:17, Ilie Soltanici
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAJQ6-U3T0gj3jpOTbeizHw7UD=gKsqjY8RxvPXxHnvOTfNOMug@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hello,</div>
<div><br>
</div>
<div>Is there any way to add those functions from the nathelper
module to the usrloc module?</div>
<div><br>
</div>
<div><b>keepalive_timeout<br>
natping_interval</b></div>
<div><br>
</div>
<div>I'm looking to use ka_mode feature from the usrloc module
in order to have roundtrip time computed for each extension
but because those functions are missing in the usrloc module
and per documentation this functionality conflicts in some way
with nathelper module it's not recommended to have both
modules enabled. Or maybe there is another way to have them
"interconnected"?<br>
</div>
<div><br>
</div>
<div>Thank you.<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
</body>
</html>