<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Bogdan.</p>
<p><br>
</p>
<p>Thank you again.</p>
<p><br>
</p>
<p>Do you mean 40 or 30 mins? If the registration is for 60' and the network break down after 30', so I&nbsp;suspect that the registration will remain online only for more 30'. &nbsp;Not 40'. Am I correct?</p>
<p><br>
</p>
<p>As&nbsp;I need to&nbsp;know as soon as possible, by means of the SIP Registrar, whether a device became offline, I &nbsp;think that the command 'opensipsctl online' will be really&nbsp;useful, if each device register for 10 seconds for example.&nbsp;</p>
<p><br>
</p>
<p>What do you think about this approach? Comment, please.</p>
<p><br>
</p>
<p>If the approach is unappropriated, I will take a look in that &nbsp;<span style="color: rgb(33, 33, 33); font-family: 'Courier New'; font-size: 15px;">internal PR you have said.</span></p>
<p><br>
</p>
<p>Regards.</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: &#43;55 35 3471 9200 RAMAL 979<br>
</div>
</font></div>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>De:</b> Bogdan-Andrei Iancu &lt;bogdan@opensips.org&gt;<br>
<b>Enviado:</b> sexta-feira, 28 de agosto de 2015 12:33<br>
<b>Para:</b> Rodrigo Pimenta Carvalho; OpenSIPS users mailling list<br>
<b>Assunto:</b> Re: [OpenSIPS-Users] Register timeout question.</font>
<div>&nbsp;</div>
</div>
<div><tt>Hi Rodrigo,<br>
<br>
&quot;opensipsctl online&quot; simply shows the registration cache (who registered and for how long), but without actively checking if the registered device is still alive.
<br>
<br>
It simply shows the who's registered based on the received REGISTER requests. The list is realtime updated based on these REGISTERs.
<br>
<br>
But if a device registers for 60 minutes and it drops form network after 30 minutes, the device will still be shown as online after 40 mins (up to 60 mins, when the registration will expire).<br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 28.08.2015 17:19, Rodrigo Pimenta Carvalho wrote:<br>
</div>
<blockquote type="cite">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi Bogdan.</p>
<p><br>
</p>
<p>Thank you for the reply.</p>
<p><br>
</p>
<p>What about the line command 'opensipsctl online'?&nbsp; This command shows me who is online, so it has some way to detect who is and who is not&nbsp;online in a moment.</p>
<p><br>
</p>
<p>How this command can figure out who is currently&nbsp;online? If some peer UAC&nbsp;become offline, does such command return an updated list immediately, or does it take some seconds to start returning an update list?&nbsp;If it take some seconds, does it depend on the
 periodicity of SIP Register messages from such UAC?</p>
<p><br>
</p>
<p>I need to know how long does it take to get an&nbsp;update online peers list, by means of the '<span style="font-size:12pt">opensipsctl online' command, after someone becoming offline.</span></p>
<p><span style="font-size:12pt"><br>
</span></p>
<p><span style="font-size:12pt">Best regards.</span></p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: &#43;55 35 3471 9200 RAMAL 979<br>
</div>
</font></div>
</div>
</div>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size:11pt"><b>De:</b> Bogdan-Andrei Iancu
<a class="moz-txt-link-rfc2396E" href="mailto:bogdan@opensips.org">&lt;bogdan@opensips.org&gt;</a><br>
<b>Enviado:</b> sexta-feira, 28 de agosto de 2015 11:00<br>
<b>Para:</b> OpenSIPS users mailling list; Rodrigo Pimenta Carvalho<br>
<b>Assunto:</b> Re: [OpenSIPS-Users] Register timeout question.</font>
<div>&nbsp;</div>
</div>
<div><tt>Hi Rodrigo,<br>
<br>
Currently there is no way for OpenSIPS to check the status of the active registrations. But we have an internal PR with such feature - doing SIP pinging to the registered contacts and if no answer, to auto unregister the contact. Most probably it will be uploaded
 on 2.2 branch in the next week.<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 28.08.2015 16:27, Rodrigo Pimenta Carvalho wrote:<br>
</div>
<blockquote type="cite">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p><br>
</p>
<p>Hi.</p>
<p><br>
</p>
<p>Letīs &nbsp;suppose there are some peers online in my OpenSIPS.</p>
<p>For my project, whether a peer (UAC) become offline, my OpenSIPS must detect it in 10 seconds.</p>
<p>Is there a way to detect it by means of some kind of SIP Register timeout configuration? How to configure OpenSIPS for this objective?</p>
<p><br>
</p>
<p>Any hint will be very helpful!</p>
<p><br>
</p>
<p>Best regards.</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: &#43;55 35 3471 9200 RAMAL 979<br>
</div>
</font></div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset> <br>
<pre>_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</body>
</html>