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


_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to