Daniel-Constantin Mierla writes:
indeed, the right syntax is:
if ( defined( $(avp(fd.attr)[$var(i)]) ) ) {
i added one statement:
$(avp(id)[0]) can be written in shorter form as $avp(id) and $avp(s:name) as $name.
to http://sip-router.org/wiki/cookbooks/pseudo-variables/devel#avps.
hope it clarifies the situation a bit.
-- juha