Commit Graph

46 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
75fcb46b47 Account for fax_status busy 2023-03-28 13:01:49 -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
FusionPBX
3b2e92a67d Use $_SERVER['DOCUMENT_ROOT'] 2023-01-13 14:24:33 -07:00
FusionPBX
86b8c2bea6 Update the fax-queue config.conf include 2023-01-13 13:56:34 -07:00
FusionPBX
150e3cfed7 Re-organize the includes 2022-10-22 23:50:31 -06:00
FusionPBX
a373958ffd Use $_SERVER['DOCUMENT_ROOT'] 2022-10-14 11:51:17 -06:00
markjcrane
d50bcb476a Replace root.php 2022-10-10 16:35:14 -06:00
FusionPBX
f70576b8d0 Update debian.service 2022-09-26 11:43:22 -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
FusionPBX
694fa611ef Check to see if posix_getsid exists 2022-09-12 20:49:04 -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
da181fc6f6 Improve multi-server cluster support. 2022-07-07 16:14:01 -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
c87ab41fff Add FAX Queue with retry_interval (#6398)
* Update app_config.php

* Use the new retry interval.

* Add the new retry interval.
2022-05-26 14:33:19 -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
d61939e38a Only send notify if email address is not null (#6351)
* Only send notify if email address is not null

* Update fax_queue.php
2022-04-25 13:54:52 -06:00
FusionPBX
5967f8ac1a Prevent running the sub process more than once. 2022-04-24 01:24:18 -06:00
FusionPBX
f3f27ba6a4 Update fax_queue.php 2022-04-24 00:19:07 -06:00
FusionPBX
9c6c5fead0 Update fax_queue.php 2022-04-24 00:18:36 -06:00
FusionPBX
7e5103f831 Make the path more dynamic for the fax queue service 2022-04-23 18:17:45 -06:00
FusionPBX
f3047f3f7f Make the paths more dynamic 2022-04-23 18:16:19 -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
f73f9b706f Move Session code to a better location in the file. 2022-04-21 22:15:45 -06:00
FusionPBX
5f462693dd Unset values for array and parameters. 2022-04-21 15:56:07 -06:00
FusionPBX
596ed957bf Add more debug info. 2022-04-21 15:36:39 -06:00
FusionPBX
b5c2cf5d16 Remove debug and a commented out include. 2022-04-21 13:33:00 -06:00
FusionPBX
8ab8426fc8 Create debian.service 2022-04-21 11:21:58 -06:00
FusionPBX
1922d0b7be FAX Queue option to run as a service. 2022-04-21 11:21:32 -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
98e1ab49f5 Select rows from where fax_status = sent and fax_notify_date is null. 2022-04-20 18:19:19 -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