[SR-Users] how to give integer avp name in pseudo variable?
Daniel-Constantin Mierla
miconda at gmail.com
Tue Nov 8 13:05:59 CET 2011
Hello,
On 11/8/11 12:29 PM, Juha Heinanen wrote:
> answering to myself, the solution is to assign integer value to
> $var(name). test
>
> $var(name) = 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:26:25 sip /usr/sbin/sip-proxy[8980]: INFO: avp i:1000 has value<value>
> Nov 8 13:26:25 sip /usr/sbin/sip-proxy[8980]: INFO: avp s:i1000 has value<<null>>
>
> i didn't find this documented anywhere. should it be added to pv wiki
> page or is it too obvious?
go ahead and add notes about it -- any improvement to documentation is
welcome and always good, no matter how obvious the information is for
some people or not
Thanks,
Daniel
--
Daniel-Constantin Mierla -- http://www.asipto.com
Kamailio Advanced Training, Dec 5-8, Berlin: http://asipto.com/u/kat
http://linkedin.com/in/miconda -- http://twitter.com/miconda
More information about the sr-users
mailing list