Commit Graph

48 Commits

Author SHA1 Message Date
FusionPBX
8b7bd29456 Fix temporary permissions 2024-11-29 14:06:08 -07:00
FusionPBX
5464b4451f Add missing $ 2024-11-04 08:19:15 -07:00
FusionPBX
8d2aefa41e Fix local fax calls
Use loopback for sending local calls to other domains.
2024-10-21 16:53:10 -06:00
FusionPBX
16515b1a81 Update fax sending order 2024-10-15 12:22:48 -06:00
Antonio Fernandez
440ffb69db set fax failed when missing (#7077) 2024-07-30 16:31:11 -06:00
FusionPBX
475696ecff Check for valid fax numbers
Validate the fax destination number
- Check outbound routes
- Check valid extension
- Set the status to failed for all other numbers
2024-05-14 12:49:13 -06:00
FusionPBX
f30180d2b7 Bug fix send fax to a local extension 2024-05-03 13:13:51 -06:00
FusionPBX
ebcd78ed4f Fix fax from address when sending an outbound fax 2024-02-23 15:42:38 -07:00
FusionPBX
192e651722 Remove the single quote
Escape with a back slash didn't work
2024-02-05 17:22:42 -07:00
FusionPBX
1f5b979d0d Add escape_quote quoted values 2024-02-05 17:10:20 -07:00
FusionPBX
f63524a164 If exists use category fax from and from name 2024-01-05 17:24:08 -07:00
frytimo
3a4c2f72e2 Event socket bug fix and more docs (#6823)
* Add documentation to methods. Use is_resource for added type detection

* Allow connect to specify timeout in microseconds with default 30,000

* Update calling mechanism for event sockets

* Update project for new singleton event sockets

* remove unused variable

* catch errors on closing the socket
2023-12-02 17:16:18 -07:00
FusionPBX
c19899097d Send FAX when gateway fails try the next one 2023-09-28 12:41:12 -06:00
fusionate
d9d17a6917 Misc: Remove parameters from event_socket_create() calls. 2023-09-20 18:43:17 +00:00
FusionPBX
f1890976b2 Use settings class for the fax queue 2023-09-14 22:15:37 -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
a4ad93632d FAX status busy increment count
It turns out most of the busies are a bad number. So we need to increment the value and eventually stop retrying.
2023-05-30 09:33:24 -06:00
FusionPBX
3b53247dee Use !isset instead of empty
Reason for this change is empty treats 0 as null.
2023-05-19 16:10:38 -06:00
FusionPBX
b8d03a0384 Add absolute_codec_string PCMU,PCMA 2023-05-15 12:11:40 -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
FusionPBX
4d3f2e1e0b Add a shutdown function fax send 2023-04-14 12:24:24 -06:00
FusionPBX
d662a641e6 Add fax_status sending
While in sending mode it will not send again. The fax hangup hook will update the status to trying again if the fax fails or is set to failed if it reaches max tries.
2023-04-11 14:01:54 -06:00
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