Commit Graph

61 Commits

Author SHA1 Message Date
frytimo 41eb7ac8d3
Fix empty line printing on console (#6956)
* fix empty line printing on console
2024-04-23 08:53:14 -06:00
frytimo 4fbd767c05
Fix bug where a dialplan detail item was deleted but still shows in the XML dialplan (#6875)
* Fix bug where a dialplan detail item was deleted but still shows in the
XML dialplan.

* Update dialplan_edit.php
2024-02-02 09:17:00 -07:00
frytimo 3a4c2f72e2
Event socket bug fix and more docs (#6823)
* Add documentation to methods. Use is_resource for added type detection

* Allow connect to specify timeout in microseconds with default 30,000

* Update calling mechanism for event sockets

* Update project for new singleton event sockets

* remove unused variable

* catch errors on closing the socket
2023-12-02 17:16:18 -07:00
FusionPBX 5712df1118
Update dialplan_edit.php
Fix the indentation and use not empty.
2023-11-03 13:34:45 -06:00
FusionPBX fa123ff069
Build dialplan xml from the array. More efficient to save data and xml in one step. 2023-11-03 02:18:57 -06:00
fusionate d9d17a6917
Misc: Remove parameters from event_socket_create() calls. 2023-09-20 18:43:17 +00:00
Anthony 8c8ef2c309
Fixed Warnings (#6768)
* Update device_edit.php

* Update dialplan_edit.php

* Update app_languages.php
2023-07-06 14:51:02 -06:00
fusionate 142b6dd323
Dialplan - Edit: Clean up. 2023-06-15 23:59:06 +00:00
fusionate 09ef6074a7
Dialplan - Edit: Integrate new Enabled toggle, PHP 8.1 updates. 2023-06-15 23:43:39 +00:00
frytimo d7bbcd89f5
Use magic constant dir (#6711)
* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__ to load only functions.php

* replace spaces with tab character

* update dirname command to use levels instead of nesting

* use magic constant __DIR__

* update dirname command to use levels instead of nesting

* Update access_control_edit.php

* Update access_control_import.php

* Update access_controls.php

* Update dnd.php

* Update access_controls_reload.php

* Update call_center_agents.php

* Update call_center_agents.php

* Update fax_queue.php

* Update login.php

* Update pdo.php

* Update pdo_vm.php

* Update switch.php

* Update index.php

* Update css.php

* Update v_mailto.php

* Update fax_to_email.php

---------

Co-authored-by: FusionPBX <markjcrane@gmail.com>
2023-06-15 11:28:23 -06:00
fusionate 072d351b8c
Dialplan - Edit: Update for PHP 8.1 2023-06-01 20:35:53 +00:00
fusionate c9122ded11
Dialplan - Edit: Updates for PHP 8.1 2023-05-20 23:58:01 +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 114fe7252c
Replace root.php with config.conf 2022-10-10 13:19:40 -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 829f8a35d6
Change the order of the conditions to a-z and add call_direction. 2022-05-03 18:16:08 -06:00
FusionPBX 38dea5f699
Prevent application duplicates and update the applications array. (#6173)
* Prevent application duplicates and filter the applications before the content.
* Don't allow the new spawn commands as they are as dangerous as system commands.
* Update dialplan_valid false to include bg_spawn, spawn and spawn_stream.
2021-12-05 14:52:36 -07:00
FusionPBX 322bbd4c20
Use column names in the SQL Query. 2021-01-20 10:46:00 -07:00
FusionPBX 7d3e754812
Set the dialplan_detail_enabled default value to true. 2021-01-19 22:18:40 -07:00
FusionPBX e64c70ff9d
Add ability to use the dialplan_detail_enabled field. 2021-01-19 18:56:51 -07: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 9708c482fe
Update dialplan_edit.php 2020-11-05 17:56:17 -05:00
Greenbea 6770d15b3c Fix cache delete for global dialplans 2020-11-05 11:29:41 -05:00
FusionPBX 35d8e048cb
Remove save_dialplan_xml function. 2020-08-14 00:09:09 -06:00
Nate 6fe2eedee9 Dialplans - Edit: Retain Domain if Admin editing record. 2020-03-30 11:59:32 -06:00
Nate 20166c4280 Dialplans: Modal integration. 2020-03-26 09:06:12 -06:00
Nate 029c7174b4 Multiple - Add IDs to common/default action buttons. 2020-03-05 00:05:45 -07:00
Nate a2694e18a5 Dialplans - Edit: Wider Group and Order input fields. 2020-03-04 10:33:32 -07:00
Nate 8cf57f30be Multiple - Edit: Minor mods. 2020-03-03 19:59:41 -07:00
Nate cf00766088 Dialplans - Edit: Add select-all checkbox for bulk delete of Details. 2020-02-28 06:26:58 -07:00
Nate 12d7d62bc5 Dialplans - Edit: Use class method for Copy - fixes missing app_uuid bug. 2020-02-27 14:35:34 -07:00
Nate f5bf44758b Dialplans - Edit: Permission adjustments. 2020-02-27 14:06:07 -07:00
Nate 4ea158cf3c Update dialplan_edit.php 2020-02-27 13:45:36 -07:00
Nate 05212dc713 Dialplans - Edit: Integrate checkboxes on Details for bulk delete on Save (uses token). Add delete button with dynamic action. 2020-02-27 13:41:13 -07:00
FusionPBX 2be2246574 Update dialplan_edit.php 2020-01-18 13:03:43 -07:00
chansizzle c9b45a7335 Update dialplan_edit.php 2020-01-16 14:59:27 -07:00
Nate 578090dd31 Dialplan - Add/Edit/XML: Action bar and button updates, token integration. 2020-01-11 13:53:21 -07:00
chansizzle 773dadc1da Update dialplan_edit.php (#4999) 2019-12-31 19:46:17 -07:00
FusionPBX 874cdd6140 Update dialplan_edit.php 2019-11-28 04:29:28 -07:00
Nate b560c1f720 Dialplan: Restore domain uuid to dialplan details. 2019-11-07 21:16:29 -07:00
FusionPBX 5b52f096ae Update dialplan_edit.php 2019-10-04 13:29:14 -06:00
FusionPBX 109e7a9414 Update dialplan_edit.php 2019-10-04 11:41:22 -06:00
chansizzle 6bece5ce92 Update dialplan_edit.php (#4658) 2019-09-25 20:34:42 -06:00
Nate 17b6841194 Dialplans: Token integration. 2019-09-17 22:39:19 -06:00
Nate a86721df36 Fix XML Back button to Dialplan Manager. 2019-09-09 06:35:11 -06:00
FusionPBX cc96d4fa6f Update dialplan_edit.php 2019-08-08 13:47:27 -06:00
Nate d3c6182f85 Dialplans: Database class integration. 2019-08-05 19:18:21 -06:00
Robert Stevens be8c73036c fix sip_h_Diversion typo 2019-05-17 00:24:57 -07:00
emaktech a5ff016ef5 Retrieve gateway names with variables and failover (#4004)
Previously, if a bridge statement was written with prepended variables to be passed, the gateway name would not be parsed and replaced. Additionally, if multiple bridges were used in failover in a single bridge statement separated by a pipe, only the first would be parsed and replaced.

I noticed this after upgrade to FreeSWITCH 1.8.5 (from 1.6.20) which changed failover behavior with multiple separate bridge statements. When network returns 486 BUSY, it will proceed to second bridge statement, initiating a second call. To allow failover and not have this behavior, you must write a single statement and separate your failover bridges with a pipe, this change allows the UI to show all gateway names on the line once saved.

Examples:
{fax_use_ecm=on}sofia/gateway/99b1234c-667c-4b31-9d2f-31d4f396abfa/$1
=> {fax_use_ecm=on}sofia/gateway/Gateway_Name/$1

sofia/gateway/0e70e123-00fd-4f0c-b525-bc7f6283cfa1/$1|sofia/gateway/99b1234c-667c-4b31-9d2f-31d4f396abfa/1$1
=> sofia/gateway/Gateway_One/$1|sofia/gateway/Gateway_Two/1$1
2019-03-03 11:10:15 -07:00
FusionPBX 8dbcf22541 Update dialplan_edit.php 2018-12-05 17:20:09 -07:00