Hi Brett,

if you simply want to do counters, in 1.9 you can do dynamic statistics from script. Simply do :
    update_stat("cnt_$(<reply>rs)","+1");

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 12/03/2012 10:09 PM, Brett Nemeroff wrote:
Hello All,

I was wondering if anyone had a clever way of doing a "hash" inside of the scripting. What I'd really like to be able to do is something like this:

$(avp(code_counter)[$(<reply>rs)])++

I think I could use the JSON module do to this, but I was hoping to find a more lightweight way to do it.

Thanks,
Brett




_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to