60 Commits

Author SHA1 Message Date
volga629-1
807c6e2f46 Fix the vars.xml path by adding a missing forward slash (#7658)
* Vars table v_vars is not propagate table data

Path 

```
$xml_file = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'app/switch/resources/conf/vars.xml';
```

Will expand too 

```
/usr/share/nginx/fusionpbxapp/switch/resources/conf/vars.xml
```

This causes a failure to provision data into v_vars table for installs with a customized path.
2025-12-08 07:50:01 -07:00
FusionPBX
76e2e7d3b7 Remove database app_name and app_uuid (#7562)
- Remove database app_name, app_uuid
  - This is handled automatically by the database class
- Remove redundant database::new()
2025-10-09 17:54:05 -06:00
FusionPBX
7f9064fadb Update boolean toggle and the database boolean type (#7522)
* Change the data type to boolean

* Use boolean values in SQL and Conditional Statements

* Schema Data Types: Drop views so that alter tables statements complete

* Update settings.php

* Add extension for call_screen_enabled

* Gateway handle boolean
Add the boolean toggle
- distinct_to
- caller_id_in_from
- supress_cng
- extension_in_contact
- contact_in_ping

* Update gateways.php

* Update voicemail_edit.php

* Replace the ${caller_id_name} with the extensions caller id name

* Phrase - Edit: Update slide toggle with new select beneath.

* Update the input toggle style

* Set the input_toggle_style_switch as boolean

* Update the input toggle style

* Theme: Adjust CSS to wrap description text on form fields.

* Add domain_uuid and domain_name to the SQL SELECT

* Unset the parameters to fix the next query

* Gateway: Integrate new slide toggle switch.

* Dashboard: Update the input toggle style (#7499)

* Dashboard: Update the input toggle style

* Update dashboard_widget_edit.php

* Update dashboard_edit.php

* Inbound Route - Add: Integrate new slide toggle switch and boolean.

* User Settings: Integrate new slide toggle switch.

* Call Block Edit: Update the input toggle style (#7500)

* Bridge Edit: Update the input toggle style (#7501)

* Update phrases.php

* Update domain_edit.php

* Domain Settings Edit: Update the input toggle style

* User Edit: Update the input toggle style

* Update install.php

* Remove fields marked as deprecated

* Use boolean in the select statement

* Streams: New slide toggle and boolean.

* Streams: Remove unnecessary default.

* Queues (FIFO): New slide toggle.

* Call Detail Records: Update the input toggle style (#7503)

* Call Detail Records: Update the input toggle style

* Update xml_cdr_extension_summary.php

* Update xml_cdr_extension_summary.php

* Update xml_cdr_extension_summary.php

* Call Centers: Update the input toggle style (#7502)

* Call Centers: Update the input toggle style

* Update call_center_agent_edit.php

* Conference Centers: Update the input toggle style (#7506)

* Conference Centers: Update the input toggle style

* Update app_config.php

* Update conference_center_edit.php

* Use boolean data type (#7505)

* Call Flow Edit: Update the input toggle style (#7504)

* Devices: Update the input toggle style

* IVR Menus: New slide toggle.

* IVR Menu: Remove deprected file.

* SIP Profile - Edit: New slide toggle.

* Device Profiles: Update the input toggle style

* Ring Groups - List: Fix syntax.

* Theme: Fire onchange event when switching slide toggle control.

* Device Vendors: Update the input toggle style

* Update enabled boolean

* Update device_edit.php

* Ring Groups: New slide toggle.

* Update domain_edit.php

* Email Templates: Update the input toggle style

* Header: Correct default value on input toggle style.

* Default/Domain/User Settings: Adjust Select option label for better clarity.

* Use true boolean types for switch theme toggle or drop-down box (#7507)

* Groups: Update the input toggle style

* Conference Controls: Update the input toggle style (#7509)

* Conference Controls: Update the input toggle style

* Update conference_control_edit.php

* Update conference_control_details.php

* Update conference_control_detail_edit.php

* Conferences: Update the input toggle style (#7511)

* Use true boolean types for switch theme toggle or drop-down box (#7513)

* Dialplans: Update the input toggle style
Also updated outbound route add

* Ring Group: Only adjust ring group forward destination top margin when slide toggle enabled.

* Default/Domain/User Settings - List: Adjust for new 'Select Box' label on input_toggle_style value.

* Use true boolean types for switch theme toggle or drop-down box (#7514)

* Call Forward / Follow Me: Minor javascript adjustments to mirror previous behavior.

* Ring Groups [Dashboard]: New slide toggle.

* Get the contacts details with a seperate SQL Query

* Remove debug info

* Destinations: Update the input toggle style

* Conference Profiles: Update the input toggle style (#7515)

* Conference Profiles: Update the input toggle style

* Update conference_profiles.php

* Update conference_profile_params.php

* Update conference_profile_param_edit.php

* Update conference_profile_edit.php

* Extensions: Update the input toggle style

* Contacts: Update the input toggle style (#7517)

* Contacts: Update the input toggle style

* Update contact_address_edit.php

* Update contact_attachment_edit.php

* Update contact_edit.php

* Update contact_email_edit.php

* Update contact_phone_edit.php

* Update contact_relation_edit.php

* Update contact_setting_edit.php

* Update contact_url_edit.php

* Update contacts.php

* Voicemails: New slide toggle.

* Voicemail Greeting: New slide toggle.

* Modules: New slide toggle.

* Recordings: New slide toggle

* Variables: New slide toggle.

* Time Conditions: New slide toggle.

* Extensions - List: Remove invalid column name.

* Extension Settings: New slide toggle.

* Number Translations: New slide toggle and boolean.

* Sofia global settings: Update the input toggle style

* Update alter table convert to boolean

* Fix contact relation search (#7518)

* Sip Profile Edit: Fix setting enabled labels (#7519)

* Sip Profile Edit: Fix setting enabled labels

* Update sip_profile_edit.php

* Update dialplan_edit.php (#7520)

* Update SQL queries to use true/false for contact primary settings (#7521)

* Update SQL queries to use true/false for contact primary settings

* Update contacts_vcard.php

* Update email.php

* Update totp.php

* Update contact_url_edit.php

* Update contact_email_edit.php

* Update contact_address_edit.php

* Update contact_attachment_edit.php

* Update contact_phone_edit.php

* Add a database views method

* Add database view groups

* Add database users view

* Add database call_recordings view

* Update users.php

* Add  database view call block

* Update schema to use the database views method

* Update conference.conf.lua boolean

* Update directory.lua boolean

* Update callcenter.conf.lua agent_status boolean

* Update sofia.conf.lua boolean

* Update number translations lua boolean

* Update directory.lua boolean

* Update group_call.lua fix the cache

* Update reverse-auth-lookup.lua boolean

* Update directory.lua boolean

* Use concat instead of ||

* Update index.lua

---------

Co-authored-by: fusionate <nate@fusionpbx.com>
Co-authored-by: Alex <alex@fusionpbx.com>
Co-authored-by: frytimo <tim@fusionpbx.com>
2025-09-20 18:42:05 -06:00
FusionPBX
cd8d5302ac Fix temporary permissions 2024-11-29 13:57:01 -07:00
frytimo
7630056bb8 Remove the unset($database) statements (#7084)
* Remove the unset($database) statements
The database object is a global variable that contains a database object reference and should not be unset.

* Update event_guard.php

* Update event_guard.php

* Update event_guard.php

---------

Co-authored-by: Tim Fry <tim@fusionpbx.com>
Co-authored-by: FusionPBX <markjcrane@gmail.com>
2024-08-06 13:19:45 -06:00
FusionPBX
b05c0534b4 Send the database object into the function 2024-08-05 16:56:51 -06:00
FusionPBX
dbe37f275b Update app_defaults.php 2024-08-05 15:55:08 -06:00
FusionPBX
cd1cc70044 Remove redundant database objects
This reduces database connections and improves performance.
2024-08-05 14:22:17 -06:00
FusionPBX
c6d966395e Use settings class for app_defaults.php 2023-09-16 00:22:12 -06:00
FusionPBX
39c81b60c4 Update the path to the conf directory 2023-06-26 10:02:14 -06:00
markjcrane
6e1cfb0354 The db handle is no longer needed for this function 2023-06-24 09:37:42 -06:00
markjcrane
56068684ff Convert base64 description in vars to text 2023-05-27 13:30:07 -06:00
markjcrane
6d7e125743 Fix all PHP 8.1 messages for upgrade.php 2023-05-17 10:07:49 -06:00
Luis Daniel Lucio Quiroz
945ff01553 Update app_defaults.php (#6577) 2023-03-24 20:07:16 -06:00
FusionPBX
ed107606d3 Deprecated no longer needed. 2022-09-22 11:38:39 -06:00
FusionPBX
67be72b452 Database save method set to false. (#6215)
* When database save set to false for app_defaults.php
2021-12-24 12:42:16 -07:00
Nate
c660b27096 Misc: Database class integration. 2019-08-28 21:02:08 -06:00
Nate
318bfc61f2 Variables: Database class integration. 2019-08-14 13:38:18 -06:00
FusionPBX
468740c72d Update app_defaults.php 2018-03-25 11:47:32 -06:00
FusionPBX
fce633265d Update app_defaults.php 2018-03-25 11:43:25 -06:00
FusionPBX
1a51c3855c Update app_defaults.php 2017-07-09 23:52:34 -06:00
FusionPBX
721549f4c1 Update app_defaults.php
Fix a sql error for ringtones.
2017-01-05 02:10:26 -07:00
FusionPBX
05abcac517 Update app_defaults.php
Change the cert directory from ssl to tls to match what FreeSWITCH is using by default.
2016-10-14 09:18:42 -06:00
Mafoo
097a09536e Enhance Add Tones (#1857)
Add tone support
2016-09-03 20:32:19 -06:00
Mafoo
1c983a69a0 BugFix-Vars (#1818)
corrected the system default us-ring category to 'Ringtones'
remove var_name like as var_cat now takes care of this
2016-08-25 11:12:00 -06:00
Mafoo
a3e4a1d2a7 Enhance-Import rintones from vars.xml (#1813)
move ringtones to thier own category
import ringtones from vars.xml
2016-08-16 08:49:45 -06:00
markjcrane
102120d55e Prevent duplicate values from being saved in the vars.xml file and remove some trailing spaces and fix some of the indentation. 2016-06-01 15:31:33 -06:00
FusionPBX
0cca642562 Update app_defaults.php
Move the if ($domains_processed == 1) { so none of the code is processed more than one time.
2016-05-10 12:56:33 -06:00
FusionPBX
8220f74cc5 Update app_defaults.php
Add media_mix_inbound_outbound_codecs to true by default.
2016-05-10 12:46:03 -06:00
markjcrane
097a5d8ade Check the missing array has content before processing it. 2016-05-04 00:22:35 -06:00
mafoo
6eed9935d4 WhitespaceClean-app/batch_2
whitespace pass over files
for reference regex that was used s/[ \t]+(\r?\n)/\1/
2016-03-11 12:01:24 +00:00
Matthew Vale
18c7a500b7 Bugfix 2015-11-19 14:57:47 +00:00
Matthew Vale
850a1af0c0 Added more ringer types
corrected reference to ssl dir to use $conf_dir
moved countries list out to its own file so it can be maintained easier
(and used by other apps)
2015-11-19 14:54:04 +00:00
markjcrane
fda7add887 Remove trailing spaces and adjust the vertical spacing. 2015-07-08 09:30:00 -03:00
Mark Crane
674b52e74b Change the domain to the $${local_ip_v4} 2014-12-10 05:12:12 +00:00
Riccardo Granchi
2cf20d8f7a Engineered the management of bridge failures in local extension, with optional variables which by default provides the standard behavior. Changed the default order for extension_queue, which has *800 prefix, before the extension-intercom, which has the *8 prefix 2014-11-21 15:38:26 +00:00
Riccardo Granchi
48d08f4685 Fixed set_country_vars() duplicate declaration issue during domain creation 2014-11-07 15:21:34 +00:00
Riccardo Granchi
1ac8d1c7fc Possibilty to select a country in installation phase to set default country code variables 2014-11-07 10:22:56 +00:00
Riccardo Granchi
3c43f604c5 Added it-ring definition 2014-11-03 11:16:10 +00:00
Nate Jones
1920209c1c Variables: Added record_ext variable to set recording file type (wav, mp3). 2014-09-09 05:32:04 +00:00
Mark Crane
d742f190f1 Fix and move the format_phone array 2014-08-31 00:57:58 +00:00
Mark Crane
7d366185c7 Fix system -> variables if you did a recent install and the variables page has 2 items on it delete them, update the source, run upgrade -> app defaults to get the defaults 2014-08-15 18:44:40 +00:00
Nate Jones
6cba0ed247 Variables: Set default 'domain' variable value on install (corrected according to heredoc syntax for variables). 2014-08-15 05:41:36 +00:00
Nate Jones
6fe379aab3 Variables: Set default 'domain' variable value on install. 2014-08-15 04:54:16 +00:00
Richard Neese
d90a05d417 fixed the path correctly rm /sounds 2014-08-12 13:52:46 +00:00
Mark Crane
e1a5ec4575 Fix the sound_prefix path 2014-08-12 04:27:55 +00:00
Mark Crane
5e0d82c06d Unset the prepared statements used in the app_defaults.php files. 2014-07-23 22:00:03 +00:00
Nuno Miguel Reis
05e3a61ac4 pt-ring 2014-01-21 18:03:05 +00:00
Mark Crane
af0eed8d32 When using the install or upgrade save vars.xml file. 2013-04-28 07:28:04 +00:00
Mark Crane
3d963d8a37 Change local_stream://moh to local_stream://default. 2013-03-25 21:23:31 +00:00