Commit Graph

311 Commits

Author SHA1 Message Date
netpro25
ee753a3d50 Add multiple email fields (#2365)
Add multiple email fields to make entering multiple email addresses easier.
2017-02-08 14:32:07 -07:00
Luis Daniel Lucio Quiroz
478f164024 Be sure FAX path exists before uploading (#2345) 2017-02-07 21:37:48 -07:00
Luis Daniel Lucio Quiroz
6b6a0dab18 PHP bin is not always php5 (#2350)
not everybody names php binary as php5
2017-02-07 21:31:52 -07:00
FusionPBX
74031d8bec Update app_config.php 2017-02-01 13:22:24 -07:00
FusionPBX
61070ffeaf Update fax_send.php
Prevent the fax cover page from exceeding 1 page.
2017-01-22 22:34:47 -07:00
FusionPBX
b0433a6cf3 Update app_config.php 2017-01-12 23:31:10 -07:00
FusionPBX
aa933d5171 Update app_defaults.php 2017-01-12 23:27:11 -07:00
jebsolutions
f13020b70c Minor fixes to HTML markup. (#2274)
call_flow_edit.php
- fix: <script> tag output before html headers
2016-12-27 10:06:30 -07:00
FusionPBX
db9168adff Update fax_send.php
Fax conversion failed until adding the /tmp as the home directory in this way.
2016-12-17 12:47:38 -07:00
FusionPBX
1548cfebf9 Update fax_send.php
Adjust the spacing for better consistency matching the rest of the code.
2016-12-02 21:35:40 -07:00
FusionPBX
aa02eb4f65 Update fax.php 2016-12-02 01:16:38 -07:00
FusionPBX
7f98064094 Update fax_send.php
Get fax variables from default settings and use them for sending.
2016-11-11 13:19:52 -07:00
FusionPBX
f24df67e35 Update app_defaults.php
Ignore ringing to improve fax success rate.
2016-11-11 13:05:51 -07:00
jebsolutions
54d7e41f6e app/fax/app_defaults.php: (#2031)
+ fix: duplicate check only within same default_setting_category.  This fixes the bug where "keep_local" for fax wasn't being created because there was a "keep_local" for voicemail.  Without this fix you will get a lua error due to the field not being set and nothing shows up in the sent faxes log.

fax/fax_log_view.php:
+ fix: back button text is missing.  Copied correct localized text code from another fax page that worked.

app/fax/app_config.php
+ fix: date field is now timestamp for postgres+mysql.  This fixes the listing only showing the date, not the time as well.

Note: app->defaults doesn't change field types.  Existing installs will have to manually update the field type e.g. for postgres:

sudo -sHu postgres
\d fusionpbx
alter table v_fax_logs alter column fax_date type timestamp without time zone;
\q
2016-11-03 16:24:40 -06:00
FusionPBX
d5f8027ed1 Update fax.php 2016-10-23 00:20:29 -06:00
FusionPBX
c4d35d2cb8 Update app_defaults.php 2016-10-22 21:21:17 -06:00
FusionPBX
20ef9053aa Update app_defaults.php 2016-10-22 16:37:56 -06:00
FusionPBX
8c5c82de7a Update fax_edit.php
Remove the unofficial billing from fax edit.
2016-10-08 22:16:54 -06:00
FusionPBX
798fe98991 Update fax.php
Update the FAX dialplan to use the updated orm class.
2016-10-08 22:13:46 -06:00
Chris Black
0d24ad70e7 fix fax multiple files. (#1963)
Added some changes from ICR regarding the text/plain emails, added a
uuid to the file name when getting saved to the FS in the event that
multiple emails come in with the same exact file name and also reset
the tif_files in fax_send as it was just adding to the end of the array
and creating bad tiffcp commands.
2016-09-30 15:47:22 -06:00
hargut
903dabfa6c Fix e-mail attachment handling / conversion & allow local emails to be valid (#1921)
* Enable local email addresses to be valid. E.g required for local Fax submission.

* Fix filenames & allow spaces in filenames.

* Fix attachment file names.

* Revert "Fix filenames & allow spaces in filenames."

This reverts commit 0908f42cc7.
See commit ecf490ff79 for the proper fix.
2016-09-19 08:54:58 -06:00
Alexey Melnichuk
05731394b5 Fix. use new parse_message function to Fax Inbox page. (#1559)
* Fix. use new parse_message function to Fax Inbox page.

* Fix. display messages without attachment.
2016-08-25 16:10:22 -06:00
FusionPBX
2a7e6cbd2e Update fax_edit.php 2016-08-13 14:22:11 -06:00
markjcrane
f5959516ed Update recur_sounds_dir to return an array rather than using a global variable. 2016-08-04 09:49:57 -06:00
markjcrane
bd23c78670 Use FreeSWITCH to run mkdir so it inherits its own user and group permissions. 2016-06-28 15:18:40 -06:00
Mafoo
71525c26b0 I got the permissions wrong (#1616)
it should have been in octal mod (leading 0)
also updated the fax application as it needs the stickygid too
2016-05-26 05:55:46 -06:00
markjcrane
097a5d8ade Check the missing array has content before processing it. 2016-05-04 00:22:35 -06:00
Alexey Melnichuk
81b965496f Fix. Set all allowed extensions while default settings. 2016-05-02 23:59:47 -06:00
markjcrane
c3b12c217d Cleanup the indentation ... tabs and whitespace after the last pull request. 2016-04-28 16:56:44 -06:00
Harry G. Coin
cc553a70c5 Cleanups.
Remove default 192.168.42.42/32 allow.
Restore missing app/fax/resources/functions/parse_attachments.php to satisfy pre-existing include
Fix so sql in voicemail app works if var undefined.  Warning: don't know if non Mariadb's like cast(...) .
Cleanup close in event socket.
2016-04-25 22:16:19 -05:00
Harry G. Coin
f02028629a fixes so cli installs/upgrades work.
Also another step along the way allowing freeswitch to run -u -g freeswitch and fusionpbx to run -u -g www-data
2016-04-25 21:26:26 -05:00
Harry G. Coin
077059eeb1 Fix so fusionpbx doesn't fail on servers with php versions later than 5. (e.g. php7).
Also a few warning causes fixed.
Also, one step along the way to allow freeswitch to be u freeswitch g freeswitch and fusionpbx to run www-data:www-data.
2016-04-25 20:52:21 -05:00
Harry G. Coin
bda6861f88 \r\n --> \n
Cause all the .php files containing lines ending with \r\n to instead end with \n.

DYI with:

find fusionpbx -type f -name '*.php' -exec dos2unix '{}' \;
2016-04-25 20:30:23 -05:00
Harry G. Coin
8abe003a71 The goal is to increase confidence in fusionpbx, one step is to run by default with error_reporting (E_ALL ^ E_NOTICE);
So, please find in this set numerous small changes which eliminate numerous php warning messages.

Also, a small bug fix in an sql statistics routine, naming a count(*) field as count, so displaying correct detail.

If any of the proposed changes are omitted, the relevant page will experience php warnings.

There are no doubt fusionpbx pages I've yet to visit that still generate warnings, this set is nearly certainly not comprehensive.
2016-04-25 20:19:58 -05:00
Alexey Melnichuk
85454fbc9c Add. allowed_extension array to specify allowed files in email. 2016-04-14 17:38:33 +03:00
Alexey Melnichuk
eb1a13fc23 Change. parse_message do full parse test and attachments.
Change. use only `text/plain` part to build front page.
Change. use only `attachment` but not `inline` files to build fax file.
2016-04-08 12:31:13 +03:00
Alexey Melnichuk
c9ba145f1d Fix. get text part of email message with single part email. 2016-04-07 13:11:24 +03:00
markjcrane
51ea37ed18 Rename the EventSocket class. 2016-04-02 19:23:16 -06:00
reliberate
5974b686e9 Apps: Integrate ability to set paging via a Default/Domain/User Setting (domain > paging > numeric). 2016-03-28 23:02:11 -06:00
Alexey Melnichuk
f7b7da0dd4 Fix. Display correct gateway name in URI on Fax Active page 2016-03-23 14:02:33 +03:00
mafoo
6eed9935d4 WhitespaceClean-app/batch_2
whitespace pass over files
for reference regex that was used s/[ \t]+(\r?\n)/\1/
2016-03-11 12:01:24 +00:00
markjcrane
af18c963c0 Rename .project.ROOT to project_root.php this conforms better with current file naming standards. 2016-02-22 14:01:18 -07:00
markjcrane
fc255818c6 If the user is in the superadmin or admin group and user group it was preventing the fax_forward number from being updated. 2016-02-11 00:19:44 -07:00
markjcrane
bc6d44a6c1 Fax add a way to change the inbound fax file name. 2016-02-10 21:44:03 -07:00
mafoo
90e9b0a149 Corrected selected statements 2016-02-03 17:32:07 +00:00
mafoo
22fe132900 Fix for phrases are actually phrase_uuid not phrase_name.domain_uuid 2016-02-03 15:08:28 +00:00
Mafoo
56b34c34ca changed throw Exception to die
nothing ever eval runs the root.php so changed to die to cause a immediate report of error and stop code processing.
2016-01-20 11:30:31 +00:00
Mafoo
87dbd6b428 Added check for if .project.ROOT is missing
If a installation is missing the .project.ROOT previously it would just use the last search path as the project root (wrong) this will cause a Exception should it be unable to find it
2016-01-18 09:38:16 +00:00
markjcrane
fa081456b1 Change $_SERVER['DOCUMENT_ROOT'].PROJECT_PATH to $_SERVER["PROJECT_ROOT"]. 2016-01-17 00:01:13 -07:00
Matthew Vale
6999198492 added logic in cli mode to chdir to the correct directory first
the webserver would normally do this for us, but we need to do it
2016-01-14 16:25:05 +00:00