Commit Graph

2460 Commits

Author SHA1 Message Date
FusionPBX
dd140fb1dc Update upgrade.php 2025-07-15 01:36:52 -06:00
FusionPBX
d410fb3981 Update debian-websockets.service 2025-07-14 16:05:07 -06:00
FusionPBX
c4299d4719 Update debian-websockets.service 2025-07-14 15:57:36 -06:00
FusionPBX
5e44da8c89 Update debian-websockets.service 2025-07-14 15:55:08 -06:00
FusionPBX
0789693f57 Update upgrade_menu.php
Prevent a warning on the upgrade menu
2025-07-13 20:05:18 -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
006dbb88d6 Fix warning messages in websockets classes (#7418) 2025-07-11 09:34:35 -06:00
frytimo
6ef8167988 Fix group member add list (#7415) 2025-07-09 12:58:21 -06:00
FusionPBX
d0f00b6956 Update upgrade.php 2025-07-08 00:14:07 -06:00
FusionPBX
0056dd79b9 Update upgrade.php 2025-07-08 00:11:39 -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
FusionPBX
5750a1dce9 Update domain_edit.php 2025-07-05 09:45:01 -06:00
FusionPBX
a680b059db Update domain_edit.php 2025-07-05 09:42: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
FusionPBX
26d8527936 Fix PHP 7.1 websocket compatibility 2025-07-03 12:02:45 -06:00
FusionPBX
cb481c2d3e Update permissions skip dev/shm 2025-07-01 12:48:50 -06:00
frytimo
28dbb803de Add cpu line graph (#7403)
* add cpu line graph

* add cpu line graph

* add cpu line graph

* add cpu line graph

* add cpu line graph

* Add FreeBSD CPU status

* Add new dashboard type Line

* Add missing public declaration

* Allow new dashboard type Line to be selected option

* Use new Line type for graphing instead of doughnut
2025-06-30 15:54:13 -06:00
FusionPBX
3bf458895c Update upgrade.php 2025-06-28 23:03:38 -06:00
FusionPBX
ccc617940d Update upgrade.php 2025-06-28 21:29:20 -06:00
FusionPBX
90da27a553 Update upgrade.php 2025-06-28 08:22:32 -06:00
frytimo
807f80da94 Update dashboard with cpu status websockets (#7400)
* Remove setting hardcoded timer

* Use websockets for real-time CPU status on dashboard

* Add system_dashboard service file

* moved javascript file to core
2025-06-27 15:25:32 -06:00
FusionPBX
3636b8a11a Update upgrade.php 2025-06-26 09:31:12 -06:00
FusionPBX
d9d1649adc Update upgrade_menu.php
Refactor the interactive command line menu.
2025-06-26 08:14:32 -06:00
FusionPBX
2755b2f04a Update upgrade.php
Add a command-line help menu
2025-06-26 08:13:00 -06:00
FusionPBX
a817fda807 Update app_languages.php
Fix a syntax error
2025-06-26 07:16:19 -06:00
FusionPBX
2d18d51ff4 Update app_languages.php 2025-06-26 07:11:06 -06:00
frytimo
c126429be4 remove exit on unknown control frame (#7397) 2025-06-25 13:31:51 -06:00
FusionPBX
858e0ab491 Add restart always 2025-06-25 12:02:14 -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
FusionPBX
52825a8f59 Allow additional characters for the name, content and details
- Allow additional characters
- Allow multi-lingual
- Use escape to keep it secure
2025-06-11 16:12:30 -06:00
FusionPBX
d8ec8be917 Fix a spelling mistake in htmspecialchars 2025-05-31 16:49:17 -06:00
FusionPBX
f2054fa490 Minor version update 5.4.3 2025-05-28 19:54:36 -06:00
FusionPBX
ee16644e25 Rename methods used in restore default
Renamed methods
- delete to restore_delete 
- restore to restore_default
2025-05-28 19:49:45 -06:00
FusionPBX
b96b5f8c0f menu_item_protected deprecated
This protected feature has not been working correctly. At the moment commented out depending on feedback it maybe removed entirely.
2025-05-28 19:37:58 -06:00
K-Flagman
62791e4eb3 [CORE] [MENU] Feature Assign/Unassign User Groups (#7373) 2025-05-17 13:50:02 -06:00
fusionate
9032322b36 Email Queue - Test: Add Email Template to customize message sent in test email. 2025-05-15 11:37:12 -06:00
n0obHere
b5cf6f1690 Enhanced dashboard system_status card with more useful system info (#7366)
* Update system_status.php

Adjust column width to make some overflowing multi-line values into one-line view.

* Enhanced dashboard system_status card with more useful system info

- Added OS version detection
- Fixed not working memory usage with format (60% (1G/2G))  
- Replaced memory available with swap usage
- Improved disk usage display format (57% (12G/20G))    
- Added DB max connections display (Current/Max)

* Added style colors based on thresholds

* Update app_languages.php

Additional languages for new system_status items
2025-05-12 10:44:40 -06:00
FusionPBX
ab688a9204 Update default_setting_edit.php 2025-05-08 09:07:30 -06:00
FusionPBX
21846c760d Sanitize the domain setting category 2025-05-08 09:07:06 -06:00
FusionPBX
a88062fb1e Allow a space in the setting category name 2025-05-08 09:02:50 -06:00
Alex
7ff882f551 Dashboard Edit - Only show icon color if needed (#7361) 2025-04-30 12:46:58 -06:00
FusionPBX
ee322d23b6 Fix a syntax issue and remove the optional php close tag 2025-04-22 10:06:03 -06:00
FusionPBX
bd1258b126 Add missing translations 2025-04-22 10:02:19 -06:00
FusionPBX
1b6166ed77 Fix the link to call detail records 2025-04-17 16:40:24 -06:00
FusionPBX
30f6103dbb Update authentication.php 2025-04-17 16:32:12 -06:00
frytimo
e7393cc7c0 New Feature OpenID Connect (#7355)
* Refactor authentication to allow for OpenID Connect
The authentication class has been refactored to separate the `validate` function for the method `create_user_session`. This is needed for the OpenID Connect module to authenticate a user without going through the process of all authentication plugins. Only the function `check_user_cidr` has been rewritten to use a single loop instead of a double-loop.
Due to the fact that create_user_function is public, the $result associative array is checked to ensure the required fields are present and the UUID fields are valid UUIDs. Further checking could be done against the database to ensure the UUIDs exist but this has been suppressed at this time because database queries would be required.

* Database class modified to allow for login banners for OpenID Connect
The database class is responsible for creating the view for login. The OpenID application required banners to be present so that any OpenID Connect authentication mechanism could be used. Each banner displayed has the properties of: name, image, alt, and url. The name is the class name of the authentication plugin. This will match the action in the URL. The image is the image banner used for the login. The alt is the alternate text used for screen readers. Each authenticator is responsible for providing each of the field values.

* Added PHPDocs for the check_cidr function

* Add backwards compatibility for PHP versions below 8

* Remove get_banner_alt

* Update check_cidr to allow cidr array

* Update authentication.php

* Update functions.php

* Update authentication.php
2025-04-17 13:48:16 -06:00
Alex
6a9b93c51d Update dashboard background default settings (#7354)
* Update dashboard background default settings

* Update app_config.php

* Update app_config.php

* Update template.php

* Update app_config.php

* Update css.php
2025-04-17 09:39:00 -06:00
FusionPBX
c3952028b1 Use the settings get method for the buttons 2025-04-14 10:36:21 -06:00
FusionPBX
de10ea2a4a Use settings get method for list_row_edit_button 2025-04-14 09:36:05 -06:00