<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Rodrigo,<br>
      <br>
      The feature I mentioned was just pushed to GIT :<br>
         
<a class="moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/commit/a1992cd14fe393ca3b3fba0dac0a423e28764966">https://github.com/OpenSIPS/opensips/commit/a1992cd14fe393ca3b3fba0dac0a423e28764966</a><br>
      <br>
      It relies on some heavy changes on the usrloc (available only on
      trunk), so you cannot simply copy only the above commit.<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 31.08.2015 14:20, Rodrigo Pimenta
      Carvalho wrote:<br>
    </div>
    <blockquote
cite="mid:BLUPR02MB1683963364FADDD0ABFCACFFB56B0@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>Ok.</p>
        <p>Thank you!<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>
        <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> segunda-feira, 31 de agosto de 2015 06:04<br>
              <b>Para:</b> Rodrigo Pimenta Carvalho; OpenSIPS users
              mailling list<br>
              <b>Assunto:</b> Re: [OpenSIPS-Users] Register timeout
              question.</font>
            <div> </div>
          </div>
          <div><tt>Hi Rodrigo,<br>
              <br>
              I meant 40 mins from the registration time (out for the
              overall 60). And yes, yous suspicion is correct.<br>
              <br>
              As said, the "opensipsctl online" only shows the
              registered contacts, without actually checking their
              current status.
              <br>
              <br>
              The patch I mentioned will be available in the next days
              in OpenSIPs 2.2 devel.<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 20:09, 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 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 suspect
                  that the registration will remain online only for more
                  30'.  Not 40'. Am I correct?</p>
                <p><br>
                </p>
                <p>As I need to know as soon as possible, by means of
                  the SIP Registrar, whether a device became offline, I
                   think that the command 'opensipsctl online' will be
                  really useful, if each device register for 10 seconds
                  for example. </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  <span style="">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: +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 moz-do-not-send="true"
                        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
                      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> </div>
                  </div>
                  <div><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 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 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'?  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 moz-do-not-send="true"
                                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>
                  </div>
                </div>
              </div>
            </blockquote>
            <br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>