Hello,<br><br>&nbsp;&nbsp;&nbsp; I&#39;m trying to setup some kind of iteration through an AVP list using recursive routing, and use an AVP to create an &quot;index&quot; incrementing counter, i.e.<br><br>if(is_avp_set(&quot;$avp(counter)&quot;)){
<br>$avp(counter) = $avp(counter) + 1;<br>} else {<br>$avp(counter) = 0;<br>}<br><br>then I wish to apply to an avp index likewise: if($avp(some_avp[$avp(counter)]) == null){ # this avp list index does not exist, stop recursive routing } else { # keep doing operations }
<br><br>However this is trivial, there seems not to be any easy way of going about this, also openser.cfg errors out when I try to nest AVP&#39;s and use an AVP value as an index value.<br><br>xl_parse_index: error parsing format [$avp(counter)])] expecting &#39;]&#39;
<br>parse error (410,59-89): unknown script variable<br><br>Any thoughts?&nbsp; All Appreciated, thank you!<br><br><br clear="all"><br>-- <br>Brandon Armstead