<p>Hi bogdan, I'm so excited to receive your reply!<br>
one side I  want to get the statistics about usrloc but db_only mode disable it, from this  I can only use non db_only mode..<br>
and another side I want to sharing user register info via DB but not the primary storage, so that when a call coming and opensips can not find callee in local mem, then I can make a try to query callee in DB and get callee's real registered opensips node and route this invite to it.<br>
but in my test I found problem that in non db_only mode opensips remove the expired users from db without considering whether the deleted users registered in it.<br>
So I try to solve this problem, my solution is to make one more judgment before deleting the expired users, like "t-&gt;sock != 0" because if the user registered in local then its socket info in mem will be null, to check if the user is not registered in local then opensips remove this user from mem and do not remove it from DB.  can you help me to check if my solution is OK or not? or I missing something?</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/601#issuecomment-131741309">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciZThn6Znkosj474zw32JLP80OR1Pks5ooZ76gaJpZM4Frg9F.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/601#issuecomment-131741309"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>