Hi Pavel,

what you are trying to do is not possible (to take from script the size of a profile and push it into a statistic).

I would rather suggest to make a small shell script to periodically query for the size of the profile via MI:
        opensipsctl fifo profile_get_size fromip 123.123.123.123

and push the values into the DB table used by CP for sampling the statistics -> the values will be used by CP to draw charts .

Regards,

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


On 07/15/2012 08:26 PM, [email protected] wrote:
I want to use "statistics monitor" for monitor activity of dialogs profile.

Example: i have profile "fromip" with values "123.123.123.123" and see how many calls from that IP i have. How can i store count of simultaniusly calls from that ip and see it in charts?

i try to use:
update_stat("somestatvar","$var(count)");

, but get "bad number <$var(count)"; in log. ...


_______________________________________________
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