Commit Graph

10 Commits

Author SHA1 Message Date
frytimo
bbe7b9e9b7 Documentation, format class, no modification. (#7628) 2025-11-18 18:49:39 -07:00
frytimo
1b7d320f93 Remove logging in the class as the parent class now handles it (#7561)
* Remove logging in the class as the parent class now handles it

* Remove logging in the class as the parent class now handles it
2025-10-09 16:45:58 -06:00
frytimo
c9e7e5e7ee Fix bug by adding a 'tries' counter so reading websocket data can return (#7470)
* add a tries counter so reading websocket data can fail

* fix empty constructor parameters when creating a permission_filter

* Use the message topic for debugging info instead of payload data

* use a socket disconnect exception instead of runtime exception

* Add a wait state for re-connecting to websocket server

* Add PHPDoc return information for connect_to_ws_server method

* Remove the cannot send message for already removed resource

* Remove param in the method call to handle_websocket_event
2025-08-27 07:53:01 -06:00
frytimo
8230709d62 Use case in-sensitive matching for sec-websocket-key header (#7454) 2025-08-12 22:21:55 -06:00
frytimo
dc56886d41 Fix websocket service disconnect on invalid handshake (#7447) 2025-08-05 09:05:48 -06:00
frytimo
91efee3b27 Fix active calls eavesdrop (#7419)
* Remove old debug comments

* Remove unused variable

* Remove debug information

* Fix eavesdrop missing domain_name

* Remove extended debug information
2025-07-11 10:57:54 -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
frytimo
c126429be4 remove exit on unknown control frame (#7397) 2025-06-25 13:31:51 -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
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