Paweł,

this can be simpler done with an external script that runs on cron and 
periodically fetch the stats you need (via opensipsctl fifo 
get_statistics), dump the values somewhere and resets them (via 
opensipsctl fifo reset_statistics - 
http://www.opensips.org/Resources/DocsCoreMi16#toc11).

The idea is to keep non-sip processing outside opensips - let opensips 
to its job with the SIP stuff and do other apps to take care of the side 
jobs (like CDRs, stats, etc).

Do you think this will work for you ?

Regards,
Bogdan

Paweł Pierścionek wrote:
> On 2010-03-03, at 19:20, Bogdan-Andrei Iancu wrote:
>
>   
>> Hi Pawel,
>>
>> for read, the stats vars are available only via the MI interface (the 
>> get_statistics function).
>>
>> do you want to read the stats from the statistics module only, or all of 
>> them?
>>     
>
> Nah, only the ones defined in my script/statistics module and log/print them 
> and reset them in a timer route.
>
> Pawel,
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro


_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to