From 9483fcc5748b80bbf713d74e59b6ecfded1428dd Mon Sep 17 00:00:00 2001 From: MJ Antipode Date: Tue, 3 Jan 2023 11:56:55 +0100 Subject: [PATCH] Copie directe depuis https://gist.github.com/tricksol/1b8b0a325c4a1152d8cec77d30289efc --- userparameter_fusionpbx.conf | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 userparameter_fusionpbx.conf diff --git a/userparameter_fusionpbx.conf b/userparameter_fusionpbx.conf new file mode 100644 index 0000000..f175a16 --- /dev/null +++ b/userparameter_fusionpbx.conf @@ -0,0 +1,6 @@ +UserParameter=freeswitch.calls-count-total, fs_cli -x 'show calls count as xml' | cut -d'"' -f2 +UserParameter=freeswitch.calls-count-inbound, fs_cli -x 'show calls count inbound as xml' | sed 's/total.//g' +UserParameter=freeswitch.calls-count-outbound, fs_cli -x 'show calls count outbound as xml' | sed 's/total.//g' +UserParameter=freeswitch.channels-count, fs_cli -x 'show channels count as xml' | cut -d'"' -f2 +UserParameter=freeswitch.sessions, fs_cli -x 'show status' | grep 'out of max' | cut -d' ' -f1 +UserParameter=freeswitch.registration-count, fs_cli -x 'sofia status profile internal reg' | sed 's/Total items returned:\|//' | tail -3 | sed -n '1p' \ No newline at end of file