fusionpbx/resources
jebsolutions b0bde877d1 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
..
ace Edit: Added Find/Replace and Go To (Line) features in toolbar, rename Ace application folder. 2016-02-24 14:44:32 -07:00
bootstrap BugFix-Bootstrap Remove map file 2016-06-27 16:47:07 +01:00
captcha Update img.php 2016-12-11 22:56:15 -07:00
classes Update schema.php 2016-12-18 16:48:24 -07:00
edit_area WhitespaceClean-resources/edit_area 2016-03-11 13:29:29 +00:00
fonts Theme: Fix bug in web font loader. 2016-05-05 20:10:19 -06:00
fpdf Fix fpdf so that it is capable of UTF-8. 2015-01-29 08:36:49 +00:00
fpdi \r\n --> \n 2016-04-25 20:30:23 -05:00
functions Add resources/functions/password.php from https://github.com/ircmaxell/password_compat. This will provide compatibility for the functions available in 5.5. This library requires PHP >= 5.3.7. PHP prior to 5.3.7 contains a security issue with its BCRYPT. 2013-09-01 06:05:59 +00:00
install fixes bug #2270 reported by volga629 (#2276) 2016-12-27 17:49:57 -07:00
javascript Move includes/javascript to resources/javascript. 2013-06-09 04:54:33 +00:00
jquery Revert "Revert "Revert "search selects""" 2016-03-24 22:25:18 -06:00
momentjs Added (Really!): Moment.js - used by jQuery DateTimePicker plugin. 2016-03-25 16:52:07 -06:00
phpmailer Rolling back PHPMailer from version 5.2.14 to 5.2.2. The latest version had a problem with smtp authentication set to false it still tried to authenticate. 2016-03-15 02:58:23 -06:00
pop3 WhitespaceClean-resources/others 2016-03-11 13:57:01 +00:00
tcpdf Fax Server: Misc enhancements, including multilingual and customizable cover page generation, fax resolution selection, etc. More to come. 2014-09-03 02:41:11 +00:00
templates Update {$mac}.xml 2016-12-20 15:01:44 -07:00
app_languages.php Update app_languages.php 2016-11-25 23:41:52 -07:00
calendar_lw_layers.js WhitespaceClean-resources/others 2016-03-11 13:57:01 +00:00
calendar_lw_menu.js WhitespaceClean-resources/others 2016-03-11 13:57:01 +00:00
calendar_popcalendar.js WhitespaceClean-resources/others 2016-03-11 13:57:01 +00:00
check_auth.php Update check_auth.php 2016-12-11 23:37:59 -07:00
cmd.php Change the path for includes/require.php to the resources directory. 2013-07-06 06:03:27 +00:00
config.php.dist move the file 2013-07-06 05:23:01 +00:00
countries.php \r\n --> \n 2016-04-25 20:30:23 -05:00
download.php Change the path for includes/require.php to the resources directory. 2013-07-06 06:03:27 +00:00
email_address_validator.php WhitespaceClean-resources/others 2016-03-11 13:57:01 +00:00
footer.php Update footer.php 2016-12-13 08:47:22 -07:00
functions.php Update functions.php 2016-12-24 14:07:03 -07:00
header.php Additional work to improve the install, template and the menu. 2016-03-26 12:22:15 -06:00
licenses.php WhitespaceClean-resources/others 2016-03-11 13:57:01 +00:00
login.php Update login.php 2016-12-13 08:56:02 -07:00
paging.php Apps: Integrate ability to set paging via a Default/Domain/User Setting (domain > paging > numeric). 2016-03-28 23:02:11 -06:00
pdo.php Add the missing function to pdo.php. 2016-04-29 11:21:26 -06:00
pdo_vm.php WhitespaceClean-resources/others 2016-03-11 13:57:01 +00:00
persist_form.php Move persist_form.php to the resources directory. 2013-07-06 06:23:12 +00:00
persist_form_var.php Move persist_form_var.php to the resources directory. 2013-07-06 06:20:17 +00:00
php.php Update php.php 2016-12-11 22:59:48 -07:00
recaptchalib.php WhitespaceClean-resources/others 2016-03-11 13:57:01 +00:00
require.php Fix path issue in require.php. 2016-05-05 14:18:59 -06:00
root.php Cleanup the indentation ... tabs and whitespace after the last pull request. 2016-04-28 16:56:44 -06:00
schema.php Remove the a1 hash which breaks integration with Asterisk. a1 hash was also undermined by reverse authentication. 2014-12-09 09:45:14 +00:00
secure_download.php Change the path for includes/require.php to the resources directory. 2013-07-06 06:03:27 +00:00
switch.php Update switch.php 2016-12-23 01:21:14 -07:00
wysiwyg.php WhitespaceClean-resources/others 2016-03-11 13:57:01 +00:00