Hello,<br><br>Say I have something like the following:<br><br>$avp(a[0]) = "27*"<br>$avp(a[1]) = "22*"<br><br>Then I run avp_substr like the following: avp_subst("$avp(a)/g", "/\*/[0-9]/g");
<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's would now look like:<br><br>[ BAD RESULTS ]<br>$avp(a[0]) = "22";
<br>$avp(a[1]) = "27";<br><br>however the [ EXPECTED RESULTS ]<br>$avp(a[0]) = "27";<br>$avp(a[1]) = "22";<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? Thanks!
<br>