<p>avp_insert() function [1] allows you to insert an AVP at a specific index. For indexes out of the Stack bound, it adds the AVP at the end beginning of the stack. This is the exact functionality as requested by this feature. Closing it.</p>

<p>[1] <a href="http://www.opensips.org/html/docs/modules/2.1.x/avpops.html#id294948">http://www.opensips.org/html/docs/modules/2.1.x/avpops.html#id294948</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/383#issuecomment-66462181">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciftWgR9WtxsunMFTQ_1pwwjPv55Uks5nWFW9gaJpZM4C34m6.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/383#issuecomment-66462181"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>