<p><a href="https://github.com/eschmidbauer" class="user-mention">@eschmidbauer</a> please read the code related to presence timers, they make the select with the expires_offset. the change that you're proposing, it seems to me, that will have the side effect on NOTIFY messages of sending the wrong remaining period in the subscription, if the UA takes the value from the NOTIFY then you will end up with the same problem again.</p>

<p>if you think that you found that expires_offset has no affect on SUBSCRIBE requests, please show us where. i see it being used in <code>update_db_subs_timer_notifier</code> , <code>update_db_subs_timer_dbonly</code>, <code>update_db_subs_timer_dbnone</code>, <code>update_db_subs_timer</code>. current_time is deducted the expires_offsite and gets subscription LT that value. check here <a href="https://github.com/kamailio/kamailio/blob/b0a0b3dd12b1c218fffae75b9da7d454d1a39486/modules/presence/subscribe.c#L1945-L1946">here</a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/654#issuecomment-223843584">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AF36Zcy9ZtVQFdh6Gw7_5GV896hzzw4Hks5qI1cJgaJpZM4It3oT">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZRAotuKnzkeTtcZaCNfQsNMaaLdKks5qI1cJgaJpZM4It3oT.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/pull/654#issuecomment-223843584"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>