<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body><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": "sip:3@bogus.com", <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" <sip:3@192.168.1.5:5061>;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=[sip:3@bogus.com] <br />Oct  6 08:25:22 [910807] DBG:pua:print_ua_pres: etag=[a.1633479391.910806.347.0] id=[146183bd-a708bacf@192.168.1.5] <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;">>    https://www.opensips-solutions.com</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;">>    https://opensips.org/training/OpenSIPS_eBootcamp_2021/</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;">> > Users@lists.opensips.org</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users</p>
<br /><br /></body>
</html>