Commit Graph

129 Commits

Author SHA1 Message Date
FusionPBX 9cc6d45772
Fax - Sent: Add time sent to cover sheet. 2024-10-02 17:59:06 -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
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