<div dir="ltr">Hi <span style="font-size:12.8px">Răzvan, </span>would <span style="font-size:12.8px">$stat(active_dialogs) give detailed stats ? I mean for each label I put on the calls ? example if I am labeling by IP would I get from $stat(active_dialogs) stats by label ?</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 24, 2017 at 8:38 AM, Răzvan Crainea <span dir="ltr"><<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello, Khalil!<br>
<br>
You could check the $stat(active_dialogs) pvar, which will return the number of ongoing dialogs.<br>
<br>
Best regards,<br>
<br>
Răzvan Crainea<br>
OpenSIPS Core Developer<br>
<a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">http://www.opensips-solutions.<wbr>com</a><span class=""><br>
<br>
On 01/24/2017 01:05 AM, Khalil Khamlichi wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
the idea is that I don't need to get the number of calls 30 times per<br>
second which would happens if I save to redis on each invite. scheduling<br>
the saving to redis every 10 seconds serves  well my purpose but the<br>
timer_route doesn't seem to accept get_profile_size()<br>
<br>
any hints would be appreciated.<br>
<br>
On Mon, Jan 23, 2017 at 10:39 PM, Khalil Khamlichi<br></span><span class="">
<<a href="mailto:khamlichi.khalil@gmail.com" target="_blank">khamlichi.khalil@gmail.com</a> <mailto:<a href="mailto:khamlichi.khalil@gmail.com" target="_blank">khamlichi.khalil@gmail<wbr>.com</a>>> wrote:<br>
<br>
    Hi,<br>
<br>
    I am trying to get call load information out of opensips at regular<br>
    intervals to get some sort of realtime view of the load on the server.<br>
<br>
    After applying profiles on the the INVITEs, I have tried to call<br>
    get_profile_size from a timer_route.<br>
    I am getting error :<br>
<br>
    CRITICAL:core:yyerror: parse error in config file<br>
    /usr/local//etc/opensips/opens<wbr>ips.cfg, line 483, column 38-39:<br>
    Command cannot be used in the block<br>
<br>
    Any alternative solutions ?<br>
<br>
    Thanks in advance.<br>
<br>
    kkh<br>
<br>
<br>
<br>
<br></span>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
<br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div>