Commit Graph

137 Commits

Author SHA1 Message Date
FusionPBX 2d2869c1a1
Require the fax_extension to be numeric.
Need to validate that the fax_extension really is numeric. Also replace event_socket_mkdir that makes a directory with mkdir.lua and use a php mkdir function instead. We want to offload this off of FreeSWITCH and its safer to use the PHP function.
2021-11-02 21:55:15 -06:00
FusionPBX f6f2f1c77f
Fix custom fax cover_logo. 2021-07-14 18:54:03 -06:00
FusionPBX 89de896e75
Changed to maintain compatibility with newer version of ghost script.
Credit to demonspork for this fix.
2021-06-12 13:15:56 -06:00
FusionPBX c4219d7fe0
Add three new permissions fax_subject, fax_message, and fax_footer. 2021-06-09 10:56:10 -06:00
FusionPBX d0fbbd6a2e
Use the new fax_extension_view_domain instead of if_group function 2021-03-18 10:37:38 -06:00
emaktech 5d3b2d3226
Optimize Fax Conversion Quality
Added additional command line switches to the Ghostscript command which greatly improves the output quality and legibility of converted faxes.

Now using a simple threshold method - 75% threshold to determine if a pixel will be black or white.
Dithering is turned off completely.
Also switched to newer tiffg4 compression method.
2020-11-17 16:00:23 -05:00
fusionate 4f29228768 Fax Server: Better compatibility with current libtiff-tools. 2020-11-05 16:08:27 -07:00
agree 73e9136344
Fix faxing to multiple numbers (#5503) 2020-10-01 17:08:53 -06:00
Nate 75b46b3298 Fax - Preview/Send: Better cover_logo handling. 2020-05-30 20:27:26 -06:00
Nate e8494facee Multiple: Add IDs to form tags, remove empty action attributes. 2020-03-05 10:02:25 -07:00
Nate 029c7174b4 Multiple - Add IDs to common/default action buttons. 2020-03-05 00:05:45 -07:00
Nate 1ceccf698e Fax Server: List view, button, bulk delete via class, etc. 2020-01-29 11:41:12 -07:00
Nate d79244b39d Fax Server: Add window titles. 2020-01-06 11:43:43 -07:00
agree d20a403679 added toll allow to fax server (#4936) 2019-12-08 22:37:12 -07:00
agree 7e6801e798 Update fax_send.php (#4844) 2019-11-14 21:56:07 -07:00
Nate 2f7fb47a76 Fax Send: Token integration. 2019-09-19 08:35:52 -06:00
FusionPBX 1b4e3787e1 Update fax_send.php 2019-08-30 01:34:59 -06:00
Nate 733ba98dc6 Update to Bootstrap v4.3.1, jQuery 3.4.1. Adjustments to support updates. 2019-08-20 18:15:50 -06:00
chansizzle fad4356619 Update fax_send.php (#4443)
* Update fax_send.php

* Update fax_send.php
2019-08-15 15:29:05 -06:00
Nate d23c5d84c4 Fax Server: Database class integration. 2019-08-07 18:59:26 -06:00
FusionPBX eca86a9e6a Update fax_send.php 2019-06-19 08:12:40 -06:00
FusionPBX a1a68faf0d Update fax_send.php 2019-02-12 12:49:13 -07:00
FusionPBX d6dc5519d4 Update fax_send.php 2018-09-20 00:52:53 -04:00
FusionPBX 68ceaed6fe Update fax_send.php 2018-09-19 23:34:20 -04:00
AlexanderDCrane 243906c5f4 Update fax_send.php (#3392) 2018-08-31 14:33:17 -06:00
markjcrane a72f1d6266 Change messages class to message 2018-08-31 03:09:01 +00:00
AlexanderDCrane 02841475f6 Update fax_send.php (#3302) 2018-08-27 20:41:39 -06:00
FusionPBX ebbeeab165 Update fax_send.php 2018-05-02 11:41:52 -06:00
FusionPBX 9f60afb146 Update fax_send.php 2018-02-06 18:24:46 -07:00
Mafoo 3cab4401cf Enhance - More messages::add updates (#2662)
convert more messages over to messsagse::add
2017-06-09 20:13:40 -06:00
Harald Gutmann dda76e5beb allow page-break on fax_message & fax_footer (#1978) (#2378)
* enable page-breaks on fax messages

* fix footer & allow page break

* update footer placement to work properly on single page
2017-02-16 19:48:17 -07:00
Luis Daniel Lucio Quiroz 478f164024 Be sure FAX path exists before uploading (#2345) 2017-02-07 21:37:48 -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 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 7f98064094 Update fax_send.php
Get fax variables from default settings and use them for sending.
2016-11-11 13:19:52 -07: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
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
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
markjcrane 51ea37ed18 Rename the EventSocket class. 2016-04-02 19:23:16 -06: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
Alexey Melnichuk df8da0f5ce Change. `Send` button redirect to `Active` page. 2015-12-09 13:00:42 +03:00
Alexey Melnichuk 0805ad4c18 Merge branch 'master' into fax_queue 2015-12-09 12:37:55 +03:00
markjcrane 532e01b5c0 Remove count($_SESSION["domains"]) > 1 from the as the domain name should always be part of the fax directory path. 2015-12-08 21:59:09 -07:00
FusionPBX d8f8346314 Merge pull request #1280 from moteus/fax_path_domain_name
Change. Use path with domain name for faxes for single tenant installation.
2015-12-04 11:44:33 -07:00
Alexey Melnichuk f01439a2bb Fix. send fax by user listed in fax server list 2015-12-04 21:14:33 +03:00
Alexey Melnichuk 5b1fef316a Fix. send fax by user listed in fax server list 2015-12-04 21:09:25 +03:00
Alexey Melnichuk c543c42ffa Change. Use path with domain name for faxes for single tenant installation. 2015-12-04 12:57:30 +03:00
Alexey Melnichuk 5339e39db8 Add. Send reply message after fax task done. 2015-11-30 11:57:09 +03:00
markjcrane 89c2f4ecb5 Correct the primary key of v_fax_tasks table. Coding standards require primary key to remove v_ prefix, singular form and add a _uuid postfix. Result is task_uuid has been changed to fax_task_uuid. 2015-11-25 08:51:54 -07:00
Alexey Melnichuk 9f59353061 Change. Use function to deal with fax_queue in fax_send.php. 2015-11-23 14:57:44 +03:00
Alexey Melnichuk 2f88d1d985 Fix. Decode email message from quoted-printable/base64.
Fix. Allow set custom fonts to support non latin alphabet.
2015-11-20 14:45:06 +03:00
Alexey Melnichuk b3cc3a8887 Add. Supports MySQL/SQLite to fax queue. 2015-11-20 10:38:51 +03:00
Alexey Melnichuk c146f9fc4f Add. Allow specify DTMF in parentheses in phone number.
E.g. `123456 (PP789)`
2015-11-19 14:30:06 +03:00
Alexey Melnichuk 17f435fb22 Add. Web UI to configure fax_queue. 2015-11-18 15:37:41 +03:00
Alexey Melnichuk 4fde7dfc80 Fix. multiple calls fax_send caused error.
Fix. require EventSocket implicitly.
Fix. require `test` class.
2015-11-12 14:00:01 +03:00
markjcrane f64e96c4c6 Remove absolute_codec_string='PCMU,PCMA' as it failed to allow PCMA. 2015-09-30 20:56:59 -06:00
Alexey Melnichuk e97ca204fd Fix. Send fax via web on Windows.
* tiffXXX utils did not work with paths like `C:/xxx/ddd.tif`
 * using `gswin32c` instead of `gs`
 * using `copy` function instead of `cp` command
2015-07-09 16:12:27 +04:00
Mark Crane 2cbcbc0f1a Remove the default settings fax prefix and move it to the FAX server table. 2015-05-21 03:48:37 +00:00
Mark Crane 5ff4e02741 Add category: fax, subcategory: prefix, type: text and set a value of some kind of prefix. 2015-05-21 03:05:07 +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
luis daniel lucio quiroz 13c76d0d0a do not change headers, add yours 2015-03-23 01:53:25 +00:00
Nate Jones 2c97d2952c Fax Server: Additional checks on folder presence and permissions. 2015-03-22 08:22:51 +00:00
Errol Samuels 73edf8f99b Fixed problem with accountcode not passing in SIP Header 2015-03-21 09:02:51 +00:00
Nate Jones 1e6d3995cf Fax Server: New Fax - Minor layout adjustment for consistency. 2015-02-24 18:39:21 +00:00
Nate Jones 2f22585704 Fax Server: Move default FusionPBX cover page logo graphic to resources folder. 2015-02-19 23:55:44 +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
Mark Crane c5755666cb Add the text class to more of the applications. 2015-01-18 10:06:08 +00:00
Nate Jones 669e66f0f4 Fax Server: Included check typo, and pull contact email from contact_emails table. 2014-11-29 15:29:49 +00:00
Nate Jones 9bde0c92d6 Fax Server: Fixed uninitialized variable error. 2014-11-29 13:51:05 +00:00
Nate Jones 0fec6216ef Fax Server: Send faxes to multiple recipients at once, customizable 'Subject Tag' for Remote Inbox viewing, preparations for Email-to-Fax functionality. 2014-11-29 13:32:42 +00:00
Nate Jones f3e726eeea Fax Server: Added interface to access (via IMAP or POP3) the inbound fax target email account. Required: PHP IMAP extension (obviously). 2014-11-27 13:37:08 +00:00
Nate Jones be47e75eab Contacts: Ability to add unlimited Emails and URLs. Ability to specify a primary Email, Address, URL, and Number. Ability to select or define a custom label for Emails, Addresses, URLs, and Numbers (similar to Google Contacts). 2014-11-19 03:44:41 +00:00
Nate Jones c878cb406e Fax Server: Only display allowed (shared and/or private) contacts in recipient select box when creating a new fax. 2014-10-18 08:58:59 +00:00
Nate Jones 2226f442d0 Fax Server: Added clear (reset) buttons to file input fields. 2014-10-13 20:56:36 +00:00
Nate Jones d82374638e Fax Server: Restored page count detection. 2014-09-09 04:10:34 +00:00
Nate Jones 25e31bc95c Fax Server: Modified file conversion methods, misc minor changes. 2014-09-09 03:41:23 +00:00
Mark Crane 9c35d9f2fe Add copy fax file to sent directory not ready to do in lua without additional changes to the interface 2014-09-07 05:38:27 +00:00
Nate Jones a4b176cf58 Fax Server: Hide Contacts select box if no Contacts with a fax number exist. Order Contacts by name (company, first, last, nick) in select box, cleaned up code a bit. 2014-09-05 02:58:47 +00:00
Nate Jones 7c0d9e440d Fax Server: Added ability to select an existing Contact as the fax Recipient.
Updated jquery.autosize.input.js to latest version.
2014-09-05 02:29:29 +00:00
Nate Jones 07814a945c Fax Server: Removed echo of array in fax_send.php. 2014-09-04 07:01:17 +00:00
Nate Jones cca4fee7c9 Fax Server: Multiple file upload, customize contact info line and footer in cover sheet, other minor tweaks. 2014-09-04 06:57:26 +00:00
Nate Jones 7a9df29009 Fax Server: Select up to 5 files (TIF or PDF) to send. Added Default Setting for default page size (Auto, Letter, Legal, A4), or override at time of sending fax. 2014-09-04 00:57:09 +00:00
Nate Jones 21dc61fa8e Fax Server: Misc enhancements, including multilingual and customizable cover page generation, fax resolution selection, etc. More to come.
FPDI and TCPDF libraries added to accommodate the above, and future enhancements.
2014-09-03 02:41:11 +00:00