Commit Graph

38 Commits

Author SHA1 Message Date
Andy-Seattle cf6c940e73 Update fax_retry.lua (#4756)
Setting ignore_early_media=true has a better chance of success for T38 fax transmissions. 

Setting this as a fax variable in default settings is enough for most cases where a successful transmission occurs on the first attempt. However if fax retries are needed this variable was ignored until now.

This change ensures that IF the user sets ignore_early_media=true as a default fax setting it will also be used for fax retry scenarios when T38 is enabled. If ignore_early_media is not set to true then the changes here are ignored thus minimizing risk.
2019-10-21 13:02:49 -06:00
FusionPBX baea8db575 Update fax_retry.lua 2019-06-14 23:56:56 -06:00
ednt 8a7a1c84e5 Update fax_retry.lua (#2994)
If the fax transmission fails the first time, the ident and header was not transmitted during the retries.
2018-02-15 09:19:05 -07:00
netpro25 1716255660 Update fax_retry.lua (#2625)
Had an issue with malformed email confirmation where the number_dialed was showing up with a bunch of random repeating strings after it. This resolved it for me. Also fixed a grammar error.
2017-06-02 22:33:32 -06:00
jebsolutions 730e9ed514 fixes bug #2270 reported by volga629 (#2276)
Please do further testing/review and give comments and suggest cleanup, etc.

This bug is only tripped if all of the following are true:
a) fax send fails
b) email notification of fax failure also fails
c) Other?

how to test
- have a 100% working fax to email setup.
- Change Advanced->defaults->email and set the port to be something invalid.
- e.g. smtp port 9999 is invalid
- send a test fax to something without a fax
- e.g. I just faxed my own DID which does NOT have fax answering

- each time the phone rings answer...wait 5 seconds, and then hang up
- note: it will retry sending the fax 5 times so repeat the above.

- on the last try it will give up, and try to send the failure email
- the email will fail (bad port) and then it will insert the failed email into v_emails
- the insert will fail and nothing in v_emails

Error was caused by trying to insert '' into the domain_uuid field.
'' is invalid in a uuid field, but null is okay.

The null is caused by no x-headers being passed.  So these two fields end up null:
$headers["X-FusionPBX-Domain-UUID"]
$headers["X-FusionPBX-Email-Type"]

Ignoring unset/uninitialized variables hides bugs.

Fix: feed the X-Header in the calling lua code.
2016-12-27 17:49:57 -07:00
FusionPBX e3fee1a732 Update fax_retry.lua 2016-12-02 00:52:10 -07:00
FusionPBX 521b50eb8a Update fax_retry.lua
Prevent a nill error for email_address.
2016-12-01 23:57:17 -07:00
FusionPBX 9a1cb972b6 Update fax_retry.lua 2016-12-01 23:47:32 -07:00
Alexey Melnichuk fa82309dc5 Fix. Create dbh object in fax_retry.lua (#2168) 2016-11-23 23:14:58 -07:00
Alexey Melnichuk 0951ef2fa3 Add. Use params in fax_retry.lua (#2114) 2016-11-21 22:07:02 -07:00
Alexey Melnichuk 28d3ebb51f Allow use odbc to store files (record/voicemail) in database. (#1535)
* Change. Allow use odbc to store files (record/voicemail) in database.

* Fix. Generate correct default config.
2016-09-04 13:05:47 -06:00
mafoo 0eb7d5ddac WhitespaceClean-resources/install/scripts
whitespace pass over files
for reference regex that was used s/[ \t]+(\r?\n)/\1/
2016-03-11 13:21:52 +00:00
markjcrane ce78189a80 Fix the FAX retry email. 2016-01-05 13:19:02 -07:00
markjcrane b8823225c5 Remove absolute_codec_string='PCMU,PCMA' from fax_retry.lua as it is not allowing PCMA. 2015-09-30 21:01:17 -06:00
markjcrane ee40ff8d4c Fax keep local updates. 2015-08-16 02:01:37 -06:00
Alexey Melnichuk 69717e31d5 Revert "Revert "Change. Use `require "resources.functions.config"` to load co…" 2015-08-11 05:06:33 +03:00
FusionPBX d1f3b05cf6 Revert "Change. Use `require "resources.functions.config"` to load config file." 2015-08-10 11:50:29 -06:00
FusionPBX 8d9430352b Merge pull request #1053 from moteus/require_config
Change. Use `require "resources.functions.config"` to load config file.
2015-08-10 11:31:35 -06:00
Alexey Melnichuk a8142f527a Change. Use only `require` to load function.
Fix. Remove multiple definition of same function.
2015-08-10 12:43:06 +04:00
markjcrane c4639445d9 Fix fax_retry.lua for domain_name and domain_uuid. Add [FAX] to the logging to the console. 2015-07-30 19:32:18 -06:00
Alexey Melnichuk 2234b42c07 Change. Use `require "resources.functions.config"` to load config file.
Change. Move `script_dir` definition into config file.
2015-07-22 13:20:51 +04:00
Mark Crane bb4bab2fa8 FAX sure domain_uuid is set at the right time. 2015-06-30 18:01:30 +00:00
Nate Jones 7fab6d2e88 Fax: Upgrade script to generate and store meta-data from existing fax files, fix Lua script to insert correct fax file path into db, JavaScript prompt corrections, adjust redirect after send to use new interface, fix delete so files on file system are removed (using path from db), fix paging and sorting on Inbox and Sent, fix TIF to PDF conversion for viewing sent/received faxes (if PDF version not present). 2015-05-09 05:22:29 +00:00
Mark Crane 391bbfee1d Fix some line spacing and one tab in fax_retry.lua. 2015-04-27 16:45:23 +00:00
Mark Crane 9685315023 Update fax retry to use fax_files.lua. 2015-04-27 14:32:29 +00:00
luis daniel lucio quiroz 24c0ccd114 for_fax now on fax 2015-01-27 14:51:57 +00:00
luis daniel lucio quiroz 7f175b4985 accountcode now on fax, PCMU/A as absolute codec string 2015-01-26 19:54:52 +00:00
Nate Jones 146c439960 Fax Retry (LUA): nulls to nils. 2014-11-29 15:24:02 +00:00
Mark Crane 98a1d4c987 Add fax_uuid to the fax_retry.lua script 2014-09-09 11:03:00 +00:00
Mark Crane 00c744b63a Add domain_uuid, fax_date, fax_epoch to fax retry 2014-09-07 05:18:35 +00:00
Mark Crane 6b03a112e0 Add Fax logging. 2014-09-04 07:12:47 +00:00
Mark Crane 872421be2d Change the wording of the comment in fax_retry.lua 2014-07-23 21:02:28 +00:00
Mark Crane c19bfaf955 Fix the fax_success null issue wit fax retry 2014-04-30 05:04:54 +00:00
Mark Crane b12c258e05 Fix the white space and tabs issues with fax_retry.lua. 2014-02-19 06:15:53 +00:00
Mark Crane de09d2f6b6 Fix a bug with fax_success in a few places it was set to numeric 0 but used in an IF statement as a string. Fax retry worked in many situations but this bug prevented it from working all the time. 2014-01-21 21:55:38 +00:00
Mark Crane 22fb5ee73c Faxing if the from_address is null then use the email_address. 2013-08-14 23:07:35 +00:00
James Rose 9d2526f78c Bug Fixes. Script errors due to nil value channel variables, and now sends email on busy fax. Better statistics reporting, busy/failure retries work as expected so it will now retry the same ecm/t38 type after a busy. 2013-07-01 20:08:08 +00:00
Mark Crane 896fdb37b2 Move the includes/install to resources/install 2013-06-09 02:42:36 +00:00