[OpenSIPS-Devel] [opensips] Allow pulling statistics from script logic (#362)
Di-Shi Sun
notifications at github.com
Mon Oct 20 05:59:55 CEST 2014
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.
Regards,
Di-Shi
---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/362#issuecomment-59681313
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20141019/3b13c3c1/attachment.htm>
More information about the Devel
mailing list