]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_pjsip: Add 'pjsip show channelstats' 80/2480/2
authorGeorge Joseph <george.joseph@fairview5.com>
Sun, 27 Mar 2016 03:33:14 +0000 (21:33 -0600)
committerJoshua Colp <jcolp@digium.com>
Tue, 29 Mar 2016 19:35:17 +0000 (14:35 -0500)
commitc7eb18d8655272c7e1bdecce176891e99c140795
tree2f3994c9f87ddc428ab3f5129530f94d7dc3a187
parente595f02f83137cf92dd2a7f2567a73d6a88a2ff2
chan_pjsip:  Add 'pjsip show channelstats'

Added the ability to show channel statistics to chan_pjsip (cli_functions.c)

Moved the existing 'pjsip show channel(s)' functionality from
pjsip_configuration to cli_functions.c.  The stats needed chan_pjsip's
private header so it made sense to move the existing channel commands as well.

Now using stasis_cache_dump to get the channel snapshots rather than retrieving
all endpoints, then getting each one's channel snapshots.  Much more efficient.

Change-Id: I03b114522126d27434030b285bf6d531ddd79869
CHANGES
channels/chan_pjsip.c
channels/pjsip/cli_commands.c [new file with mode: 0644]
channels/pjsip/include/cli_functions.h [new file with mode: 0644]
res/res_pjsip/pjsip_cli.c
res/res_pjsip/pjsip_configuration.c