Commit Graph

54 Commits

Author SHA1 Message Date
FusionPBX
fd94e585da Update destinations.php
- Use the database object more efficiently
- Access the get method with this->get
- Bypass cached destinations to avoid problems
2024-02-21 11:26:14 -07:00
FusionPBX
776334844b Destination Summary update Total Calls
Purpose of  total calls is count calls to the destination number. This means calls from the server to the call center agent should be excluded.
2024-01-09 00:22:53 -07:00
FusionPBX
d0c3c93859 Destination summary unique callers
Use caller id number instead of name
2024-01-04 13:54:03 -07:00
FusionPBX
fff13633be Add a new destination summary report 2024-01-02 18:54:22 -07:00
fusionate
518c32efe6 Misc: Mitigate PHP 8.1 warnings. 2023-09-20 20:49:27 +00:00
fusionate
044b91ec6c Destination - Edit: Mitigate PHP 8.1 warnings. 2023-09-20 19:13:33 +00:00
fusionate
6411f50750 Destination Select: Set minimum width on second select box. 2023-09-08 22:05:19 +00:00
FusionPBX
c285a104f0 Fixed dynamic destinations when switching domains 2023-09-01 10:57:55 -06: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
d0481896ba Destinations [Class]: Updates for PHP 8.1 2023-05-22 23:05:44 +00:00
markjcrane
10a4ceae65 Default destination type to inbound. Use is_array where it is required 2023-05-17 16:03:36 -06:00
markjcrane
2afda399e6 IVR Menu code changes for PHP 8.1 2023-05-16 22:55:19 -06: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
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
FusionPBX
5a71e16f15 Use the config.conf file 2022-10-22 23:45:59 -06:00
markjcrane
d50bcb476a Replace root.php 2022-10-10 16:35:14 -06:00
FusionPBX
bfa5492e21 Allow an empty destination so that values can be nulled. 2022-05-03 09:46:26 -06:00
FusionPBX
15977eff35 Removed this as it prevents adding to the array by resetting the value back to 0. 2022-02-04 11:39:49 -07:00
FusionPBX
68238e9ce4 Account for destination_prefix larger than one character.
Also account for trunk prefix when not using the area code.
2021-12-08 13:49:15 -07:00
FusionPBX
4b1ab310b7 Remove the login.php code as it breaks the destinations and not needed for this.
Retract changes from this pull request. Its not constantly refreshing and so this login check is not needed for this feature.
https://github.com/fusionpbx/fusionpbx/pull/5951
2021-06-10 22:51:29 -06:00
mhoogveld
bcf2366dbd Redirect to login page when auto-refreshing a (part of a) page while being logged out (#5951) 2021-05-28 22:45:11 -06:00
Andrew Querol
228b3d0b31 Fix typo with destination ID for the new destination buttons 2021-03-23 00:42:33 -05:00
Andrew Querol
4075a12a74 Do not use the null coalescing operator to retain pre PHP 7 support. 2021-03-23 00:07:35 -05:00
Andrew Querol
ee30b59909 Switch to window.open to '_blank' to prevent accidental navigation that looses changes. 2021-03-22 23:44:33 -05:00
Andrew Querol
59dbcd02a7 Check if there is an ID before redirecting 2021-03-22 23:37:11 -05:00
Andrew Querol
f1fbbad7ab Recordings are stored in 'uuid' not 'recording_uuid' 2021-03-22 23:25:12 -05:00
Andrew Querol
152955625c Initial attempt at allowing the destination button button
to dynamically change

This sets the UUID as the ID in the options list. The we use the javascript onclick listener to get the id(uuid) of the selected option and open the link to the edit page.
2021-03-22 23:13:39 -05:00
demonspork
ea8aa47029 Add direct link button for dynamic destinations
Added a button that links directly to the currently selected destination's edit page if you have the permission to view or edit it.
2021-03-22 20:59:18 -05:00
fusionate
1687ebb3ae Destinations: Correct permission. 2020-12-10 16:58:50 -07:00
fusionate
c13c5182ac Destination Select - Dynamic: Clear session array for Outbound Destinations. 2020-11-30 15:53:44 -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
FusionPBX
e8790a8314 Remove trailing white space. 2020-11-23 09:36:04 -07:00
FusionPBX
6be0a340f2 Improve the destination select list other category. 2020-11-23 09:32:02 -07:00
FusionPBX
6fd52ec721 Add select_mode 2020-11-19 09:54:32 -07:00
FusionPBX
cb14ed7a77 Create resources/destinations.php 2020-11-19 09:48:38 -07:00
FusionPBX
a1ac4cb1b9 Create root.php 2020-11-19 09:47:09 -07:00
FusionPBX
4d183c1ffa Update destinations.php
Fix a PHP warning.
2020-11-11 09:34:42 -07:00
FusionPBX
c13b1426bb Update destinations.php
Prevent a plugin from breaking parts of the project.
2020-11-04 10:46:58 -07:00
FusionPBX
cd3ed425de Update destinations.php
Add to_regex method to the destinations class.
2020-10-10 00:03:04 -06:00
agree
16b34145d6 add extensions to destination class (#5501) 2020-09-29 11:43:48 -06:00
FusionPBX
e591ab9ce2 Change count to is_array to prevent a warning on PHP 7.3. 2020-09-28 11:17:17 -06:00
FusionPBX
61767aac3a Add new destinations get method. 2020-09-23 10:46:28 -06:00
FusionPBX
05ba2b3ca0 Fix PHP warnings 2020-09-15 19:12:19 -06:00
FusionPBX
95dd1cee01 Remove the deprecated save_dialplan_xml function. 2020-08-14 00:41:31 -06:00
agree
e5d3295975 Fix destination->valid method for ivr (#5312)
* Update destinations.php

* Update ivr_menu_edit.php
2020-06-24 16:42:03 -06:00
FusionPBX
b42cbc60b3 Update destinations.php 2020-06-19 19:00:33 -06:00
FusionPBX
7786e3e1b4 Add type to the destination class valid method. 2020-06-18 17:07:24 -06:00
Mark J Crane
3c3932ca7d Add additional IVR Menu Options to the Destination Select list 2020-06-18 10:44:16 -06:00
FusionPBX
7bcf522385 Update destinations.php 2020-03-08 00:29:31 -07:00
Nate
7e6fbcbf1d Destinations (Class): Adjust select() method so defaults to top of options when no option selected. 2020-02-19 19:54:10 -07:00