<p>from my post <a href="http://sip-router.org/tracker/index.php?do=details&task_id=448">http://sip-router.org/tracker/index.php?do=details&task_id=448</a><br>
<q><br>
"Comment by Savolainen Dmitri (snen) - Friday, 04 July 2014, 12:55 GMT<br>
Yes, it is about adding the same record twice, but it doesn't matter via kamctl or via sip-endpoint. Just kamctl with permanent registration is more clearly, because there is no expire. Same update with expire will try to INSERT until expired (or adding not same record)"<br>
</q><br>
You've fixed only MI part, but  dynamic registration from  endpoints in the usrloc record may be marked as CS_DIRTY with modparam("usrloc", "db_check_update", 1) and will be never CS_SYNC up to kamailio reboot or registration changed. So  we can see multiple "Duplicate entry" message every <a href="http://www.kamailio.org/docs/modules/4.2.x/modules/usrloc.html#usrloc.p.timer_interval">timer_interval</a>  period.    You can see my fixing suggestions in the initial post of <a href="http://sip-router.org/tracker/index.php?do=details&task_id=448">http://sip-router.org/tracker/index.php?do=details&task_id=448</a></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-69755233">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZRQ4GwrLOsmH3gbB64O2h5XwH8p6ks5nhSiugaJpZM4DRc8s.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-69755233"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>