mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
* Initial commit of websockets * Move app_menu to the active_calls websockets * Fix hangup function * Remove connection wait-state on web socket server so events can process * Add timestamp and debug level to console for service debug output * Remove debug exit * Fix typo for ws_client instead of ws_server * Update app_config.php * Fix typo and remove empty function * Remove call to empty function * Fix the menu to point to the correct location * Remove Logging Class * Rename service file * Rename service file * Fix the in progress browser request * Fix browser reload and implement 'active_calls' default values * Add apply_filter function * Create new permission_filter object * In progress active calls now use filter * Add invalid_uuid_exception class * add event_key_filter to honor user permissions * add and_link and or_link for filters * Fix disconnected subscriber and add filters to honor permissions * Add $key and $value for filter * define a service name * catch throwable instead of exception * Add $key and $value for filter and allow returning null * Update permission checks when loading page * Add apply_filter function to honor subscriber permissions * Add create_filter_chain_for function to honor subscriber permissions * Add apply_filter function to honor subscriber permissions * Add apply_filter function to honor subscriber permissions * create interface to allow filterable payload * create interface to define functions required for websocket services * Pass in service class when creating a service token * Allow key/name and return null for filter * Adjust subscriber exceptions to return the ID of the subscriber * Add event filter to filter chain * Add command line options for ip and port for websockets and switch * update service to use is_a syntax * initial commit of base class for websockets system services * initial commit of the system cpu status service * remove extra line feed * fix path on active_calls * initial proof of concept for cpu status updated by websockets * Allow returning null * Use default settings to set the interval for cpu status broadcast * Improve the CPU percent function for Linux systems * Show more debug information * Allow child processes to re-connect to the web socket service * Fix websockets as plural instead of singular * Add class name list-row * Update active_calls.php * Update active_calls.php * Update websocket_client.js * Update app_config.php * Update app_menu.php * Update debian-websockets.service * Update debian-active_calls.service --------- Co-authored-by: FusionPBX <markjcrane@gmail.com>
76 lines
3.3 KiB
PHP
76 lines
3.3 KiB
PHP
<?php
|
|
|
|
//application details
|
|
$apps[$x]['name'] = "Active Calls";
|
|
$apps[$x]['uuid'] = "ec8530a9-903a-469d-3717-281f798b9ef6";
|
|
$apps[$x]['category'] = "Switch";;
|
|
$apps[$x]['subcategory'] = "";
|
|
$apps[$x]['version'] = "1.0";
|
|
$apps[$x]['license'] = "Mozilla Public License 1.1";
|
|
$apps[$x]['url'] = "http://www.fusionpbx.com";
|
|
$apps[$x]['description']['en-us'] = "Active channels on the system.";
|
|
$apps[$x]['description']['en-gb'] = "Active channels on the system.";
|
|
$apps[$x]['description']['ar-eg'] = "";
|
|
$apps[$x]['description']['de-at'] = "Aktive Kanäle auf dem System.";
|
|
$apps[$x]['description']['de-ch'] = "";
|
|
$apps[$x]['description']['de-de'] = "Aktive Kanäle auf dem System.";
|
|
$apps[$x]['description']['es-cl'] = "Canales activos en el sistema.";
|
|
$apps[$x]['description']['es-mx'] = "";
|
|
$apps[$x]['description']['fr-ca'] = "";
|
|
$apps[$x]['description']['fr-fr'] = "Channels actifs sur le système";
|
|
$apps[$x]['description']['he-il'] = "";
|
|
$apps[$x]['description']['it-it'] = "";
|
|
$apps[$x]['description']['ka-ge'] = "აქტიური არხები სისტემაში.";
|
|
$apps[$x]['description']['nl-nl'] = "Aktieve kanalen in het systeem";
|
|
$apps[$x]['description']['pl-pl'] = "";
|
|
$apps[$x]['description']['pt-br'] = "Canais ativos no sistema.";
|
|
$apps[$x]['description']['pt-pt'] = "Canais ativos no sistema.";
|
|
$apps[$x]['description']['ro-ro'] = "";
|
|
$apps[$x]['description']['ru-ru'] = "Активные каналы в системе";
|
|
$apps[$x]['description']['sv-se'] = "";
|
|
$apps[$x]['description']['uk-ua'] = "";
|
|
/*
|
|
*
|
|
* Permissions have been migrated to the active_calls app
|
|
*
|
|
*
|
|
//permission details
|
|
$y=0;
|
|
$apps[$x]['permissions'][$y]['name'] = "call_active_view";
|
|
$apps[$x]['permissions'][$y]['menu']['uuid'] = "eba3d07f-dd5c-6b7b-6880-493b44113ade";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
|
//$y++;
|
|
//$apps[$x]['permissions'][$y]['name'] = "call_active_transfer";
|
|
//$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = "call_active_eavesdrop";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = "call_active_hangup";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
|
//$y++;
|
|
//$apps[$x]['permissions'][$y]['name'] = "call_active_park";
|
|
//$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
//$y++;
|
|
//$apps[$x]['permissions'][$y]['name'] = "call_active_rec";
|
|
//$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = "call_active_all";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = "call_active_profile";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = "call_active_application";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = "call_active_codec";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = "call_active_secure";
|
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
*/
|