<p>I'm using MySQL v.5.5, Ubuntu 14.04 and openSIPS 1.11.3-TLS (revision: <a href="https://github.com/OpenSIPS/opensips/commit/eb9bad14ef4b42593ad17a7601417d5d29c30eb9" class="commit-link"><tt>eb9bad1</tt></a>) with the following settings for the module usrloc:</p>

<p>modparam("usrloc", "db_mode", 2) <br>
modparam("usrloc", "timer_interval", 60) <br>
modparam("usrloc", "desc_time_order", 1)<br>
modparam("usrloc", "matching_mode", 0) </p>

<p>The REGISTER messages are processed with the function "save("location","v"))".</p>

<p>I notice that if the UAC changes the call-id header in the REGISTER message (respect to the previous REGISTER messages), the contact and call-id values are updated correctly in memory, but the record in the "location" table (in particular the expires and callid columns) isn't updated (flushed from memory) at the end of the timer interval.<br>
In few words, the timer doesn't flush the modified contact from memory to database, and as a consequence it doesn't delete the contact when it expires.</p>

<p>Thanks in advance </p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/402">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciQae0xk8BI1aeBs3laREPNg2SrjYks5nfkyQgaJpZM4DPySR.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/OpenSIPS/opensips/issues/402"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>