Commit Graph

186 Commits

Author SHA1 Message Date
FusionPBX fd2516a297
Update timezones.conf.xml with tabs 2023-11-02 17:02:28 -06:00
FusionPBX 3c57c72044
Revert timezones.conf.xml 2023-11-02 16:59:25 -06:00
FusionPBX 05c52a3fdc
Update timezones.conf.xml 2023-11-02 16:51:09 -06:00
FusionPBX 71349f56b2
Fixed ring group hold_music
This commit fixes a problem for music on hold defined in global-variables and domain-variables dialplans.
2023-11-02 12:18:28 -06:00
emak-Corey e5025d394f
Fix vm_disk_quota (#6814)
The current condition #vm_disk_quota <= #message_sum is checking the lengths of vm_disk_quota and message_sum, not their actual values. So, it won't compare the numeric values for your intended logic.

If they're strings that can be safely converted to numbers, use tonumber():

if (vm_disk_quota and message_sum and tonumber(vm_disk_quota) <= tonumber(message_sum)) then
  -- your code
end

This will compare them as numbers, ensuring that vm_disk_quota is less than or equal to message_sum.
2023-10-26 13:53:38 -06:00
agree 37d7c43e17
[dialplan] Bind digit bleg without a lua script (#6817) 2023-10-26 13:27:31 -06:00
agree a785292811
[eavesdrop] Fix eavesdropping wrong uuid (#6815)
If the extension is in a call and also receives calls at the same time, the query will return more than one uuid causing to eavesdrop the wrong channel.
2023-10-24 17:07:55 -06:00
FusionPBX b2e05fb0f6
IVR Menu: allow sending the ${uuid} variable 2023-10-23 14:25:04 -06:00
FusionPBX 100ccc0db2
Call Flows allow feature code and alternate destination to be optional. If feature code is empty and pin number is provided then require the pin number. 2023-10-19 19:35:36 -06:00
FusionPBX ab0fc211d8
Use SQL concat as its safer with NULL values. 2023-10-18 21:18:39 -06:00
FusionPBX fce21d36c3
Use SQL concat as its safer with NULL values. 2023-10-18 21:14:54 -06:00
FusionPBX d02ab9de91
manage-presence to a default value of true 2023-10-10 20:13:32 -06:00
FusionPBX 2ccc8c8b12
Change how the virtual extension is disabled
Made this change because if the XML is not generated then extension variables are not available. These variables are needed for call forward and follow me.
2023-10-09 19:52:13 -06:00
FusionPBX b9bef2ee9a
Clear the dial_string variables
Clearing dial_string prevents poisoning the value for extensions in the ring group destinations that exist but are not registered.
2023-10-04 14:55:08 -06:00
fusionate 3cbe36c91f
Voicemail [Script]: Return user to current message options after listening to message envelope, instead of returning to the root mailbox menu. 2023-09-23 04:46:32 +00:00
fusionate 2600c7d159
Voicemail: Honor switch > voicemail > dir value in Default/Domain Settings. 2023-09-23 03:51:51 +00:00
FusionPBX b0a2f3340a
Fix ring group delay timing
Use sofia_contact instead of user bridge alias. Added a useful note from @greenbea describing why there was a problem with follow me delay timing.

When you originate user/ext@domain, switch_ivr_originate will call the user endpoint. The user endpoint isn't a real endpoint. It is a shortcut to get the real dialstring from the user's XML and calls again switch_ivr_originate, so essentially, what happens is switch_ivr_originate reads twice originate_delay_start variable and waits double the time.

Your patch fixes the case when the endpoint is the user/ endpoint but will make the delay half the time if called with other endpoints like sofia.

The ultimate solution would be freeswitch to handle this in the user endpoint function. I would suggest that fusion manually get the user's dial string from the XML and call originate on it and not rely on the user (shortcut) endpoint for ring group and follow me.
2023-09-22 16:23:14 -06:00
FusionPBX 6030843ca8
Fix follow-me delay timing
Use sofia_contact instead of user bridge alias. Added a useful note from @greenbea describing why there was a problem with follow me delay timing.

When you originate user/ext@domain, switch_ivr_originate will call the user endpoint. The user endpoint isn't a real endpoint. It is a shortcut to get the real dialstring from the user's XML and calls again switch_ivr_originate, so essentially, what happens is switch_ivr_originate reads twice originate_delay_start variable and waits double the time.

Your patch fixes the case when the endpoint is the user/ endpoint but will make the delay half the time if called with other endpoints like sofia.

The ultimate solution would be freeswitch to handle this in the user endpoint function. I would suggest that fusion manually get the user's dial string from the XML and call originate on it and not rely on the user (shortcut) endpoint for ring group and follow me.
2023-09-22 16:01:59 -06:00
fusionate d9d17a6917
Misc: Remove parameters from event_socket_create() calls. 2023-09-20 18:43:17 +00:00
FusionPBX 8ee8e30b31
Save CDR to the file system 2023-09-20 11:25:36 -06:00
fusionate 2a54aa025c
Misc: Remove parameters from event_socket_create() call. 2023-09-20 17:25:24 +00:00
FusionPBX bf47bbcc47
Event Socket settings auto defaults or custom using config.conf 2023-09-16 15:07:41 -06:00
FusionPBX 675811f79c
Create event_socket.conf.lua 2023-09-16 04:34:23 -06:00
FusionPBX 3fbb536aa6
Update esl.lua get event_socket from default settings 2023-09-16 03:27:27 -06:00
FusionPBX 741f2a160e
Add event socket and xml rpc values to default settings 2023-09-14 15:48:19 -06:00
fusionate 8986a2c947
DISA [Script]: Add minor delay before first voice prompt. 2023-09-14 17:47:19 +00:00
FusionPBX 7d7a0cf603
Add fallback method to get caller_id 2023-09-06 10:38:17 -06:00
FusionPBX 744ec4edaa
Make sure voicemail_id is set before using it 2023-08-29 13:33:29 -06:00
FusionPBX 29f04383cb
Inbound number not found send to the log 2023-08-26 15:29:58 -06:00
Luis Daniel Lucio Quiroz 97835fdd6a
Update intercept.lua (#6788) 2023-08-26 10:12:52 -06:00
FusionPBX fac9bad46f
Fix the default_language, default_dialect and default voice variables that were broken by xml.sanitize 2023-08-24 09:26:10 -06:00
FusionPBX 11c98a860e
Get the extension_uuid using the voicemail_id 2023-08-22 10:01:24 -06:00
FusionPBX f5bdf6662e
Enable customizing the config_file path for LUA 2023-08-14 19:35:41 -06:00
FusionPBX 956b8686f9
Bug fix use tonumber function to detect non numeric required for those using extension number alias 2023-08-10 13:57:30 -06:00
FusionPBX 503b59267e
Fix call center agent call recording
Issue was caused by xml sanitize and this change allows using strftime.
2023-08-09 11:13:09 -06:00
fusionate 578dcc6256
Voicemail - Email [Function]: Send basic email even if email template is disabled. 2023-08-04 03:49:29 +00:00
FusionPBX 2582511594
Update and rename contacts.lua to database.lua 2023-08-01 18:03:58 -06:00
FusionPBX b436200a61
Create index.lua 2023-08-01 18:02:02 -06:00
FusionPBX bd513b3629
Rename inbound_lookup.lua to contacts.lua 2023-08-01 10:31:47 -06:00
FusionPBX 398278c7ea
Create inbound_lookup.lua 2023-08-01 00:09:54 -06:00
FusionPBX ee610ccb1b
convert the message_length value to a number
Fixed this error "attempt to compare number with a string"
2023-07-25 13:12:42 -06:00
markjcrane b9e6a89a37 Add extension_type is null for better backwards compatibility 2023-07-14 12:44:24 -06:00
FusionPBX b1457116d8
Require extension_type default 2023-07-13 21:30:24 -06:00
jacobbuscher-bt 28695de14c
Add the / character to the ALLOWED_CHARS variable to fix bug with front slashes being stripped. Previously was turning /var/lib/freeswitch into varlibfreeswitch (#6773)
Co-authored-by: Jacob Buscher <jacob@bfitec.com>
2023-07-12 22:15:37 -06:00
FusionPBX d3cfa9c2bc
Update mkdir.lua 2023-07-12 10:47:57 -06:00
FusionPBX 7724c6fe5b
Few more adjustments for record_name 2023-07-07 12:01:23 -06:00
FusionPBX 5fb8ab41d8
Requires a colon 2023-07-07 09:48:21 -06:00
FusionPBX 7f60ff23c4
When record_session is true set record_path variable 2023-07-07 09:38:13 -06:00
FusionPBX f00712463c
Update recording name and file extension 2023-07-07 09:26:03 -06:00
FusionPBX e5ca998ef8
Ad ring group destination delay with the follow me delay 2023-06-29 14:13:32 -06:00
Andy Binder 6f352c2efb
Update translate.conf.lua (#6765)
Remove sanitization of number-translation regexes
2023-06-28 09:48:39 -06:00
fusionate a8f25e9657
Voicemail: Let skip_instructions channel variable still take priority over voicemail_recording_options in database. 2023-06-28 02:45:35 +00:00
fusionate 5ef1c225f6
Voicemail - Edit: Add controls to manage Recording Instructions and Options, Only show Alternate Greeting ID if using Default greeting. 2023-06-28 02:11:01 +00:00
markjcrane a72c843b52 Correct the path to the scripts directory 2023-06-24 10:01:15 -06:00
markjcrane 88faf89219 Move scripts to app/switch/resources/scripts 2023-06-24 08:32:56 -06:00
markjcrane 0d39719318 Move resources/templates/conf to app/switch/resources/conf 2023-06-23 13:27:29 -06:00
markjcrane ec7a088099 Ensure variables to exist 2023-06-19 14:56:16 -06:00
FusionPBX 9520fd9481
Update switch_status.php a few PHP 8.1 changes 2023-06-19 13:06:48 -06:00
markjcrane 32051873be Use __dir__ to find resources/require.php 2023-06-16 22:49:09 -06:00
FusionPBX 6314053331
Removed code from app_config.php 2023-06-05 12:50:21 -06:00
Alex ac38507462
Update translations (#6682)
* Update translations

* Update app_menu.php

* Update app_languages.php
2023-05-10 18:20:44 -06:00
fusionate 26595860cc
Dashboard - Switch Status: Updates for PHP 8.1 2023-05-10 22:59:49 +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
markjcrane 1513bd3301 Add Chinese, Korean, and Japanese translations 2023-05-03 10:36:25 -06:00
fusionate 365d5ee316
Switch: Add missing language translations. 2023-04-29 01:24:37 +00:00
FusionPBX 4a71d7a49a
Add sound_prefix variables 2023-04-25 11:24:17 -06:00
fusionate d04b6db96a
Dashboard: Call Forward widget, Edit position without reload, misc adjustments. 2023-01-31 00:19:09 +00:00
fusionate b35aafc391
Dashboard: Click chart to expand/contract details. 2023-01-28 01:52:13 +00:00
FusionPBX 9a6628b592
Update app_config.php 2023-01-26 11:50:15 -07:00
FusionPBX a46d0856d3
Add new language_destinations permission 2023-01-26 10:34:01 -07:00
FusionPBX 9ae3cf8da3
Add destination languages 2023-01-25 23:08:38 -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
markjcrane d50bcb476a Replace root.php 2022-10-10 16:35:14 -06:00
markjcrane eb5c25aa35 Add insert_date, insert_user, update_date, update_user to all tables 2022-09-18 00:54:37 -06:00
FusionPBX 22a243ceb4
Update and rename app/switch/resources/service/debian-event_guard.service to app/event_guard/resources/service/debian.service
Move event guard to its own directory.
2022-07-28 08:38:16 -06:00
FusionPBX 9d2efbeccb
Rename app/switch/resources/service/event_guard.php to app/event_guard/resources/service/event_guard.php
Move the event_guard service to its own directory name.
2022-07-28 08:35:16 -06:00
FusionPBX 3ee97e0d76
Add more debug information. 2022-07-27 13:40:55 -06:00
FusionPBX c8aaf80781
Create debian-event_guard.service 2022-07-25 19:28:18 -06:00
FusionPBX 17ab8e61ab
Create event_guard.php 2022-07-25 19:24:35 -06:00
FusionPBX 220f19dcf0
Add new permisisons for the switch dashboard.
switch_version
switch_uptime
switch_channels
switch_registrations
2022-06-28 11:00:45 -06:00
FusionPBX 3a31141e6f
Add permisisons to the dashboard.
Add new permissions switch_version, switch_uptime, switch_channels, switch_registrations
2022-06-28 10:59:19 -06:00
FusionPBX 53e8ab5f16
Unset the event socket handles. 2022-05-20 17:49:42 -06:00
FusionPBX ed1d1afd07
Update presence.php 2022-05-20 17:15:57 -06:00
FusionPBX 27f0d9d5b4
Add a new presence class. 2022-05-20 17:14:50 -06:00
AlexC 234531e330
Add default settings to switch status dashboard widget (#6333)
* Update app_config.php

* Update switch_status.php

* Update app_config.php

* Update app_config.php
2022-03-28 10:29:32 -06:00
markjcrane 67aad6d611 Add switch status to the dashboard 2022-03-26 14:25:26 -06:00