Hello,<br><br>Say I have something like the following:<br><br>$avp(a[0]) = &quot;27*&quot;<br>$avp(a[1]) = &quot;22*&quot;<br><br>Then I run avp_substr like the following: avp_subst(&quot;$avp(a)/g&quot;, &quot;/\*/[0-9]/g&quot;);
<br><br>As you would expect it to simply strip * from the avp list values, instead it decides to rewrite the index in numerical order, so the avp&#39;s would now look like:<br><br>[ BAD RESULTS ]<br>$avp(a[0]) = &quot;22&quot;;
<br>$avp(a[1]) = &quot;27&quot;;<br><br>however the [ EXPECTED RESULTS ]<br>$avp(a[0]) = &quot;27&quot;;<br>$avp(a[1]) = &quot;22&quot;;<br><br>Could someone please elaborate on why OpenSER would re-numerate the list index on a simple avp_substr, also any ideas on how I can get around this and stop this from happening?&nbsp; Thanks!
<br>