<div dir="ltr">Hello,<div><br><div>I try to setup realtime monitoring. </div><div>Here is part of my script:<br><br><div>loadmodule &quot;nathelper.so&quot;</div><div>modparam(&quot;nathelper&quot;, &quot;remove_on_timeout_bflag&quot;, &quot;RM_ONTO_FLAG&quot;) </div><div>modparam(&quot;nathelper&quot;, &quot;ping_threshold&quot;, 5) </div></div><div>.......</div><div><br></div><div>route {</div><div>.........</div><div>setbflag(RM_ONTO_FLAG);<br></div><div>.........</div><div>}</div><div><br></div><div>From location tableI (cflags) I see  &quot;RM_ONTO_FLAG&quot;</div><div>Unplug Internet connection from registered endpoint.<br><br>Opensips send sipping. Received &quot;Destination unreachable (Port unreachable)&quot;.<br><br>Record in location table is not deleted.<br><br>Where is problem?</div><div><br></div><div>Regards,</div><div>Dragomir<br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-01 11:33 GMT+03:00 Ionut Ionita <span dir="ltr">&lt;<a href="mailto:ionutionita@opensips.org" target="_blank">ionutionita@opensips.org</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">*Hello all,<br>
<br>
    I’m glad to announce a new feature that allows OpenSIPS to monitor<br>
(via SIP OPTIONS probing) and disable/delete in realtime the registrations<br>
which are not responding.<br>
    The previous approach had two issues when came to so called “zombie”<br>
registrations (registrations which are not valid anymore):<br>
    * resources - such zombie registrations may waste resources in your<br>
OpenSIPS server (memory,  processing time, DB space, useless NAT pinging,<br>
TCP connect attempts);<br>
    * user experience - using the zombie registration to reach un-existing<br>
users translates into useless calls (calls that will simply timeout),<br>
giving delays in the call setup (instead of going straight to VM, you may<br>
burn 5-10 seconds in trying to reach the user);<br>
    The main idea  behind these features is to delete contacts that do not<br>
respond to a certain number of SIP pings. The SIP pinging is provided by the<br>
nathelper module which was enhanced to keep the state of each pinging requests<br>
(basically, the module is waiting and checking the reply of each SIP request<br>
sent to the registered users). For registrations detected as “dead” (not responding),<br>
the nathelper module interacts directly with the usrloc module in order to<br>
remove the zombie contact.<br>
    For usage perspective, the nathelper module now has two new parameters:<br>
    * ping_threshold - timeout to consider a ping as unanswered;<br>
    * max_pings_lost - the number of unresponded pings after which the contact is<br>
removed from usrloc;<br>
    In order to activate this feature, every contact must have the sipping_bflag<br>
(to be pinged) and remove_on_timeout_bflag (to be deleted on no-answer) activated.<br>
This means these flags must also be configured in the nathelper module. [0]<br>
    For full documentation of the nathelper module including the newly added<br>
feature see [1]. Any feedback is highly appreciated.<br>
<br>
Regards,<br>
Ionut Ionita<br>
<br>
[0]<a href="http://www.opensips.org/html/docs/modules/2.2.x/nathelper.html#id248011" rel="noreferrer" target="_blank">http://www.opensips.org/html/docs/modules/2.2.x/nathelper.html#id248011</a><br>
[1]<a href="http://www.opensips.org/html/docs/modules/2.2.x/nathelper.html" rel="noreferrer" target="_blank">http://www.opensips.org/html/docs/modules/2.2.x/nathelper.html</a><br>
*<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div>