[Users] Re: [Devel] avpops updates

Daniel-Constantin Mierla daniel at voice-system.ro
Sat Feb 11 14:29:40 CET 2006



On 02/11/06 00:14, Dan Pascu wrote:
> On Friday 10 February 2006 21:44, Daniel-Constantin Mierla wrote:
>   
>> - avps and hdrs pseudo-variables can have dynamic names:
>>     -$avp($pvar) refers to the avp having the name the value of $pvar
>>     -$hdr($pvar) refers to the hdr having the name the value of $pvar
>>     
>
> It's not clear from this description, but can we now have something like 
> $avp($avp(s:myavp)) or $hdr($avp(i:615)) or is this limited to pseudo 
> variables?
>
> For example would this work?
>
> avp_write("foo", "$avp(s:myavp)");
> avp_write("777", "$avp(s:foo)");
>   
yes, it should work, Actually, avps can be considered parts of 
pseudo-variables (writable), they are listed in the pseudo-variables 
tutorial.
> now would $avp($avp(s:myavp)) yield 777 ?
>   
yes, if not, it is a bug somewhere ...

Cheers,
Daniel





More information about the Users mailing list