[sr-dev] AVP arrays

Klaus Darilion klaus.mailinglists at pernau.at
Wed Oct 7 09:16:40 CEST 2009


Great idea, please do so ..
http://sip-router.org/wiki/cookbooks/pseudo-variables/devel#avps

;-)

Alex Balashov schrieb:
> Daniel once taught me in a mailing list post how to use AVP arrays 
> syntactically - i.e. to iterate through them and to implicitly create 
> them - for which I am very grateful.  For example:
> 
>    $var(i) = 0;
> 
>    while($var(i) < $dbr(ra=>rows)) {
>              $(avp(s:rows_of_things)[$var(i)]) = $dbr(ra=>[$var(i),0]);
>    }
> 
> But I don't see anywhere in the documentation - for the avpops module or 
> otherwise - where someone else can learn to use them.  They are not 
> mentioned explicitly anywhere as having potentially nonscalar properties.
> 
> I think it is a good idea to fix that.
> 



More information about the sr-dev mailing list