I looked up at the docs, $stat(active_dialogs) is for the whole system, If there is no way to call get_profile_size() automatically from whithin opensips I will need to fall back to MI fifo from an external script.
On Tue, Jan 24, 2017 at 8:49 AM, Khalil Khamlichi < khamlichi.kha...@gmail.com> wrote: > Hi Răzvan, would $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 ? > > On Tue, Jan 24, 2017 at 8:38 AM, Răzvan Crainea <raz...@opensips.org> > wrote: > >> Hello, Khalil! >> >> You could check the $stat(active_dialogs) pvar, which will return the >> number of ongoing dialogs. >> >> Best regards, >> >> Răzvan Crainea >> OpenSIPS Core Developer >> http://www.opensips-solutions.com >> >> On 01/24/2017 01:05 AM, Khalil Khamlichi wrote: >> >>> the idea is that I don't need to get the number of calls 30 times per >>> second which would happens if I save to redis on each invite. scheduling >>> the saving to redis every 10 seconds serves well my purpose but the >>> timer_route doesn't seem to accept get_profile_size() >>> >>> any hints would be appreciated. >>> >>> On Mon, Jan 23, 2017 at 10:39 PM, Khalil Khamlichi >>> <khamlichi.kha...@gmail.com <mailto:khamlichi.kha...@gmail.com>> wrote: >>> >>> Hi, >>> >>> I am trying to get call load information out of opensips at regular >>> intervals to get some sort of realtime view of the load on the >>> server. >>> >>> After applying profiles on the the INVITEs, I have tried to call >>> get_profile_size from a timer_route. >>> I am getting error : >>> >>> CRITICAL:core:yyerror: parse error in config file >>> /usr/local//etc/opensips/opensips.cfg, line 483, column 38-39: >>> Command cannot be used in the block >>> >>> Any alternative solutions ? >>> >>> Thanks in advance. >>> >>> kkh >>> >>> >>> >>> >>> _______________________________________________ >>> Users mailing list >>> Users@lists.opensips.org >>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>> >>> >> _______________________________________________ >> Users mailing list >> Users@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> > >
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users