:
Several modules for freeswitch: Count of gateway, Count of Channels, Count of calls, Count of registrations.
Module data
# Count of registrations
module_begin module_name FSRegnsCount module_type generic_data module_exec /usr/local/freeswitch/bin/fs_cli -x "show registrations count" | awk '{if (match($0,"total")) { printf("%d",$1);}}' module_description FreeSWITCH registrations module_end
# Count of calls
module_begin module_name FSCallsCount module_type generic_data module_exec /usr/local/freeswitch/bin/fs_cli -x "show calls count" | awk '{if (match($0,"total")) { printf("%d",$1);}}' module_description FreeSWITCH calls module_end
# Count of Channels
module_begin module_name FSChansCount module_type generic_data module_exec /usr/local/freeswitch/bin/fs_cli -x "show channels count" | awk '{if (match($0,"total")) { printf("%d",$1);}}' module_description FreeSWITCH channels module_end
# Count of gateways:
module_begin module_name FSGatesCount module_type generic_data module_exec /usr/local/freeswitch/bin/fs_cli -x "sofia status gateways" | awk '{if (match($0,"gateways:")) { printf("%d",$1);}}' module_description FreeSWITCH gateways module_end
(Visited 275 times, 1 visits today)