[OpenSIPS-Users] to declare glbal variable as integer

Vlad Paiu vladpaiu at opensips.org
Mon May 7 16:02:52 CEST 2012


Hi,

You can use the statistics module, and create a new statistic, that you 
can increment once a new call gets in. See [1] .

[1] http://www.opensips.org/html/docs/modules/devel/statistics

Regards,

Vlad Paiu
OpenSIPS Developer
http://www.opensips-solutions.com


On 05/07/2012 05:00 PM, prasad kelkar wrote:
> hello,
> I want to declare one "count"variable which count number of calls.
> I declared it in global parameter section of opensips.cfg as 
> $var(count)=0;
> It did not work.
> Please tell me where to declare new variable and how to use in route 
> block.
> An example will help.
> thank you.
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120507/8302f83e/attachment.htm>


More information about the Users mailing list