Commit Graph

111 Commits

Author SHA1 Message Date
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
MCohenAuravox
ab9140e960 Update fax_send.php (#6067)
Send redirects to new Outbox feature
2021-12-06 10:40:45 -07:00
FusionPBX
487afc371e Change the fax file name to md5 to avoid characters that present a security risk. 2021-11-03 15:30:01 -06:00
FusionPBX
0377b2152c Force the fax_page_size to only preset allowed values. 2021-11-03 09:38:01 -06:00
FusionPBX
2d2869c1a1 Require the fax_extension to be numeric.
Need to validate that the fax_extension really is numeric. Also replace event_socket_mkdir that makes a directory with mkdir.lua and use a php mkdir function instead. We want to offload this off of FreeSWITCH and its safer to use the PHP function.
2021-11-02 21:55:15 -06:00
FusionPBX
f6f2f1c77f Fix custom fax cover_logo. 2021-07-14 18:54:03 -06:00
FusionPBX
89de896e75 Changed to maintain compatibility with newer version of ghost script.
Credit to demonspork for this fix.
2021-06-12 13:15:56 -06:00
FusionPBX
c4219d7fe0 Add three new permissions fax_subject, fax_message, and fax_footer. 2021-06-09 10:56:10 -06:00
FusionPBX
d0fbbd6a2e Use the new fax_extension_view_domain instead of if_group function 2021-03-18 10:37:38 -06:00
emaktech
5d3b2d3226 Optimize Fax Conversion Quality
Added additional command line switches to the Ghostscript command which greatly improves the output quality and legibility of converted faxes.

Now using a simple threshold method - 75% threshold to determine if a pixel will be black or white.
Dithering is turned off completely.
Also switched to newer tiffg4 compression method.
2020-11-17 16:00:23 -05:00
fusionate
4f29228768 Fax Server: Better compatibility with current libtiff-tools. 2020-11-05 16:08:27 -07:00
agree
73e9136344 Fix faxing to multiple numbers (#5503) 2020-10-01 17:08:53 -06:00
Nate
75b46b3298 Fax - Preview/Send: Better cover_logo handling. 2020-05-30 20:27:26 -06:00
Nate
e8494facee Multiple: Add IDs to form tags, remove empty action attributes. 2020-03-05 10:02:25 -07:00
Nate
029c7174b4 Multiple - Add IDs to common/default action buttons. 2020-03-05 00:05:45 -07:00
Nate
1ceccf698e Fax Server: List view, button, bulk delete via class, etc. 2020-01-29 11:41:12 -07:00
Nate
d79244b39d Fax Server: Add window titles. 2020-01-06 11:43:43 -07:00
agree
d20a403679 added toll allow to fax server (#4936) 2019-12-08 22:37:12 -07:00
agree
7e6801e798 Update fax_send.php (#4844) 2019-11-14 21:56:07 -07:00
Nate
2f7fb47a76 Fax Send: Token integration. 2019-09-19 08:35:52 -06:00
FusionPBX
1b4e3787e1 Update fax_send.php 2019-08-30 01:34:59 -06:00
Nate
733ba98dc6 Update to Bootstrap v4.3.1, jQuery 3.4.1. Adjustments to support updates. 2019-08-20 18:15:50 -06:00
chansizzle
fad4356619 Update fax_send.php (#4443)
* Update fax_send.php

* Update fax_send.php
2019-08-15 15:29:05 -06:00
Nate
d23c5d84c4 Fax Server: Database class integration. 2019-08-07 18:59:26 -06:00
FusionPBX
eca86a9e6a Update fax_send.php 2019-06-19 08:12:40 -06:00
FusionPBX
a1a68faf0d Update fax_send.php 2019-02-12 12:49:13 -07:00
FusionPBX
d6dc5519d4 Update fax_send.php 2018-09-20 00:52:53 -04:00
FusionPBX
68ceaed6fe Update fax_send.php 2018-09-19 23:34:20 -04:00
AlexanderDCrane
243906c5f4 Update fax_send.php (#3392) 2018-08-31 14:33:17 -06:00
markjcrane
a72f1d6266 Change messages class to message 2018-08-31 03:09:01 +00:00