Commit Graph

18 Commits

Author SHA1 Message Date
FusionPBX
66e25ee61b Update Active Call dashboard defaults 2025-07-09 19:33:19 -06:00
frytimo
997d4b7cf9 Add missing permission to active calls (#7413) 2025-07-08 13:13:19 -06:00
frytimo
666b1351a3 Add extension handling to subscriber (#7412)
* add extension handling to subscriber
Store the extensions in the subscriber when it is available from $_SESSION.
Add more documentation to functions and variables

* remove rogue 'c' character injected by my keyboard

* Store the user session information in the token when available

* Add extension filter class

* Create get_user_setting function

* Add channel_presence_id key to event message
2025-07-07 13:53:58 -06:00
frytimo
a36e71ff2a Active calls dashboard widget (#7411)
* Add context filter

* Add dashboard widget

* Add config for widget

* Add domain filter to service

* Fix websocket_service to get the class name

* Add new method get_service_name
2025-07-03 21:52:55 -06:00
FusionPBX
ef076f98a0 Update app_menu.php 2025-06-27 13:32:52 -06:00
FusionPBX
61c3c244a4 Use the count background color from default settings 2025-06-25 14:43:36 -06:00
FusionPBX
0616c67590 Update active_calls.php 2025-06-25 14:30:18 -06:00
FusionPBX
c821e29679 Add restart always 2025-06-25 12:03:05 -06:00
frytimo
f8fa5d8afa update row when domain is adjusted (#7396) 2025-06-25 11:18:56 -06:00
FusionPBX
201e0e2b8f Update app_config.php 2025-06-25 09:19:16 -06:00
frytimo
b85e5754b2 Remove override of default context (#7395) 2025-06-25 09:11:17 -06:00
frytimo
041914c16b Fix websocket in progress calls (#7394)
* Add a max chunking size when reading bytes to prevent failure

* Add more debug information

* Update the active calls response to be better
2025-06-25 08:15:48 -06:00
FusionPBX
fce328040f Update app_menu.php 2025-06-24 15:54:52 -06:00
FusionPBX
e7de9d4884 Prevent error with null 2025-06-24 14:20:05 -06:00
FusionPBX
333606e500 Update active_calls.php 2025-06-24 14:14:37 -06:00
FusionPBX
eb66f76675 Fix a typo use && 2025-06-24 14:12:05 -06:00
FusionPBX
c1451ac63d Update app_menu.php 2025-06-24 13:45:41 -06:00
frytimo
d5286a12bc Websockets (#7393)
* 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>
2025-06-24 13:07:57 -06:00