Commit Graph

7699 Commits

Author SHA1 Message Date
Alex f86abd84c4
Fixed call recording download and call center show all (#6745) 2023-06-06 10:14:15 -06:00
FusionPBX f5f3ef680e
Set session variables from default settings switch category 2023-06-03 13:43:37 -06:00
FusionPBX bc43f696ca
Bug fixed unset the cidr variable 2023-06-03 10:19:42 -06:00
Alex 42ecba0214
voicemail edit, log viewer, and sip status php 8.1 changes (#6738)
* Update voicemail_edit.php

* Update sip_status.php

* Update message.php

* Update log_viewer.php

* Update log_viewer.php

* Update sip_status.php
2023-06-02 14:53:23 -06:00
fusionate c8e8c5acd7
Functions: Update format_phone() function for PHP 8.1 2023-06-01 23:22:39 +00:00
fusionate 85f378c8f2
Switch [Resources]: Update outbound_route_to_bridge() function for PHP 8.1 2023-06-01 22:54:50 +00:00
fusionate 8ca359a5f1
TCPDF: Update for PHP 8.1 2023-06-01 22:53:58 +00:00
Alex d6b73cf296
more php 8.1 changes (#6734)
* Update ivr_menu_edit.php

* Update ringbacks.php

* Update call_block_edit.php

* Update call_broadcast.php

* Update call_broadcast_edit.php

* Update call_center_queue_edit.php

* Update call_center_queue_edit.php

* Update call_center_agent_status.php

* Update call_center_queue_edit.php

* Update call_center_agent_edit.php

* Update call_center_queues.php

* Update call_flow_edit.php

* Update call_broadcast.php

* Update call_forward.php

* Update call_broadcast_send.php

* Update conference_rooms.php

* Update conference_centers.php

* Update conference_control_edit.php

* Update conference_control_details.php

* Update conference_profile_edit.php

* Update conference_profile_param_edit.php

* Update conference_profile_edit.php

* Update database_transaction_edit.php

* Update database_transactions.php
2023-06-01 16:39:05 -06:00
Alex 9df57e679d
contacts php 8.1 changes (#6730)
* Update contacts_vcard.php

* Update vcard.php

* Update contact_edit.php

* Update contact_view.php

* Update contact_phone_edit.php

* Update contact_address_edit.php

* Update contact_addresses.php

* Update contact_addresses_view.php

* Update contact_attachment.php

* Update contact_attachment_edit.php

* Update contact_attachments.php

* Update contact_attachments_view.php

* Update contact_email_edit.php

* Update contact_emails.php

* Update contact_emails_view.php

* Update contact_extensions.php

* Update contact_extensions_view.php

* Update contact_import.php

* Update contact_import_google.php

* Update contact_json.php

* Update contact_note_edit.php

* Update contact_notes.php

* Update contact_notes_view.php

* Update contact_phones.php

* Update contact_phones_view.php

* Update contact_relation_edit.php

* Update contact_emails_view.php

* Update contact_addresses_view.php

* Update contact_relations.php

* Update contact_relations_view.php

* Update contact_setting_edit.php

* Update contact_settings.php

* Update contact_time_edit.php

* Update contact_timer.php

* Update contact_timer_inc.php

* Update contact_times.php

* Update contact_url_edit.php

* Update contact_urls.php

* Update contact_urls_view.php

* Update contact_import.php

* Update contact_import.php

* Update contact_email_edit.php

* Update contact_url_edit.php

* Update contact_relation_edit.php

* Update contact_note_edit.php

* Update contact_setting_edit.php

* Update contact_attachment_edit.php

* Update contact_edit.php

* Update contact_phones_view.php

* Update contact_note_edit.php

* Update contact_attachment_edit.php

* Update contact_phones_view.php

* Update contact_edit.php

* Update contacts.php

* Update contact_edit.php

* Update contact_edit.php

* Update contact_edit.php

* Update contact_edit.php

* Update contact_edit.php

* Update contact_phone_edit.php

* Update contact_addresses.php

* Update contact_addresses_view.php

* Update contact_attachment_edit.php

* Update contact_attachments.php

* Update contact_attachments_view.php

* Update contact_edit.php

* Update contact_email_edit.php

* Update contact_emails.php

* Update contact_emails_view.php

* Update contact_extensions.php

* Update contact_extensions_view.php

* Update contact_import.php

* Update contact_import_google.php

* Update contact_json.php

* Update contact_note_edit.php

* Update contact_notes.php

* Update contact_notes_view.php

* Update contact_phone_edit.php

* Update contact_phones.php

* Update contact_phones_view.php

* Update contact_relations.php

* Update contact_relations_view.php

* Update contact_setting_edit.php

* Update contact_settings.php

* Update contact_time_edit.php

* Update contact_timer.php

* Update contact_timer_inc.php

* Update contact_times.php

* Update contact_url_edit.php

* Update contact_urls.php

* Update contact_urls_view.php

* Update contact_view.php

* Update contacts.php

* Update contacts_vcard.php
2023-06-01 11:50:12 -06:00
Anthony f0598117ab
Fixed Errors for Streams & Ring Groups (#6728)
* Fixed Errors streams.php

* Update streams.php

* Update stream_edit.php

* Update ring_groups.php

* Update tones.php

* Update ringbacks.php

* Update ring_group_edit.php
2023-05-31 11:00:55 -06:00
fusionate eb45bc2de0
Switch - outbound_route_to_bridge(): Updates for PHP 8.1 2023-05-29 22:44:03 +00:00
fusionate f444f651e5
TCPDF: Updates for PHP 8.1 2023-05-29 22:23:40 +00:00
fusionate b1cf7d7e1d
Functions - format_hours(): Adjust minute formatting. 2023-05-29 19:12:11 +00:00
markjcrane c679165016 Menu: PHP 8.1 updates 2023-05-27 12:00:02 -06:00
fusionate 0ca497643c
Email [Class]: Updates for PHP 8.1 2023-05-27 03:36:58 +00:00
FusionPBX 7979ff145b
Use $this->message
Reason for using this message rather than local message variable is that it get changed and the information we want is preserved in the class variable.
2023-05-26 09:55:18 -06:00
markjcrane 55e506ff99 Update save_setting_xml 2023-05-26 09:03:26 -06:00
markjcrane d964f354db Fix PHP 8.1 warnings 2023-05-25 10:15:56 -06:00
fusionate 6119f7de7d
Database [Class]: Update for PHP 8.1 2023-05-25 15:40:20 +00:00
markjcrane 251feddff8 Return this->message variable as array. 2023-05-24 23:00:08 -06:00
fusionate 2cf6e79c2e
Merge branch 'master' of https://github.com/fusionpbx/fusionpbx 2023-05-23 18:38:57 +00:00
markjcrane 2608f1ffad Return immediately if switch conf dir is empty 2023-05-23 08:22:23 -06:00
markjcrane dbb3e90ace Add smarty modifer in_array 2023-05-22 21:50:15 -06:00
markjcrane 3311363c27 Rename public_mode to grandstream_public_mode. 2023-05-22 21:08:18 -06:00
fusionate dfdcba5a0c
Database [Class]: Update for PHP 8.1 2023-05-23 02:42:19 +00:00
fusionate 18f9c7a26f
Functions: Update for PHP 8.1 2023-05-22 23:06:07 +00:00
markjcrane 7ee2b7c4b3 Add parentheses to empty string detection 2023-05-22 16:26:01 -06:00
markjcrane a419fa985b Use isset when empty as it could be numeric. 2023-05-22 16:16:58 -06:00
markjcrane c045bb4705 Add a new fax user group 2023-05-22 10:45:01 -06:00
FusionPBX 54ce2b15c8
field name is singular domain_name 2023-05-21 17:13:11 -06:00
FusionPBX 044932163c
After removing natsort add order by domain name 2023-05-21 17:10:43 -06:00
FusionPBX efc332aba7
[Bug FIX] Default Setings fix syntax to get the correct values switch settings. 2023-05-21 15:47:59 -06:00
fusionate 67e77560a6
Database [Class]: Updates for PHP 8.1 2023-05-21 01:13:45 +00:00
fusionate 878e83fc80
Database [Class]: Updates for PHP 8.1 2023-05-20 23:57:07 +00:00
FusionPBX 6fc9312331
Deprecated natsort
One customer 3 domains were missing and after removing this the all domains showed up in the list. Also no longer needed as the front end for the domain list.
2023-05-19 19:07:56 -06:00
Finn 75fff1c33a
add template variables to override DTMF method on certain grandstream devices (#6709) 2023-05-19 17:32:20 -06:00
FusionPBX 25fdc12f18
Strict identical condition required
Otherwise this condition matches a numeric value of 0.
2023-05-19 15:29:38 -06:00
Alex c6bf3f50f4
Fix translations (#6704)
* Update app_languages.php
2023-05-19 13:54:10 -06:00
FusionPBX 778b5832be
database save method returns result details 2023-05-18 16:29:03 -06:00
markjcrane 0dec70827d Change approach for handling the user_uuid 2023-05-18 00:49:20 -06:00
fusionate 1618c84e07
Database [Class]: Fix typo. 2023-05-17 20:36:48 +00:00
fusionate c42fd0abdc
Menu [Class]: Updates for PHP 8.1 2023-05-17 20:36:14 +00:00
markjcrane 3fc342ad3e prevent an error using trim on a value that could a string or an array 2023-05-17 13:38:17 -06:00
markjcrane 6d7e125743 Fix all PHP 8.1 messages for upgrade.php 2023-05-17 10:07:49 -06:00
fusionate 3487b8ae53
persistformvar [Function]: Updates for PHP 8.1 2023-05-17 07:02:02 +00:00
fusionate d853209c3f
Token [Class]: Update for PHP 8.1 2023-05-17 07:00:45 +00:00
markjcrane 2afda399e6 IVR Menu code changes for PHP 8.1 2023-05-16 22:55:19 -06:00
fusionate c827f6bf21
Message [Class] - Fix bug with messages set by static add method. 2023-05-16 21:00:43 +00:00
fusionate fac4b6bcd0
Token [Class] - Updates for PHP 8.1 2023-05-16 18:54:45 +00:00
fusionate bc34789bdc
Permission [Class] - Updates for PHP 8.1 2023-05-16 18:54:27 +00:00
fusionate f7951324ea
Domains [Class] - Updates for PHP 8.1 2023-05-16 18:42:32 +00:00
fusionate 7d37d7a521
Require - Updates for PHP 8.1 2023-05-16 18:39:41 +00:00
fusionate 8482b6eb46
Footer - Updates for PHP 8.1 2023-05-16 18:39:29 +00:00
markjcrane 3cf0334686 Check if the sounds directory exists 2023-05-16 00:36:27 -06:00
markjcrane 74b3ce154c Update file.php minor code improvements 2023-05-15 23:17:37 -06:00
markjcrane 78bb6ec80c Fix PHP 8.1 ringback errors 2023-05-15 22:53:00 -06:00
FusionPBX 64c159931c
Update database.php strlen replace with isset
Used isset instead of empty because empty treats a numeric value of 0 as empty.
2023-05-13 22:13:40 -06:00
FusionPBX 67e2d731b5
Update persist_form_var.php 2023-05-13 20:39:46 -06:00
FusionPBX 5755ae3f48
Update schema.php for PHP 8.1 2023-05-13 17:31:27 -06:00
FusionPBX ab2bd0ef5e
Update footer.php use the empty function 2023-05-13 17:20:17 -06:00
FusionPBX 7a8b2b7d79
Update database.php prevent more php 8.1 warnings. 2023-05-13 12:35:17 -06:00
fusionate adfdb7bae5
Functions: Updates for PHP 8.1 2023-05-13 04:53:18 +00:00
fusionate 196125952b
Message [Class]: Updates for PHP 8.1 2023-05-13 04:52:43 +00:00
FusionPBX ff2c52eda8
Update domains.php 2023-05-12 20:32:44 -06:00
FusionPBX 44a46d491b
Use !empty in the if statement 2023-05-12 20:24:39 -06:00
FusionPBX 5c34c991cf
Update pdo.php 2023-05-12 18:34:54 -06:00
FusionPBX a2bb8e5f90
Limit subquery to one result
This prevent a cardinality error.
2023-05-12 16:22:50 -06:00
FusionPBX 4f60390b34
Check if the tables_exists 2023-05-11 22:33:08 -06:00
fusionate 733b206664
Functions: Updates for PHP 8.1 2023-05-12 00:45:09 +00:00
FusionPBX 442147391c
Change the and to an or and add an isset 2023-05-10 22:11:01 -06:00
FusionPBX b86cd20e8e
Use isset instead of is_uuid 2023-05-10 22:01:12 -06:00
frytimo 872e676f59
Fix missing php tags (#6687)
* fix missing php tags

* fix missing php tags
2023-05-10 18:19:57 -06:00
fusionate e7b72de33c
Modal [Class]: Updates for PHP 8.1 2023-05-10 22:59:12 +00:00
fusionate 6d4463a5b7
Auto Loader [Class]: Updates for PHP 8.1 2023-05-10 22:39:48 +00:00
fusionate 4de76b44f2
Auto Loader [Class]: Updates for PHP 8.1 2023-05-10 22:37:47 +00:00
fusionate 8021a71647
Menu [Class]: Updates for PHP 8.1 2023-05-10 22:17:19 +00:00
fusionate 43961ec6f2
Message [Class]: Update for PHP 8.1 2023-05-10 22:02:13 +00:00
fusionate bac9c83f33
Modal [Class]: Update for PHP 8.1 2023-05-10 21:58:51 +00:00
fusionate 46ff8cb278
Message [Class]: Update for PHP 8.1 2023-05-10 21:58:37 +00:00
FusionPBX 2d3f623174
Update for PHP 8.1 2023-05-09 18:50:06 -06:00
FusionPBX c57fa0fc39
Update for PHP 8.1 2023-05-09 18:39:24 -06:00
FusionPBX 32672b7472
Update for PHP 8.1 2023-05-09 17:11:55 -06:00
FusionPBX 821720db1d
Update for PHP 8.1 2023-05-09 17:06:19 -06:00
fusionate 5f2a3fde90
Button [Class]: Update for PHP 8.1 2023-05-09 22:52:04 +00:00
FusionPBX b732c0afe9
[Bug] value of 0 treated as empty
When empty is used its treating 0 as an empty value and then the value is set to null.  Will work on the changes further to prevent this problem.
2023-05-09 11:14:41 -06:00
FusionPBX bc0c2ea588
$db variable needed by schema class 2023-05-09 08:39:42 -06:00
FusionPBX 89af27e94e
Update button.php 2023-05-08 23:03:00 -06:00
FusionPBX 9e4e8558e5
Remove debug 2023-05-08 22:30:39 -06:00
FusionPBX fd0615587e
Update require.php 2023-05-08 19:02:58 -06:00
FusionPBX 0413b998e8
Ensure PROJECT_ROOT is defined 2023-05-08 18:50:32 -06:00
FusionPBX edb12399ce
Add not empty debug 2023-05-08 17:21:52 -06:00
FusionPBX 26e3a0881d
Error reporting for user hide deprecated 2023-05-08 15:07:59 -06:00
markjcrane 423606631b Update version of smarty to 4.3.1 2023-05-08 09:50:42 -06:00
fusionate 8ddbe07d3d
PDO: Fix PHP 8.x issue on explode function. 2023-05-08 13:21:10 +00:00
Anthony e37b930b07
Update app_languages.php (#6666) 2023-05-05 15:21:50 -06:00
FusionPBX 0038395009
If numeric then don't need to escape
Numeric should be safe as a pass thru.
2023-05-05 13:23:44 -06:00
FusionPBX b40005c11e
Account for numbers 2023-05-05 13:18:15 -06:00
jonathanblack1000 0f3b212586
Fix sort on call broadcast display (#6663)
* Fix sort on call broadcast display

* Grandstream Template Updates

For grp/gxp, added settings for intercom auto answer and multicast paging
For gxw42xx - Added off-hook auto-dial settings to all lines
For wp820 - Fixed incorrect P-codes and added setings for wifi roaming
Contributed new template for gxv3480
2023-05-05 11:23:41 -06:00
fusionate f29a78a6af
Functions: Adjust escape function to handle non-strings (XML objects). 2023-05-05 17:00:39 +00:00
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 ebbb2f1a72
Add additional languages 2023-05-03 22:50:18 -06:00
frytimo 37646c0893
Frytimo pr remove unused variables and fix clobbering (#6656)
* config->exists returns true or false but no action taken and variable
is unused

* remove unused variable db_type

* remove unused variable db_name

* remove unused variable db_username

* remove unused variable db_password

* remove unused variable db_secure

* remove unused variable db_cert_authority

* remove unused variable db_host

* remove unused variable db_path

* remove unused variable db_port

* remove unused variable db. The upgrade method never uses the db variable
and instead uses a new database connection each time.

* remove uninitialized parameters variable

* domain_count never used

* variable context is never used in the method or any app_defaults

* variable $row is clobbered by inner foreach loop

* variable domain_name is never used in method scope

* variable domain_array seems to be uninitialized in this scope so set an
empty string value so function lower_case is not receiving null.
2023-05-03 14:41:39 -06:00
FusionPBX 0bb2443dc0
Add Asia/Tel_Aviv and Asia/Jerusalem to IDT-3 2023-04-30 15:41:59 -06:00
FusionPBX 4c0f1ce46f
Update Asia/Jerusalem from IDDT to IDT 2023-04-30 15:15:39 -06:00
Krushali Shah 1f302c903f
enable/disable codec settings for all accounts (#6628)
The template for codec enable settings was taking a value as 1 if it was set in the settings. It was not taking the actual value inside it. So I have edited the templates to check the value if it's set to true.
2023-04-29 20:32:04 -06:00
Anthony 610edaae60
Update app_languages.php (#6640) 2023-04-29 18:26:50 -06:00
frytimo 69bd42af05
remove unneeded destruct methods as GC has higher performance (#6631)
Co-authored-by: Tim Fry <tim@voipstratus.com>
2023-04-27 20:18:53 -06:00
Finn ae7c57eb45
Add support for XMLApp to grp2615 provisioning template (#6623)
Co-authored-by: Finn <finn@acceleratenetworks.com>
2023-04-26 20:44:09 -06:00
FusionPBX 019ca725d8
Remove the seed for srand it is done automatically 2023-04-26 13:40:05 -06:00
FusionPBX b4ccdd244b
[bug] error reporting options user, dev, all (#6616)
An enhancement that adds simple options to show what errors to show in the web interface. This also fixes a bug that causes an error in PHP8.
2023-04-26 11:19:45 -06:00
FusionPBX 9800311adb
Add a more flexible footer value 2023-04-25 01:25:59 -06:00
Mendel 2edfb9a0c2
Update Yealink variables w70b (#6615)
* Update {$mac}.cfg
2023-04-24 21:04:37 -06:00
FusionPBX 1b025e0aa2
Update class name FixedBitNotation to base2n 2023-04-23 02:31:44 -06:00
FusionPBX 3c2c1f01f2
Add setup, disable and hide 2023-04-23 01:43:15 -06:00
FusionPBX 1058c1bc87
Add google_authenticator PHP class
This class is licensed under Apache version 2.0
2023-04-23 01:11:52 -06:00
FusionPBX 869a1e1350
Create base2n.php
Add an MIT binary to text PHP class
2023-04-23 01:05:46 -06:00
fusionate 18225f82f2
Email Class: Fix typo that effects embedded base64 image attachments. 2023-04-20 01:33:22 +00:00
Norman King 30db2c5a6b
remove incorrect whitespace for line_3_hanging_group_mode var (#6612) 2023-04-18 15:40:35 -06:00
Antonio Fernandez 6a556e55ad
Fixing Yealink T46s codecs in template (#6611) 2023-04-17 11:13:07 -06:00
markjcrane 00801b5b04 Add mutli-factor authentication. 2023-04-16 01:10:39 -06:00
fusionate 19e58af546
Email Queue Attachments - Add CID and Mime Type fields. 2023-04-12 20:06:41 +00:00
FusionPBX 00364f318c
Create MN_Generic.cfg 2023-04-11 09:39:20 -06:00
FusionPBX 064bf7204a
Update MN_{$mac}.cfg 2023-04-11 09:38:16 -06:00
FusionPBX 67f3bc6808
Add Mitel 5330e 2023-04-11 09:38:04 -06:00
FusionPBX 81f3bdffc9
snom_dialtone_on_hold default to false 2023-04-11 09:34:46 -06:00
FusionPBX 5eca8b1ade
snom_dialtone_on_hold default to false 2023-04-11 09:33:23 -06:00
FusionPBX b6012976fb
Allow an empty ringback value 2023-04-07 12:36:20 -06:00
fusionate 36a4768917
MOH: Move None option to Others option group. 2023-04-05 00:39:00 +00:00
FusionPBX 408122c60c
Add subtype to vendor functions and device keys. (#6409)
* Add subtype to vendor functions and device keys.

Added to support phones that require a subtype for provisioning the phone.

* Add device_key_subtype

* Update device_edit.php

* Update device_profile_edit.php

* Update device_vendor_edit.php

* Update device_vendor_function_edit.php

* Update device_vendor_functions.php

* Update device_vendor_restore.php

* Update index.php

* Update provision.php

* Update app_languages.php

* Update app_config.php
2023-04-04 08:57:41 -06:00
Antonio Fernandez de08aa6a1d
Added support for secondary outbound proxy on Snom D series phones. (#6603) 2023-04-03 20:58:36 -06:00
David Jacob f0c1ebd3a1
Provisioning template changes (#6588)
* Provisioning template changes

Grandstream
GAC2500 - Added account sip port to grandstream template after account server name
GRP2612 - Added Variable for grandstream dial timeout
GRP2612 - Added Variable for grandstream lock volume
GRP2612w - Added Variable for grandstream dial timeout
GRP2612w - Added Variable for grandstream lock volume
GRP2613 - Added Variable for grandstream lock volume
GRP2614 - Added Variable for grandstream dial timeout
GRP2614 - Added Variable for grandstream lock volume
GRP2614 - Added Variable for granstream call popup enabled
GRP2615 - Added Variable for grandstream dial timeout
GRP2615 - Added Variable for grandstream lock volume
GRP2616 - Added Variable for grandstream lock volume
GRP26xx - Added Variable for grandstream lock volume
GXP2160 - Changed template to default enable options keepalive
GXP2160 - Added option for multicast listen address with "if isset" for variable on P1569
GXP2160 - Added Variable for grandstream lock volume
GXP2160 - added variable grandstream_weather_enable to enable/disable weather function in phones
GXP2170 - Added Variable for grandstream dial timeout
GXP2170 - Added Variable for grandstream lock volume
GXP2170 - Added Variable for grandstream stun server
GXP2170 - Added Variable for granstream call popup enabled
GXP2170 - Added option for multicast listen address with "if isset" for variable on P1569
GXP2170 - added variable grandstream_weather_enable to enable/disable weather function in phones
GXP3240 - Added account sip port to grandstream template after account server name

HTek
UC903 - Added account sip port to htek template after account server name
UC903 - Added variable to specify account 1 ringtone
UC903 - Added ** as pickup code - Not defined
UC903 - Added variable for screen timeout
UC903 - Enabled call waiting tone P8850 - its off by default for some reason
UC903 - fixed variable P2 to set the admin password on the phone from default settings, was not defined
UC903 - Added variable to change the pc port mode if expansion module needed P231
UC903 - Fixed expansion module key types - not defined
UC923 - Added variable to specify account 1 ringtone
UC923 - Added variable to change the pc port mode if expansion module needed P231
UC923 - Added ** as pickup code - Not defined
UC923 - Added variable for screen timeout
UC923 - Enabled call waiting tone P8850 - its off by default for some reason
UC923 - fixed variable P2 to set the admin password on the phone from default settings, was not defined
UC923 - Fixed expansion module key types - not defined
UC924 - Added variable to specify account 1 ringtone
UC924 - Added variable to change the pc port mode if expansion module needed P231
UC924 - Added ** as pickup code - Not defined
UC924 - Added variable for screen timeout
UC924 - Enabled call waiting tone P8850 - its off by default for some reason
UC924 - fixed variable P2 to set the admin password on the phone from default settings, was not defined
UC924 - Fixed expansion module key types - not defined
UC926 - Added variable to specify account 1 ringtone
UC926 - Added variable to change the pc port mode if expansion module needed P231
UC926 - Added ** as pickup code - Not defined
UC926 - Added variable for screen timeout
UC926 - Enabled call waiting tone P8850 - its off by default for some reason
UC926 - fixed variable P2 to set the admin password on the phone from default settings, was not defined
UC926 - Fixed expansion module key types - not defined

Snom
D735 - Added code given to use by snom to light the BLF green when avail and red when in use

Fanvil

X210 - Added default setting for fanvil blf pickup code
X210 - Added if exist in template for fanvil x210 the pickup code var

* grandstream_stun_server variable already exists

---------

Co-authored-by: FusionPBX <markjcrane@gmail.com>
2023-04-02 22:12:13 -06:00
FusionPBX ab67243911
Add the registration_expires variable 2023-03-30 14:58:09 -06:00
FusionPBX fce7b43c2e
Add the registration_expires variable 2023-03-30 14:56:54 -06:00
Ben 737adf44f3
Add registration expiry with register_expires (#6596) 2023-03-30 14:09:00 -06:00
Ben 3a1f3d1feb
Add registration expiry with register_expires - corrections (#6597) 2023-03-30 14:08:33 -06:00
Ben b4670b1203
Add registration expiry with register_expires (#6598) 2023-03-30 13:50:07 -06:00
Ben bb4e854198
Add registration expiry with register_expires (#6599) 2023-03-30 13:49:49 -06:00
Ben d1d42eb1d3
Update {$mac}.xml (#6600) 2023-03-30 13:49:25 -06:00
FusionPBX 3091370f14
Fix the ntp_server setting 2023-03-30 10:56:43 -06:00
agree ca36d10121
[security] prevent xml injection and executing switch api cmds (#6594) 2023-03-29 23:24:04 -06:00
FusionPBX ac129143a7
Add registration expiry with register_expires 2023-03-29 16:59:59 -06:00
Finn c1de249792
A few improvements to some grandstream configs + new devices (#6584)
Co-authored-by: Finn <finn@acceleratenetworks.com>
2023-03-24 20:06:15 -06:00
Antonio Fernandez 5c77562535
New Snom phone support plus fix for older snom model (#6587)
* Added support for privacy_out config parameter

* Added support for Snom M Series KLE Phones/Base

* minor fix to app_config.php
2023-03-24 20:04:54 -06:00
frytimo 5e23824940
contacts app_defaults breaks PDO db (#6585) 2023-03-24 09:18:23 -06:00
FusionPBX 051cb01fdc
Use the subcategory when refreshing the session
Beset to be specific when using unset to clear values in the session
2023-03-23 21:40:50 -06:00
levishores 181998cb37
Yealink blf active variable (#6567)
* Updated blf_active_backlight with variable

* Fixed variable name

---------

Co-authored-by: Levi Shores <levi@dtpartners.com>
2023-02-28 10:24:07 -08:00
zrd740 bc7b6d9529
Added 2 new variables for T54W provisioning (#6560)
Added 2 new variables for changing the idle clock {$yealink_idle_clock} and transparency of the dsskeys {$yealink_idle_dsskey_title_transparency}
2023-02-23 20:28:58 -07:00
frytimo 8e86fe6243
Remove '&' on new (#6559)
Remove '&' on static function new.
2023-02-21 09:39:15 -07:00
fusionate fc7a8106fb
Dashboard - Domain Limits: Rework style to match other widgets. 2023-02-20 22:21:54 +00:00
FusionPBX 97dbe7b31a
Save the email response (#6558)
* Save the email response

* use the response variable from the email class

* Rename email_debug to email_response

* Update app_languages.php

* Show the email response

* Save the email response
2023-02-17 12:47:11 -07:00
FusionPBX eab4b53d3a
Update {$mac}.cfg 2023-02-15 11:27:35 -07:00
FusionPBX 66695f00c9
Create {$mac}.cfg 2023-02-15 11:26:15 -07:00
FusionPBX bb5588fe58
Add path, version and size 2023-02-15 09:49:47 -07:00
FusionPBX ce52b2f750
Change formatting for user and admin password 2023-02-10 10:31:56 -07:00
fusionate ea59d3bf58
Conferences - List: Display CDR link in Tools column, if allowed. 2023-02-09 00:30:56 +00:00
FusionPBX 324b720cda
Fix the syntax $ needs to inside the variable brackets 2023-02-08 16:28:47 -07:00
FusionPBX 09c41b88ef
Add contact-params (#6545)
Adding contact params for control over this setting.
2023-02-06 22:24:16 -07:00
markjcrane 87192bd07d Add autoanswer setting to more phones 2023-02-03 16:30:40 -07:00
markjcrane d8f3f698e3 Add settings for autoanswer 2023-02-03 16:17:48 -07:00
fusionate a4c4e4c52a
Functions: Modify permission_exists() function to support an array of permissions. 2023-02-03 18:50:56 +00:00
fusionate 6bc1e53244
Default Settings - Copy: Move function to list view and use copy method in class. 2023-01-31 01:41:43 +00:00
fusionate 5b3cd98a29
Default Setting - Edit: Add Clone button to duplicate setting. 2023-01-29 07:37:38 +00:00
fusionate 9f7133ac4f
Login: Change destination setting type. 2023-01-28 00:19:00 +00:00
fusionate 107b8a48f2
Voicemail: Default/Domain Settings to control CID Number and Date & Time playback/order. 2023-01-27 22:17:51 +00:00
fusionate c4b8c7add1
Default/Domain/User Settings - Edit: Change Type field to select box. 2023-01-27 21:50:43 +00:00
FusionPBX 433e42d933
Update sv voicemail language 2023-01-26 16:40:45 -07:00
FusionPBX e488985708
Add title-languages translations 2023-01-25 22:57:24 -07:00
FusionPBX 9672dcc299
Use /es/mx/maria by default
Copied the wrong one in a previous commit. FreeSWITCH has sound files for es/mx/maria so we will use this by default.
2023-01-25 08:41:42 -07:00
FusionPBX 0279384ed6
Update es.xml 2023-01-25 08:37:24 -07:00
markjcrane 4ad93b421d For spanish use /es/ar/mario by default 2023-01-25 08:36:31 -07:00
FusionPBX 9781d965ff
Added to support the Disabled option 2023-01-24 11:22:57 -07:00
FusionPBX 3bfa2fc525
Added to support the Disabled option 2023-01-24 11:21:49 -07:00
FusionPBX 28aa3dce38
Add spa_vlan_enable, spa_vlan_id and spa_vlan_pc_id 2023-01-20 11:24:25 -07:00
FusionPBX dc3b95da36
Use tabs for indentation 2023-01-17 12:07:35 -07:00
Alex 37ab508d1b
Update chart.js v3 to v4 (#6529)
* Update chart.min.js

* Update missed_calls.php

* Update recent_calls.php

* Update system_counts.php

* Update system_cpu_status.php

* Update system_status.php

* Update domain_limits.php

* Update voicemails.php
2023-01-06 13:18:53 -07:00
Alex 310d4d00e7
Fix chartjs-adapter-date-fns (#6528) 2023-01-05 15:52:59 -07:00
Alex b43d6f3267
Update chart.min.js (#6527) 2023-01-05 14:54:46 -07:00
Alex bae38f3b65
Update chart.js (#6526)
* Update chart.min.js

* Update chartjs-adapter-date-fns.bundle.min.js

* Update chart.min.js
2023-01-05 14:45:50 -07:00
FusionPBX 819d7aeb4c
Update spandsp 2023-01-02 23:58:38 -07:00
zrd740 7908de0965
Update t41p {$mac}.cfg to correct IPv4 / IPv6 bug (#6516)
I was having an issue where my T41P phones were getting provisioned with IPv4 & IPv6 - even though I specified in default settings yealink_ip_address_mode=0 for IPv4 only. Checked the y000000000036.cfg, which was setting it correctly. The issue was that {$mac}.cfg was overriding the correct setting. There were several instances of "network.ip_address_mode = 2" in this file, which specifies ipv4&ipv6. I changed all 5 of those entries in this file to pull from the default setting {$yealink_ip_address_mode} rather than just setting a static value of 2. I don't know why it has this listed in this file 5 times. But, this change resolved my issue and will force the T41P provisioning to follow FusionPBX default settings.
2022-12-31 11:51:08 -07:00
Vincent 68f7ca517e
Update all model templates of Flyingvoice. (#6509)
* Fix the registration failed after provision Flyingvoice phone.

* Fix the parameter configuration of Flyingvoice not displayed in the Default Settings

* Fix: after configuring SIP line 1 of Flyingvoice phone, other SIP lines are disable and the configuration parameters of Flyingvoice are not displayed by default settings.

* Fix after configuring SIP line 1 of Flyingvoice phone, other SIP lines are disable.
* Fix the configuration parameters of Flyingvoice are not displayed by default settings.

* Fix: when only one sip line's shared line is enable, the shared lines of all SIP lines will be enable.

* Fix: unable to generate configuration file of Flyingvoice due to syntax error.

* Add the P1X, P2X, P3X, P5X, i86Box, iMetalBox, audioKit Series for Flyingvoice in Devices.

* Update all model templates of Flyingvoice.
2022-12-31 11:32:58 -07:00
FusionPBX 52308e2f15
Set new_json from the array
Fixes the new_json value that is added to the database transactions table.
2022-12-29 23:55:11 -07:00
FusionPBX f714ef6798
Fix problems with the app_uuid and domain_uuid
app_uuid was null, and domain_uuid getting the wrong uuid.
2022-12-22 13:04:24 -07:00
FusionPBX fa8ef47510
Make Aastra config files more like other provision templates (#6510)
* Update {$mac}.cfg
2022-12-16 13:13:55 -07:00
demonspork 5ccd29f20f
Add : colon to menu item links to fix external links (#6508) 2022-12-15 18:29:46 -07:00
FusionPBX a83982ea1b
Set where and order_by to public 2022-12-14 09:58:27 -07:00
Alex 045c87c98c
Update SortableJS to 1.15.0 (#6506) 2022-12-09 10:42:09 -07:00
garryavx 93dc310178
Update {$mac}.cfg (#6248)
Added a line to set SRTP encryption. the default setting yealink_srtp_encryption was not setting properly to my T56a devices. I downloaded my config files and did not find an entry for srtp at all.

compared with the t54w template and it did have a srtp setting. So I pretty much stole the line from the T54w template and dumped it in here.

The T54w template is vastly superior to this one and this probably needs a rewrite to bring it in line.

Tested on my T56a and it at least gets the job done.
2022-12-03 14:50:53 -07:00
hershyheilpern ec91cbb962
Update {$mac}.xml (#6495)
Add variable options for Line Echo Canceller & Network Echo Suppressor
2022-12-03 14:48:23 -07:00
Vincent e8d01efc58
Add the P1X, P2X, P3X, P5X, i86Box, iMetalBox, audioKit Series for Flyingvoice in Devices. (#6502)
* Fix the registration failed after provision Flyingvoice phone.

* Fix the parameter configuration of Flyingvoice not displayed in the Default Settings

* Fix: after configuring SIP line 1 of Flyingvoice phone, other SIP lines are disable and the configuration parameters of Flyingvoice are not displayed by default settings.

* Fix after configuring SIP line 1 of Flyingvoice phone, other SIP lines are disable.
* Fix the configuration parameters of Flyingvoice are not displayed by default settings.

* Fix: when only one sip line's shared line is enable, the shared lines of all SIP lines will be enable.

* Fix: unable to generate configuration file of Flyingvoice due to syntax error.

* Add the P1X, P2X, P3X, P5X, i86Box, iMetalBox, audioKit Series for Flyingvoice in Devices.
2022-12-03 14:46:40 -07:00
FusionPBX 7b9892b414
Add domain_json_token_name and domain_json_token_hash 2022-11-28 21:09:19 -07:00
Marvin Skeete dba7375faa
Update SIP Transport and Added Idle Screen vars (#6498)
<!--# P130 = 0-->
{if $account.1.sip_transport == 'udp'}P130 = 0{/if}
{if $account.1.sip_transport == 'tcp'}P130 = 1{/if}
{if $account.1.sip_transport == 'tls'}P130 = 2{/if}
{if $account.1.sip_transport == 'dns srv'}P130 = 1{/if}

<P340>{$grandstream_enable_idle_screen_download}</P340>
<P1349>{$grandstream_download_idle_at_boot}</P1349>
2022-11-24 21:07:22 -07:00
zrd740 c447dccd21
Update y000000000068.cfg (#6473)
Fixed a typo in call pickup variable setup for T41S to make it consistent with other yealink phone templates
2022-11-15 22:23:43 -07:00
FusionPBX 6a8bf567ae
Set user, admin and var passwords if isset is true 2022-11-11 10:22:16 -07:00
FusionPBX c4a46297a0
Add PHP ODBC 2022-11-08 09:45:04 -07:00
Dan 4a1913b447
Update to jQuery 3.6.1 (#6491)
This commit updates FusionPBX to use jQuery 3.6.1 and also adds a fallback to the other variable name for offhook autodial on the HT802.
2022-11-07 08:58:38 -07:00
FusionPBX d3ee256286
Remove these as they break PHP 7.0
Doesn't just break PHP 5.6 it also breaks PHP 7.0
2022-11-01 15:52:56 -06:00
FusionPBX ef98de7a8f
Update to match other recent SPA phones 2022-10-31 10:02:38 -06:00
FusionPBX 3796d6424e
Add RTP_Packet_Size set to 0.020 2022-10-31 09:56:37 -06:00
Alex b3f16569fd
Update multiple registration (#6488)
* Update {$mac}.cfg
2022-10-24 16:09:01 -06:00
FusionPBX bdbc1c2d4d
Fix dual registration 2022-10-24 10:45:04 -06:00
FusionPBX 7485757458
Change the timeout to 20 seconds 2022-10-21 11:43:53 -06:00
FusionPBX 4afc040efa
Add SMTP Timeout and SMTPKeepAlive 2022-10-21 11:43:14 -06:00
FusionPBX 88b43cfa14
If no handle return false
Splitting up the condition and return false for each condition works in all tests.
2022-10-20 16:18:55 -06:00
frytimo 2bdf0d382e
add isset($_REQUEST['debug']) before testing value for true (#6486)
Co-authored-by: Tim Fry <tim@voipstratus.com>
2022-10-19 11:49:31 -06:00
FusionPBX 87ccce1867
Fix the sub data insert. 2022-10-18 13:04:16 -06:00
FusionPBX eacff4c797
Code is causing a larger issue removed for more testing. 2022-10-14 12:38:01 -06:00
FusionPBX 03ac05fc64
Moved to resources/require.php
Found a better home for this code.
2022-10-14 10:08:03 -06:00
FusionPBX 3b8d3b70ea
Include additional functions
Moved here from resources/functions.php
2022-10-14 10:07:14 -06:00
FusionPBX 3e8ea2015f
Use the error reporting defined in config.conf 2022-10-13 16:23:20 -06:00
FusionPBX 0a25c48b5d
event socket make fp public 2022-10-13 12:52:52 -06:00
FusionPBX 58d0a1ad8c
Make sure resource exists before using feof
This code changes prevents this error.

Warning: feof() expects parameter 1 to be resource, bool given
2022-10-13 11:26:53 -06:00
FusionPBX 2bcf6743a5
Ensure DOCUMENT_ROOT and PROJECT_PATH exist 2022-10-12 10:24:30 -06:00
FusionPBX 0a47fc22b3
Get the DOCUMENT_ROOT and PROJECT_PATH 2022-10-11 17:10:39 -06:00
FusionPBX b373e3c7fe
Needed to get DOCUMENT_ROOT and PROJECT_PATH 2022-10-11 15:53:18 -06:00
FusionPBX 227aa97adc
Use class_exists around auto_loader 2022-10-11 15:34:55 -06:00
FusionPBX 878e5a10eb
Update database method connect to use config.conf 2022-10-10 19:43:07 -06:00
FusionPBX 80d25cc088
Minor change from spaces to tabs 2022-10-10 19:37:47 -06:00
FusionPBX fe53483ed8
Update require.php 2022-10-10 16:59:57 -06:00
FusionPBX 83d2f4fe2c
Update login.php 2022-10-10 16:59:20 -06:00
markjcrane d50bcb476a Replace root.php 2022-10-10 16:35:14 -06:00
FusionPBX 1c81f9c8b2
Replace config.php with config.conf 2022-10-10 13:16:32 -06:00
FusionPBX 6081a34833
Update {$mac}.xml (#6483)
* Update {$mac}.xml

* Update {$mac}.xml
2022-10-05 15:49:06 -06:00
FusionPBX 4d8496f4ad
Fix the event socket connected method
It was not detecting the connection to event socket correctly. 
This change resolve the high cpu usage for event guard.
2022-10-04 12:36:27 -06:00
FusionPBX aeec91fae8
Fix insert on for child data
Add a few try catch,
Add ; to the end of a few SQL queries
2022-09-30 12:46:44 -06:00
FusionPBX c28dcab2ca
Add grandstream_enable_call_features template var (#6480)
* Add grandstream_enable_call_features template var

* Update {$mac}.xml

* Update {$mac}.xml

* Update {$mac}.xml
2022-09-27 09:02:31 -06:00
FusionPBX 0e163a8e68
Update {$mac}.xml 2022-09-27 08:58:20 -06:00
jonathanblack1000 d084f68a45
Update Grandstream Templates on most common models (#6479)
Add grandstream_missed_call_log, grandstream_missed_call_notification, grandstream_missed_call_backlight, grandstream_firmware_upgrade_protocol, grandstream_onhook_dial_barging,  grandstream_transfer_mode_via_vpk, grandstream_enable_call_features.
Add condition on grandstream_distinctive_ringtone_name_1, and grandstream_distinctive_ringtone_name_2.
Update Connection request user/pw to work better with GDMS.
On grandstream_wallpaper_url, use current setting name on GRP2613
2022-09-27 08:17:31 -06:00
FusionPBX a355dda5b7
Fix a copy error.
Fixed the copy issue when the data includes insert_user, insert_update, update_user and update_date.
2022-09-20 13:56:54 -06:00
FusionPBX e29877e958
Move unset parameters outside of the debug
Unset of the parameters is required or can have parameters that interfere with other queries.
2022-09-19 09:30:20 -06:00
FusionPBX 4400618830
Sub array data use the child table name.
In Destination edit it was using the dialplan table name instead of child dialplan details table.
2022-09-18 04:47:17 -06:00
FusionPBX 50b66f8bea
If the domain_uuid is null the data is global.
This error broken dialplan edit when saving a global dialplan.
2022-09-18 03:08:18 -06:00
FusionPBX d5bd5957a4
Minor edit add a few spaces. 2022-09-18 02:59:58 -06:00
FusionPBX 7c2017bd03
On insert and update add the user and date 2022-09-18 02:57:43 -06:00
FusionPBX 2ff62f638b
Add a few minor changes for code consistency. 2022-09-18 02:13:33 -06:00
frytimo ba3b60b07b
Move database methods to static and document database class (#6474)
* Add new static method to created newly connected database object

* Document database class and clean up and document some of the methods.
This removes the methods that should not be in each instance and places
them in the single instance class as to occupy less resources and be
able to create database objects more efficiently.

* More docs & removed the ability to set any value within the object.

Co-authored-by: Tim Fry <tim@voipstratus.com>
2022-09-17 15:44:21 -06:00
FusionPBX c9a661de6f
Optional to send syslog message for the cache delete and flush 2022-09-10 11:40:59 -06:00
Joyce Babu ae7c312136
Add Telekonnectors Galaxy 1000 Plus template (#6469) 2022-09-07 16:36:03 -06:00
Norman King 7369409648
Allow setting hanging group mode on a per line basis for grandstream … (#6472)
* allow setting hanging group mode on a per line basis for grandstream dp bases.

* Keep grandstream_hanging_group_mode for better backwards compatibility.
2022-09-07 16:24:49 -06:00
FusionPBX a43388bace
Increase the timeout to 30000 microseconds.
30,000 Microseconds = 0.03 Seconds. Longer timeout reduces the CPU. If the timeout is too long then the Status -> SIP STATUS page will take longer to load.
2022-08-27 16:45:07 -06:00
frytimo 09dbdfb79f
Removed usleep command (#6468)
* Removed usleep command

* Update event_socket.php
2022-08-26 16:53:25 -06:00
FusionPBX 56de8714fa
Add base.active_handset.number = 8 to Yealink w60b
#Sets the amount of active handsets allowed on the base station, options are 4 or 8
base.active_handset.number = 8
2022-08-26 14:45:19 -06:00
FusionPBX b8f1eb7f10
Add function to check if we are connected to event soscket 2022-08-26 11:48:47 -06:00
frytimo 6bb6ae6b2b
Fix PHP warning for PDO::setAttribute() requires 2 parameters (#6464)
Co-authored-by: Tim Fry <tim@voipstratus.com>
2022-08-24 14:09:33 -06:00
yois615 04d3b0bfe0
[ht814] Grandstream escape html and sip_port (#6457) 2022-08-22 11:11:23 -06:00
Harry Foster 3d0fe368ac
Adding the Yealink Tone Country setting to all templates, and including two more minor revisions of handsets that have been released. (#6458)
* Added two new minor hardware revisions, the CP925 and T42U, and added the voice.tone.country = {} to all templates, previously missing on most

* Minor typo from a wrong window issue, and removing the commented examples for easier grepping
2022-08-22 11:10:24 -06:00
Joyce Babu 6365b28cf2
Add Telekonnectors Galaxy 1000 template. (#6442) 2022-08-20 09:28:15 -06:00
FusionPBX ea9b9ce621
Update additional occurances of PDO::PGSQL_ATTR_DISABLE_PREPARES 2022-08-18 17:53:33 -06:00
FusionPBX 2783cbd251
Update database.php 2022-08-18 17:39:51 -06:00
FusionPBX 98b19d1f22
Only add PDO::PGSQL_ATTR_DISABLE_PREPARES for versions of PHP that support it. 2022-08-18 17:37:43 -06:00