<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 17.01.2023 17:09, Daren FERREIRA
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:DM6PR04MB6474BD76D075C253DF136B02B0C69@DM6PR04MB6474.namprd04.prod.outlook.com">
<div><br>
</div>
<div>My understanding was opensips should do the cleaning, as
mentioned on the documentation.</div>
<div><br>
</div>
<div><i>A common occurence is for some SIP User Agents to lose
their network connection (especially when dealing with mobile
devices), hence they do not properly de-register from the
mid-registrar. In this case, in order to avoid stale
registrations on the main registrar (which contains SIP
contacts with greatly extended lifetimes!), the mid-registrar
will appropriately generate De-REGISTER requests and remove
these contacts from the main registrar's location service as
soon as it considers them to have expired. </i></div>
<div><br>
</div>
<div>Have I misunderstood?</div>
<div>If not, what can explain the un-register to never been sent
by OpenSIPS?</div>
<div><br>
</div>
</blockquote>
<p><font face="monospace">You understood it perfectly. My
suggestion would be to skim through the code of <a
moz-do-not-send="true"
href="https://github.com/OpenSIPS/opensips/blob/master/modules/mid_registrar/ulcb.c#L249">mid_reg_aor_event()</a>
internal callback (it's pretty straight-forward), to get an idea
of the DEBUG logging it can do, as well as "OK" code paths and
"NOT OK" code paths.</font></p>
<p><font face="monospace">Once you know what to look for, try to put
OpenSIPS in debug mode ("opensips-cli -x mi log_level 4") and
follow with the DEBUG logs when the AoR is deleted by the timer
process. Let's see what it prints! Of course, you should put
it back to normal logging ASAP afterwards.<br>
</font></p>
<p><font face="monospace">Best regards,</font><br>
</p>
<pre class="moz-signature" cols="72">--
Liviu Chircu
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/liviuchircu">www.twitter.com/liviuchircu</a> | <a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
</body>
</html>