<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi Rodrigo,<br>
      <br>
      "opensipsctl online" 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
cite="mid:BLUPR02MB16835BE8424B808246D06E6DB56E0@BLUPR02MB1683.namprd02.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
      <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'?  This
          command shows me who is online, so it has some way to detect
          who is and who is not online in a moment.</p>
        <p><br>
        </p>
        <p>How this command can figure out who is currently online? If
          some peer UAC become offline, does such command return an
          updated list immediately, or does it take some seconds to
          start returning an update list? 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 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: +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 style="font-size:11pt"
              color="#000000" face="Calibri, sans-serif"><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> </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 moz-do-not-send="true" 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  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: +55 35 3471 9200 RAMAL 979<br>
                        </div>
                      </font></div>
                  </div>
                </div>
              </div>
              <br>
              <fieldset class="mimeAttachmentHeader"></fieldset>
              <br>
              <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" 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>
  </body>
</html>