<p><a href="https://github.com/was4444" class="user-mention">@was4444</a> , it is safe to do overflow of the index - you will simply get a null value back.</p>

<p>To actually count the number of values the AVP holds, see the set_count() function:<br>
     <a href="http://www.opensips.org/html/docs/modules/2.1.x/cfgutils.html#id293905">http://www.opensips.org/html/docs/modules/2.1.x/cfgutils.html#id293905</a></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/585#issuecomment-127579698">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciZM4UAget9TO0o0xJqv-ocwJ_yA8ks5okKNVgaJpZM4FieA0.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/585#issuecomment-127579698"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>