<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <font face="monospace">So the contact is registered for 600 seconds
      and the it looks like PUA is storing the presentity also for ~600
      secs. So they are in sync when comes to the expiration, right ?<br>
      <br>
      If so, for this example, after how many seconds do you see the
      logs telling you that the presentity (from pua) was deleted ?<br>
      <br>
      Regards,<br>
    </font>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS eBootcamp 2021 
  <a class="moz-txt-link-freetext" href="https://opensips.org/training/OpenSIPS_eBootcamp_2021/">https://opensips.org/training/OpenSIPS_eBootcamp_2021/</a></pre>
    <div class="moz-cite-prefix">On 10/6/21 6:52 PM, Rob Dyck wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:5756545.31tnzDBltd@blacky.mylan">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">pres_phtable_list
        doesn't give us the expiry unfortunately.</p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">example
        --</p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span
          style="color:#000000;"><span style="font-family:monospace;"><span
              style="background-color:#ffffff;">   { </span></span></span><br>
               "pres_uri": <a class="moz-txt-link-rfc2396E" href="sip:3@bogus.com">"sip:3@bogus.com"</a>, <br>
               "event": 1, <br>
               "etag_count": 1, <br>
               "etag": "a.1633479391.910806.347.0" <br>
           }</p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">The
        debug messages give us a clue however.</p>
      <br>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">ct 
        6 08:24:22 [910805] REGISTER Contact "No Name"
        <a class="moz-txt-link-rfc2396E" href="sip:3@192.168.1.5:5061"><sip:3@192.168.1.5:5061></a>;expires=600</p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Oct 
        6 08:24:22 [910805] DBG:pua_usrloc:pua_set_publish: set send
        publish</p>
      <br>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Shortly
        after we get --</p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Oct
         6 08:25:22 [910807] DBG:pua:print_ua_pres: p=[0x7faef2bb9560]
        pres_uri=[<a class="moz-txt-link-freetext" href="sip:3@bogus.com">sip:3@bogus.com</a>] <br>
        Oct  6 08:25:22 [910807] DBG:pua:print_ua_pres:
        etag=[a.1633479391.910806.347.0]
        id=[<a class="moz-txt-link-abbreviated" href="mailto:146183bd-a708bacf@192.168.1.5">146183bd-a708bacf@192.168.1.5</a>] <br>
        Oct  6 08:25:22 [910807] DBG:pua:print_ua_pres: flag=[1]
        event=[1] <br>
        Oct  6 08:25:22 [910807] DBG:pua:print_ua_pres: countdown=[541]
        expires=[1633534463] desired_expires=[1633534462</p>
      <br>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">countdown=[541]
        this seems reasonable given that this was 60 seconds after the
        register.</p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><br>
      </p>
      <br>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">On
        Tuesday, October 5, 2021 11:43:37 P.M. PDT Bogdan-Andrei Iancu
        wrote:</p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        Hi Rob,</p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
      </p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        After the device gets registered for the first time (and before</p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        expiring), if you do a "opensips-cli -x mi pres_phtable_list",
        do you</p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        see the expiring matching the value from the "opensips-cli -x mi
        ul_dump" ?</p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
      </p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        Best regards,</p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
      </p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        Bogdan-Andrei Iancu</p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
      </p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        OpenSIPS Founder and Developer</p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>   
        <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a></p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        OpenSIPS eBootcamp 2021</p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>   
        <a class="moz-txt-link-freetext" href="https://opensips.org/training/OpenSIPS_eBootcamp_2021/">https://opensips.org/training/OpenSIPS_eBootcamp_2021/</a></p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
      </p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        On 10/4/21 6:57 PM, Rob Dyck wrote:</p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        > Context opensips-3.2.2</p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        > </p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        > I am trying out module pua_usrloc. I think that it is
        expiring</p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        > presentities</p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        > while the phone's registration is still valid. Then the
        phone re-registers</p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        > and the presentity has to be recreated. This creates too
        much churn which</p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        > could be avoided.</p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        > </p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        > See attached time line.</p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        > </p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        > _______________________________________________</p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        > Users mailing list</p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        > <a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a></p>
      <p
        style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">>
        > <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></p>
      <br>
      <br>
    </blockquote>
    <br>
  </body>
</html>