i have not been able to figure out, how to give integer avp name in
a pseudo variable. test
$var(name) = "i:1000";
$avp($var(name)) = "value";
xlog("L_INFO", "avp i:1000 has value <$avp(i:1000)>\n");
xlog("L_INFO", "avp s:i1000 has value <$avp(s:i:1000)>\n");
produces to syslog
Nov 8 13:17:23 sip /usr/sbin/sip-proxy[8642]: INFO: avp i:1000 has value
<<null>>
Nov 8 13:17:23 sip /usr/sbin/sip-proxy[8642]: INFO: avp s:i1000 has value <value>
that is, $var(name) value i:1000 is interpreted as string name even when
its syntax conforms to integer name.
is this is a bug or how should value of $var(name) look like?
-- juha
Show replies by date