Commit Graph

4 Commits

Author SHA1 Message Date
FusionPBX
a13bf7517f Fix active_conferences high cpu bug on switch disconnect #7742
When the conference service disconnects from the switch, it will cause 100% cpu usage. This fix will allow the service to detect the disconnection and then wait until the connection is re-established with the switch.
2026-02-11 11:16:27 -07:00
frytimo
b3cbf956c2 Add reconnection delay to prevent high CPU usage when server is unavailable. (#7737)
When the websocket server is unavailable the connection tries to reconnect too fast causing a high CPU usage. Adding a check for the connection status and sleeping when it is not yet connected after a re-connect attempt prevents the high CPU usage.

Fixed the method signature in create_filter_chain_for to exactly match that of the parent to avoid potential PHP warnings or errors.
2026-02-06 07:24:55 -07:00
FusionPBX
b904d8e32b Support backwards compatibility for older PHP 2026-01-14 12:26:39 -07:00
frytimo
46d3eb18ea Active conferences (#7684)
* Add active conferences with web sockets

* Buttons mostly working

* Convert all methods, function, variable, const to snake case instead of standards.

* Add default settings for customized control

* Add customizable settings

* More debugging default settings added

* Add better authentication handling for websocket connections
These methods were added:
- on_ws_authenticated can be overridden in the child class if there are tasks that need to be done after authentication.
- handle_ws_authenticated was added in the parent class

Handle methods are called by the this class and then their respective 'on_ws_' method is then called.

* Mute All now working

* Add PHPDoc block comments

* More PHPDoc to better describe class and variables

* Fix accidental removal of function during PHPDoc block edits

* Remove the variable type declaration for PHP 7.1 compatibility

* Update conferences with more websocket communication to replace AJAX calls.

* Ensure interface is loaded when no members

* Move color settings to theme category

* Update page view to default settings changes
2025-12-29 22:30:08 -07:00