Commit Graph

140 Commits

Author SHA1 Message Date
K-Flagman
1926ef95fe Add the upload_file_limit to fax_send (#7466)
* [fax_send.php] add the upload_file_limit

* Use the settings class get method

* Change the setting name to upload_file_limit

* Increase the default to 5
2025-08-22 22:25:15 -06:00
FusionPBX
399c071961 Fix the email_from when using per domain settings
Remove extra new database objects to make the code more efficient
2025-05-06 21:30:01 -06:00
FusionPBX
17b938698e Start with the require.php 2025-03-13 13:08:36 -06:00
Alex
b5592e84c7 Fix fatal error on fax send (#7313) 2025-03-13 11:04:40 -06:00
FusionPBX
9d3dd2a831 Add two fax variables 2025-02-14 13:08:19 -07:00
fusionate
68e3b4c187 Fax - New: Add cover_message, cover_message_height Default Settings to define a default Message and the height of the message box on the cover page, respectively. 2025-02-13 11:56:07 -07:00
FusionPBX
cd8d5302ac Fix temporary permissions 2024-11-29 13:57:01 -07:00
fusionate
15cad2369c Fax Server - Fax to Email: Fix population of cover page labels. 2024-11-14 13:21:14 -07:00
frytimo
557de4b744 Update settings using real boolean (#7165)
* update settings using real boolean
2024-10-22 18:55:19 -06:00
fusionate
0d8d2aacc7 Fax - Sent: Add time sent to cover sheet. 2024-10-02 17:17:26 -06:00
anthony-ricci
4df5253b64 Fax Server changes (#7136)
* Added the ability to send out successful and failed fax notifications to a separate list of email addresses (confirmation emails), in addition to the email address of the originator of the fax.
 * Added new fax_email_confirmation permission
* Check the Session variable for the user's email first and if it is not set, then query the database for the currently logged-in user's email.
2024-09-23 09:10:37 -06:00
fusionate
e4aa30bcd6 Fax - Sent: Added Recipient column, if allowed. 2024-09-17 14:38:11 -06:00
Alex
cb6edd88ef Added content card to applications (#7121) 2024-09-05 17:10:04 -06:00
frytimo
2cbb4dbc31 remove instances where a pointer is used in a foreach loop for value (#7108) 2024-08-22 12:41:10 -06:00
Alex
2cfbe63a5f Cover Page Option (#6928)
Subject and Message Required
2024-03-27 22:10:58 -06:00
fusionate
ebb68cccf5 Fax Server: Add date to cover sheet (if any), on Send. 2024-02-06 00:30:46 +00:00
fusionate
8bd5bc04dd Fax: Remove deprecated fax_send_greeting elements. 2023-11-07 15:40:34 +00:00
MD Riaz
bca1e75e02 illogical condition specified in fax_send (#6812) 2023-10-19 11:21:24 -06:00
fusionate
0e073230ce Fax Server - New: Tidy and add array check. 2023-10-04 00:09:58 +00:00
fusionate
e1fe7435e4 Fax Server - New: Honor Fax > allowed_extension defined in Default/Domain Settings on Preview and Send. 2023-10-04 00:04:19 +00:00
FusionPBX
d13027a575 FAX cover page fixed hide logo when empty 2023-09-22 10:44:52 -06:00
FusionPBX
89ce374d8d Failover for fax when there are multiple bridges
When the outbound route has more than one bridge statement use it for fail over.

One thing to keep in mind FreeSWITCH seems to limit the sized of the originate command. So we have to be careful how large the string is. If the originate string is too long it will be truncated and fail. For this reason commented out a few variables.
2023-09-21 00:07:42 -06:00
FusionPBX
0e55637bf6 Correct the description in the comment 2023-09-16 14:18:27 -06:00
FusionPBX
551eda9080 Update fax_send.php 2023-09-16 02:15:35 -06:00
FusionPBX
905d175e59 Use settings class for fax send 2023-09-16 02:02:38 -06:00
FusionPBX
eb2b530859 Check to see if the provider_prefix setting is enabled 2023-09-06 14:57:22 -06:00
FusionPBX
2ce9254ce5 Add provider_prefix when sending fax
Only add if it the provider_prefix is set in the domain-variables dialplan
2023-09-06 12:03:42 -06:00
FusionPBX
0177861b45 Remove switch ${variables} from the bridge statement 2023-06-28 12:47:06 -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
FusionPBX
d5a4146c57 Fix errors when fax directory isn't set 2023-06-02 16:44:04 -06:00
fusionate
94eadf2382 Fax - Send: Updates for PHP 8.1 2023-05-29 22:27:06 +00:00
markjcrane
6cbf572512 Remove fax_retry.lua supporting FAX Queue only 2023-05-17 12:37:31 -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
emak
800e742387 Disable fax sending when domain is disabled (#6606)
* Add warning_bar style for disabled fax sending

Add styles for .warning_bar class when fax server sending is disabled due to disabled domain.

* Disable fax sending if domain is disabled

When domain is disabled, users should not be able to send faxes either.

* Add text for fax sending disabled warning
2023-04-10 09:31:16 -06:00
markjcrane
d50bcb476a Replace root.php 2022-10-10 16:35:14 -06:00
FusionPBX
a2cedd0513 Reduce fax originate command
- Size limit for originate command parameters around 1130 characters.
- The originate command is used in event socket and not in shell command so remove escapeshellarg.
- Remove for_fax=1 as it doesn't seem to be used anywhere.
2022-09-16 17:05:36 -06:00
FusionPBX
de22a9121a Security use escapeshellarg 2022-06-29 10:24:05 -06:00
FusionPBX
1ffc8408bd Adjust fax mail_to_address.
For email to fax use the sender email address. Otherwise use the notify email addresses listed on the fax server edit page.
2022-04-25 13:57:58 -06:00
FusionPBX
37a0718d44 Send final tif and pdf to the sent box
Prevents having to save them to temp and then to sent box.
2022-04-23 19:37:49 -06:00
FusionPBX
2253f2c17c Use a better way to exec which command 2022-04-23 17:59:56 -06:00
FusionPBX
5fd2ca9105 Use which command to find the path to the commands.
This fixes the FAX send notification PDF attachment.
2022-04-23 17:46:32 -06:00
FusionPBX
e07c37795f Update the FAX message 2022-04-21 17:02:39 -06:00
FusionPBX
2f32ebd357 Use setting fax_queue enabled boolean. 2022-04-16 11:17:59 -06:00
FusionPBX
3f8e4328fe Use this for now until FAX queue is prepared better. 2022-04-05 14:01:56 -06:00
FusionPBX
8b6f094e08 Use the right hangup hook. 2022-04-03 00:22:14 -06:00
FusionPBX
a99395033f Update fax_send.php
Minor changes
2022-04-02 19:06:19 -06:00
FusionPBX
37f780e4e9 Add to the fax_queue_uuid common variables. 2022-03-31 22:11:00 -06:00
markjcrane
35fa6a2a08 Add a new FAX Queue 2022-03-31 12:24:00 -06:00
FusionPBX
bbf61c3950 Use contact permissions for the fax contacts if value is true. 2022-02-18 14:08:14 -07:00
FusionPBX
3778e449f5 Change back to original fax_files.php as the fax_outbound.php is not ready. 2021-12-10 20:21:03 -07:00