<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Hi Pavel,<br>
<br>
what you are trying to do is not possible (to take from script the
size of a profile and push it into a statistic).<br>
<br>
I would rather suggest to make a small shell script to
periodically query for the size of the profile via MI:<br>
opensipsctl fifo profile_get_size fromip 123.123.123.123<br>
<br>
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 .<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<br>
On 07/15/2012 08:26 PM, <a class="moz-txt-link-abbreviated" href="mailto:pavel@eremina.net">pavel@eremina.net</a> wrote:
<blockquote
cite="mid:CAF3UBt3K-w76S_V-EnMDiM8sQZL-PjgiV7gi5OJ==pyATeALyw@mail.gmail.com"
type="cite">I want to use "statistics monitor" for monitor
activity of dialogs profile.
<div><br>
</div>
<div>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?
<div>
<br>
</div>
<div>i try to use:</div>
<div>update_stat("somestatvar","$var(count)");</div>
<div><br>
</div>
<div>, but get "bad number <$var(count)"; in log. ...</div>
<div><br>
</div>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>