Commit Graph

26 Commits

Author SHA1 Message Date
Luis Daniel Lucio Quiroz 3a8dfca16d
SQL query missing toll_allow (#6604)
The SQL query is missing the toll-allow setting from the virtual fax extension. All dialplans that have that condition will fail.
This patch makes sure the variable is present if need it.
2023-04-03 19:14:26 -06:00
FusionPBX 9c73670845
Move the fax_queue update before originate
Reason for the change is to make sure the api_hangup_hook lua script update of the email queue doesn't conflict.
2023-02-09 12:40:42 -07:00
markjcrane d50bcb476a Replace root.php 2022-10-10 16:35:14 -06:00
FusionPBX de21143246
Reduce size of fax originate command.
Originate command is limited to around 1130 characters. So this work was to reduce the size. Single quotes aren't needed on everything as this is not a command line. Its an even socket command. Also moving fax_variables into the fax options prevents variable duplicates.
2022-09-16 17:02:16 -06:00
emak e52f6626f9
Fix fax_queue to Email PDF Instead of TIF (#6461)
* Fix fax_queue to Email PDF Instead of TIF

Variables `$fax_file_tif` and `$fax_file_pdf` are missing a period before the extension so file_exists is always evaluating to false. Thus, TIF was always sent. Adds the period back into the path so the check works correctly.

NOTE: `$fax_file_tif` is completely unused and can be removed from this code for cleanup.

* Use single quotes.
2022-08-22 10:10:31 -06:00
emak 26b3e7893b
Add Fax Queue TX Email Variables (#6460)
* Add db field to v_fax_queue to link to fax log

* Add fax_duration field to v_fax_logs

Add fax duration to db to allow for logging of this data for fax email templates.

* Add new email variables to fax send

* Fix some logging variables and fax_log_uuid

Added back some missing session variables for the fax log.

Also update the email queue db field with the fax_log_uuid to allow us to add variables to the fax email templates later.

* Update hangup_tx.lua
2022-08-19 18:08:43 -06:00
FusionPBX be841cd17a
Update fax_send.php 2022-06-28 11:06:19 -06:00
M. Skenderian b3fc6e6857
removed duplicate code (#6410)
Co-authored-by: mskenderian <michael@wireprosolutions.com>
2022-06-16 10:04:28 -06:00
FusionPBX f214547359
First attempt use the fax variables from settings
Also set fax_retry_attempts, and fax_retry_limit.
2022-06-14 23:09:54 -06:00
FusionPBX 44f07fa5db
Add missing single quotes 2022-06-14 20:42:17 -06:00
FusionPBX 1434d39cff
Change condition where the email address was not set.
- When the email address was not set then post process did not happen and the status was not updated to failed.
- Updated debug and file parameters for debugging.
2022-05-19 16:00:58 -06:00
FusionPBX a2477f8dd5
Add domain_uuid the email object. 2022-05-19 10:44:54 -06:00
FusionPBX ba70234a96
Detect if FAX job still in progress.
Exit the code if the FAX job is still running.
2022-04-27 23:34:26 -06:00
FusionPBX 5967f8ac1a
Prevent running the sub process more than once. 2022-04-24 01:24:18 -06:00
FusionPBX 0678c36b58
Update the fax status
Fax status may have reached retry limit and if so need to update the status to failed.
2022-04-22 19:47:09 -06:00
FusionPBX 5f462693dd
Unset values for array and parameters. 2022-04-21 15:56:07 -06:00
FusionPBX 54623d8d3b
Remove missing file it's causing a issue. 2022-04-20 23:23:30 -06:00
FusionPBX e32c9d1870
If fax file is missing set status to missing file. 2022-04-20 22:34:42 -06:00
FusionPBX e73af240f9
Add a missing single quote. 2022-04-20 21:27:00 -06:00
FusionPBX 8c2e2b1f69
Add fax_queue.log and update fax_notify_sent and fax_notify_date. 2022-04-20 18:21:05 -06:00
FusionPBX 7511109c25
Fix a spelling mistake. 2022-04-19 16:41:50 -06:00
FusionPBX 9e2fe6d19f
Use the path info to get details to define the email attachments. 2022-04-03 04:06:49 -06:00
FusionPBX 0b7622ad37
Get email_from and email_from_name from the default or domain settings. Add the number_dialed variable. Also added additional debug information. 2022-04-03 02:48:10 -06:00
FusionPBX ec7af36ba1
Add fax email with templates and fax busy 2022-04-02 22:49:25 -06:00
FusionPBX 9b754bffb8
Change a variable name and hangup.lua to hangup_rx.lua. 2022-03-31 20:36:36 -06:00
markjcrane 35fa6a2a08 Add a new FAX Queue 2022-03-31 12:24:00 -06:00