[OpenSIPS-Devel] [opensips] Allow pulling statistics from script logic (#362)

brettnem 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.
-Brett


On Sun, Oct 19, 2014 at 10:59 PM, Di-Shi Sun <notifications at github.com>
wrote:

> 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>.
>

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/362#issuecomment-60011130
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20141021/33b37a99/attachment-0001.htm>


More information about the Devel mailing list