Commit Graph

315 Commits

Author SHA1 Message Date
frytimo fef8165be2
Frytimo pr patches for php8.1 (#6630)
* Passing null to parameter #2 ($string) of type string is deprecated

* Passing null to parameter #1 ($string) of type string is deprecated

* php 8.1 fixes

* php 8.1 fixes - replace strlen($var) > 0 with !empty($var)

* php 8.1 fixes - replace ${var} with {$var}

* php 8.1 fixes - replace ${var} with {$var}

* php 8.1 fixes - replace ${var} with {$var}

* php 8.1 fixes - replace ${var} with {$var}

* php 8.1 fixes - strlower with null

* php 8.1 fixes - strreplace with null

* php 8.1 fixes - passing null to base64_decode

* php 8.1 fixes - check for false and check for null on $this->dir

* php 8.1 fixes - remove assignment of $db variable to modules object

* php 8.1 fixes - avoid sending null to substr

* php 8.1 fixes - change ${var} to {$var}

* php 8.1 fixes - check for null before preg_replace

* php 8.1 fixes - remove setting db variable on domains object

* php 8.1 fixes - set empty string if $row['domain_setting_subcategory'] is null

* php 8.1 fixes - set empty string if $_REQUEST['show'] is not available

* php 8.1 fixes

* php 8.1 fixes - correct $_POST checking syntax

* php 8.1 fixes - correct $_POST variables

* php 8.1 fixes

* Use brackets consistently

* Update user_setting_edit.php

* Change to not empty

* Update device.php

* Update text.php

---------

Co-authored-by: Tim Fry <tim@voipstratus.com>
Co-authored-by: FusionPBX <markjcrane@gmail.com>
2023-05-05 10:46:37 -06:00
FusionPBX d8a45a5872
Add variable ${caller_id_name} 2023-03-09 18:39:58 -07:00
Alex 7326cb845a
Set default for enabled (#6556)
* Set default for enabled

* Update conference_profile_edit.php

* Update call_block_edit.php

* Update conference_control_edit.php

* Update conference_control_detail_edit.php

* Update conference_profile_edit.php

* Update conference_profile_param_edit.php

* Update conference_edit.php

* Update destination_edit.php

* Update device_edit.php

* Update device_profile_edit.php

* Update device_vendor_edit.php

* Update email_template_edit.php

* Update extension_edit.php

* Update module_edit.php

* Update phrase_edit.php

* Update ring_group_edit.php

* Update sip_profile_edit.php

* Update stream_edit.php

* Update time_condition_edit.php

* Update var_edit.php

* Update voicemail_edit.php

* Update call_block_edit.php

* Update default_setting_edit.php

* Update domain_setting_edit.php

* Update domain_edit.php

* Update user_edit.php

* Update bridge_edit.php

* Update sip_profile_edit.php

* Update sofia_global_setting_edit.php

* Update call_flow_edit.php

* Update email_template_edit.php

* Update call_flow_edit.php

* Update bridge_edit.php

* Update email_template_edit.php

* Update sip_profile_edit.php

* Update sofia_global_setting_edit.php

* Update bridge_edit.php

* Update call_flow_edit.php

* Update conference_control_edit.php

* Update sip_profile_edit.php

* Update stream_edit.php

* Update default_setting_edit.php

* Update email_template_edit.php

* Update extension_setting_edit.php

* Update default_setting_edit.php

* Update dashboard_edit.php

* Update dashboard_edit.php

* Update default_setting_edit.php
2023-02-17 14:21:41 -07:00
Alex a229d1e46c
Add enabled toggle to more pages and bug fix (#6552)
* Add enabled toggle to more pages and bug fix

* Add device profile enable toggle

* fixed enable on bridge_edit.php

* Fixed enable on call_block_edit.php

* Fixed enable on call_flow_edit.php

* Fixed enable on conference_center_edit.php

* Add conference room enabled toggle

* Fixed enable on conference_control_detail_edit.php

* Fixed enable on conference_control_edit.php

* Fixed enable on conference_profile_edit.php

* Add conference profile param enabled toggle

* Fixed enable on conference_edit.php

* Fixed enabled on device_edit.php

* Fixed enable on extension_edit.php

* Fixed enable on gateway_edit.php

* Fixed enable on number_translation_edit.php

* Fixed enable on phrase_edit.php

* Fixed enable on ring_group_edit.php

* Fixed enable on sip_profile_edit.php

* Fixed enable on stream_edit.php

* Fixed enable on time_condition_edit.php

* Fixed enable on var_edit.php

* Fixed enable on voicemail_edit.php

* Fixed enable on user_edit.php

* Fixed enable on user_setting_edit.php

* Update user_edit.php

* Update bridge_edit.php

* Update call_flow_edit.php

* Update conference_control_edit.php

* Update stream_edit.php

* Fixed enable on default_setting_edit.php

* Fixed enable on domain_edit.php

* Fixed enable on email_template_edit.php

* Fixed enable on module_edit.php
2023-02-14 11:19:02 -07:00
Alex 2acda5ea06
Add dashboard, device, extension, and gateway enabled toggle (#6548)
* Update system_counts.php

* Update call_forward.php

* Add dashboard widget enabled toggle

* Add device enabled toggle

* Add extension enabled toggle

* Add gateway enabled toggle

* Update extension_edit.php

* Update extension_edit.php

* Update device_edit.php

* Update gateway_edit.php
2023-02-10 11:14:43 -07:00
fusionate 46854d4025
Voicemail - Edit: Renenable Listen Link option in select, like Extension edit page. 2023-02-06 23:24:49 +00:00
fusionate 4b7bac9ba1
Extension - Edit: Remove extra line breaks. 2023-01-28 21:18:01 +00:00
demonspork 7e58f6d773
Fix edge case permissions problem with extension_advanced (#6512)
* Fix edge case permissions problem with extension_advanced
2022-12-31 11:57:41 -07:00
frytimo 4a8e148ccf
remove is_numeric check for voicemail id (#6484)
Co-authored-by: Tim Fry <tim@voipstratus.com>
2022-10-11 21:32:32 -06:00
markjcrane d50bcb476a Replace root.php 2022-10-10 16:35:14 -06:00
frytimo e88176c755
voicemail boxes can now be text or numeric (#6467) 2022-09-07 16:37:02 -06:00
FusionPBX 93c7714148
Add new permission voicemail_file (#6403)
* Add new permission voicemail_file

* Update app_config.php

* Update voicemail_edit.php
2022-06-01 10:48:33 -06:00
FusionPBX eee7786529
Remove some code redundancy. 2022-05-02 08:27:15 -06:00
FusionPBX 16b8d5e172
Update extension_edit.php 2022-05-02 08:17:53 -06:00
Joseph f080a39053
Fix voicemail transcriptions not being pushed (#6339)
* Fix voicemail transcriptions not being pushed

When creating a new extension, under the Voicemail tab, Transcribe is empty. This was causing users to not receive VM transcriptions. Adding the above code will push transcribe = true or false (depending on the value in default settings) after creating a new extension.
2022-05-02 08:06:21 -06:00
FusionPBX 8e530abb0d
Add voicemail_transcription_enabled to extension_edit.php (#6265)
* Rename permission to voicemail_transcription_enabled

* Update voicemail_edit.php

* Add voicemail_transcription_enabled

* Update app_languages.php

* Update voicemail_edit.php
2022-01-29 02:28:07 -07:00
FusionPBX e0e6a529ec
Only use the transcription_enabled_default on add. 2022-01-28 08:54:37 -07:00
FusionPBX 27540bb42c
Fix the display_name 2021-12-15 19:36:05 -07:00
FusionPBX a80a22f797
Default the device line label to the extension number 2021-12-15 15:06:13 -07:00
FusionPBX 2db571f2fc
Correct the name dislplay_label to label. 2021-12-15 15:02:17 -07:00
FusionPBX b2c8f976a7
Add line_label and line_display_name default settings. (#6195)
* Update app_config.php

* Add device line_label and line_dislplay_name.
2021-12-15 14:39:34 -07:00
FusionPBX 6782195989
Update extension_edit.php 2021-11-30 14:20:25 -07:00
FusionPBX 4dff27a076
When adding an extension make the voicemail directory. 2021-11-23 10:09:08 -07:00
FusionPBX 4f6c7f5d5e
Fix the path in the link. 2021-11-17 08:02:48 -07:00
demonspork 36cb791e0b
Add Permission to set Empty emergency Number (#5944)
* Add Permission to set empty emergency Number
2021-11-16 13:42:31 -07:00
FusionPBX 7a216743bc
Update path to app/call_forward previously app/calls. 2021-11-10 08:12:22 -07:00
FusionPBX 1df0ade6cd
Outbound caller id number - only allow numeric and + 2021-10-20 10:58:23 -06:00
FusionPBX 6d4196f537
If the device is on the local domain allow it and use its device_uuid. 2021-09-23 17:55:32 -06:00
FusionPBX 4b71467053
Add device duplicate check for extension edit. 2021-09-19 00:42:40 -06:00
markjcrane e429756307 Change error/user_busy to USER_BUSY 2021-09-18 23:26:21 -06:00
FusionPBX 221a88c673
Update extension_edit.php 2021-09-17 13:05:48 -06:00
FusionPBX 9145fbcfc4
When assiging an extension to a device make sure to use the server_address_primary, and server_address_secondary 2021-07-26 10:43:03 -06:00
FusionPBX d682ff01d1
Set device vendor
Get the device vendor from the template name if the template was provided otherwise use the get_vendor method using the MAC address
2021-07-23 11:56:19 -06:00
agree 64afa5df36
[extensions] outbound caller id select list remove duplicates (#5977) 2021-06-22 14:46:34 -06:00
agree 68d9e583ef
[extensions] Fix mwi_account field not emptying (#5978) 2021-06-22 14:41:54 -06:00
agree cf4f8d1e36 Add ability to set default accountcodes 2021-05-05 21:28:47 -04:00
agree 0c605dfd30
Update extension_edit.php 2021-04-11 10:36:45 -04:00
agree 5967dfbfaf Add max registrations per extension setting 2021-04-11 00:28:06 -04:00
agree 05befb3f99
Extension fix cache not clearing
The cache was broken for user users without the extension_user_context permission
2021-03-16 17:36:11 -04:00
FusionPBX 3b4cc55671
Move the extension settings button. 2021-02-10 00:42:08 -07:00
FusionPBX c3ee52596e
Change the permisison for the settings button. 2021-02-09 14:15:09 -07:00
fusionate 80c51cc2e2 Extension - Edit: Lookup extension on submit if extension_extension permission not assigned. 2021-01-22 12:12:29 -07:00
agree 4037331e4b
Extension add permission for extension field 2021-01-18 23:38:08 -05:00
demonspork 9cf580c512 Allow Setting Default transcription state
When creating a new extension/voicemail box it can have a global/domain default setting for whether to enable transcription.
`transcription_enabled_default` default setting that determines what status transcription should be for all new extensions/voicemails.
2021-01-06 13:16:19 -06:00
Luis Daniel Lucio Quiroz de021ec34c
Hide things that non-admin users shouldnt edit 2020-12-29 00:24:03 -05:00
FusionPBX dadea8d4c6
Merge pull request #5672 from demonspork/Destination-Emergency
Add Support for Validated Emergency Destinations/Caller ID
2020-12-24 10:31:44 -07:00
Luis Daniel Lucio Quiroz 5eb3eaa529
Update extension_edit.php 2020-12-13 20:18:02 -05:00
demonspork c3704c6172 Add Support for Validated Emergency Destinations/Caller ID
This adds emergency_caller_id_select permissions. and an "Emergency" checkbox to destinations. When emergency_caller_id_select permssion is added, the "Emergency Caller ID number" and name become a dropdown in the Extension and only show Destinations that have the "Emergency" checkbox selected to indicate they are valid for emergency calls.
2020-12-11 18:24:14 -06:00
fusionate c67c8cd4c2 Destination Select - Dynamic: Clear session array on add/toggle/delete of a destination type record. 2020-11-30 14:15:57 -07:00
agree 139461cf2e
Update extension_edit.php 2020-11-03 16:31:40 -05:00