<p>For the case when is_subscriber() has the flag 2 set (not to load the credentials), the query is done only using the column of the first credential in order to see if the username record exists. If there will be no credentials list, then the username column is used for the query. But even when the first credential column is used, the avp will not be set (it is just used for the sql query).</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/500#issuecomment-180983951">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZXpT5_RBcyiT7EKwTTaudRyE5lO2ks5phwe9gaJpZM4HU_Yr.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/500#issuecomment-180983951"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>