[OpenSIPS-Devel] [opensips] Allow pulling statistics from script logic (#362)
notifications at github.com
Mon Oct 20 05:59:55 CEST 2014
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:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Devel