[OpenSIPS-Devel] [opensips] Allow pulling statistics from script logic (#362)
notifications at github.com
Wed Oct 22 00:44:30 CEST 2014
Hey, This is great.
Thanks for that. I'll give it a shot.
On Sun, Oct 19, 2014 at 10:59 PM, Di-Shi Sun <notifications at github.com>
> Hi Brett,
> In http://www.opensips.org/Documentation/Interface-CoreStatistics-1-11,
> you can find how to use $stat to get load statistics. For dynamically
> getting load info, you can try
> $avp(Rip) = $Ri + ":" + $Rp;
> xlog("The UDP load on $avp(Rip) $stat(udp:$avp(Rip)-load) \n");
> It may not be the best way, but it works.
> Reply to this email directly or view it on GitHub
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Devel