<p>It doesn't look like a need to re-use code from auth_db in any way, you can make the query from the new module (it will be simpler than what auth_db does) or rely on the config file (e.g., is_subscriber() or use of sqlops). I am saying because the allowed user identity can be also in uri table (see uri_db module).</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/50#issuecomment-71912539">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36Zb9B5a626669-pSrA5SgDOL-VgRtks5nmUJQgaJpZM4DV3fr.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/50#issuecomment-71912539"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>