You could use ratelimit module.
http://www.opensips.org/html/docs/modules/2.2.x/ratelimit.html
This is how I am doing in my configuration.
{
...
$var(user) = "system";
set_dlg_profile($var(user));
rl_check("$var(user)", "99999", "TAILDROP");
get_profile_size("system", "$var(size)");
xlog("The System has CPS: $rl_count($var(user)) and CC:
$var(size)");
route(relay);
...
}
Hope it helps.
On 6 April 2017 at 02:06, deizeppe <[email protected]> wrote:
> Hi, is there any command that shows the value of CPS?
>
> Thanks in advance
>
>
>
> --
> View this message in context: http://opensips-open-sip-
> server.1449251.n2.nabble.com/opensips-performance-tp7605389p7606871.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users