This plugins implements a (yet) very simple statistics module. Once activated, it will take note of the response time for each received request, and for each period (5 secs by default), compute minimum, maximum, average and standard deviation of response times.
None
None
You can use the global configuration value nksip_stats_period
to change the statistics calculation period from the default of 5 seconds
info() ->
nksip:optslist().
Gets some statistics about current number of calls, dialogs, queues, etc.
get_uas_avg() ->
{Min::integer(), Max::integer(), Avg::integer(), Std::integer()}.
Gets the call statistics for the current period.
None
nksip:start("my_app", nksip_callbacks, [], [{plugins, [nksip_stats]}]).
and afterwards
nksip_stats:get_uas_avg().