Email to Fax Help?

Status
Not open for further replies.

Kenny Riley

Active Member
Nov 1, 2017
243
39
28
37
I am running on the Master Branch and I have tried my luck in getting email to fax working via this thread:
https://www.pbxforums.com/threads/email-to-fax-under-fax-server.905/page-2

I've performed the following steps..

1.) Ensured that the send_mode queue enabled option is set to false in Default Settings

2.) Create a Gmail account with IMAP enabled

3.) Added a crontab entry as root to run every two minutes:
*/2 * * * * root wget --no-check-certificate --delete-after https://my.fusion.domain.net/app/fax/fax_emails.php

4.) Deleted all of the items in the GUI for the tenant that I am testing with: App > Fax Server > Sent & Log

5.) Everything I am reading says to delete the files above via CLI as well:
/var/lib/freeswitch/storage/fax/sent
/var/lib/freeswitch/storage/fax/temp

But these directories do not exist on my system.. however /var/lib/freeswitch/storage/fax/TENANT/sent and /var/lib/freeswitch/storage/fax/TENANT/temp do exist.. so I've deleted all of the files in these directories for the tenant that I am testing with.

6.) Restarted Freeswitch service

I've attached my fax server settings for the tenant in question to this thread.

I am sending an email to my Gmail address from an email on the approved senders list with the subject [out]PHONE-NUMBER and attached a PDF file to fax and then watched the /var/log/syslog and can see that my cron is running:

Feb 28 21:08:01 vpbx01-nodea CRON[12688]: (root) CMD (root wget --no-check-certificate --delete-after https://my.fusion.domain.net/app/fax/fax_emails.php)

However I'm not seeing any faxes for this tenant being sent when I look in the sent items or the log.

Any help would be greatly appreciated!
 

Attachments

  • email-fax-settings.png
    email-fax-settings.png
    85.2 KB · Views: 19

markjcrane

Active Member
Staff member
Jul 22, 2018
499
177
43
49
I've heard from multiple sources that this is broken and needs to be fixed.
 

cfikes

New Member
May 9, 2018
10
0
1
42
I've heard from multiple sources that this is broken and needs to be fixed.

I actually just rolled this solution out at our school and its working great. With everything there could be improvements but it is working as expected. I did run into some things that could be documented a little different, is there any way I can contribute to the documentation?

Thanks for the awesome work on FusionPBX!
 

Kenny Riley

Active Member
Nov 1, 2017
243
39
28
37
Hi cfikes

Any way that you could point me in the right direction from the steps I’ve taken listed above?
 

cfikes

New Member
May 9, 2018
10
0
1
42
Hi cfikes

Any way that you could point me in the right direction from the steps I’ve taken listed above?

First thing i would do is run the "https://my.fusion.domain.net/app/fax/fax_emails.php" directly in the browser, if you get any output, your cron job is setup incorrectly. As soon as i get to the office I will pull up my config and post it back to you. Feel free to contact me on discord at feekes#0447 can even share my screen with my setup if it can help.
 

cfikes

New Member
May 9, 2018
10
0
1
42
This is how i have my crontab setup.
Code:
*/2 * * * *  wget --no-check-certificate -qO- https://localhost/app/fax/fax_emails.php &> /dev/null
 
Status
Not open for further replies.