looks like it is not currently possible to use a variable as avp index.
for example, statements
$var(tmp) = "i:10";
$avp($var(tmp)) = "value";
xlog("L_INFO", "Avp has value $avp(i:10)\n");
produce to syslog
INFO: Avp has value <null>
but if i write xlog like this
xlog("L_INFO", "Avp has value $avp($var(tmp))\n");
i get
INFO: Avp has value value
does this mean that avp name is "$var(tmp)" or what?
anyway, i want to be able to assign values to avps using dynamically
calculated avp names. if that is not currently possible, would be it ok
as a first aid, if i add to some utils module a function that takes a
param list (p1=v2;p2=v2;...) as argument and assigns avps based on it?
-- juha