<p>I took the time to revise the old reported issue and I am having difficulty to understand what is left unfixed. There were some issue in matching the old records in database for db_update_ucontact_addr() in various mach modes, which should be fixed with the commit <a href="https://github.com/kamailio/kamailio/commit/e8a795a6a413ae453f619e3deaf36c26b85b0077" class="commit-link"><tt>e8a795a</tt></a>.</p>

<p>For db_mode_ruid=1, the matching is done on ruid column, thus db_update_ucontact_ruid() should result in one affected row if the same ruid value is found. I expect that at least expires and last_modifield fields will have different values.</p>

<p>Devel version has the option to set CLIENT_FOUND_ROWS to mysql connection to return matched rows instead of changed rows when doing UPDATE:</p>

<ul class="task-list">
<li><a href="http://kamailio.org/docs/modules/devel/modules/db_mysql.html#db_mysql.p.update_affected_found">http://kamailio.org/docs/modules/devel/modules/db_mysql.html#db_mysql.p.update_affected_found</a></li>
</ul>

<p>Maybe that can be made default.</p>

<p>Otherwise, I am not sure what else needs to be fixed. If you still think there is an issue, add new details here, explaining the case again. From the old issue on sip-router.org tracker is nothing I found to be fixed anymore.</p>

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