<p>If the AVP name is not specified in the load_credentials parameter, the wrong AVP is populated, namely the last one used. That's because <code>avp_name</code> is not properly reset after each iteration.</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/385">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciajIGfnj40y2C8W_OvZcMNPW2pEGks5nNewNgaJpZM4C7P9i.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/385"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>