› VitalPBX Community Support › General Discussion › Fax to email problem
- This topic has 15 replies, 4 voices, and was last updated 11 months ago by
InTeleSync.
- Post
-
- May 14, 2019 at 2:56 pm
Hi, I have an extention setup to receive fax. If the line rings, PBX answers the calll and receive the fax. The tif file is generated in /var/spool/asterisx and according to the PBX log the /usr/share/ombutel/scripts/process_fax_in is executed without error.
The problem is that the email is never sent. If I look in the outgoing mail log there’s no entry about the received fax. Email from the PBX is working as Voicemail to Email works great. Fax to Email and Fax Enable are active on that extention avanced tab and a valid email address is present on the general tab. The tif file is ok as I’m able to copy it to my workstation and open it with a picture viewer. The only thing missing to make it work is the email with the attachement.
I’m running Vital PBX v2.3.1-1. Is there anything I forgot to enable to make this thing working?
Thank you
0
- Replies
-
- May 14, 2019 at 3:02 pm
- May 14, 2019 at 6:32 pm
@vincentpaquette Please tell exactly how you setup to receive a fax.
I had the same problem. Fax detection is not working at all. It will just not see or hear a Fax.
So i set Destination to “Fax Settings” and when called there is the fax-tone and it will recieve. But no e-mail will be send out. Other e-mails are going out fine.0- May 14, 2019 at 8:18 pm
@mrivera : About email settings, the smtp settings are configured and tested as well as the email address on my extention general tab. Fax to Email and Fax enable options are ON on the advanced tab of the extention. Is there any other settings for email?
@mo10 : my FAX DID is routed to a custom application with a fax setting destination pointing to my FAX extention. In my FAX ext, I enabled FAX Enabled and Fax to mail on advanced tab. It looks you have the same issue as I do.
0- May 15, 2019 at 4:26 pm
- May 15, 2019 at 6:34 pm
It’s not in the spam folder. If I look into /var/log/maillog, there’s no trace of an email being sent for the fax. Here’s my log for an incominf fax. I replaced senstive phone number by XXXXXXXXXX and email address.
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3398@trk-1-in:1] NoOp(“SIP/ombutel1-0003bf3b”, “Incoming call through: Trunk Cisco Call Manager”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3398@trk-1-in:2] Set(“SIP/ombutel1-0003bf3b”, “DID=3398”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3398@trk-1-in:3] Goto(“SIP/ombutel1-0003bf3b”, “cos-all-trunk,3398,1”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx_builtins.c: Goto (cos-all-trunk,3398,1)
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3398@cos-all-trunk:1] NoOp(“SIP/ombutel1-0003bf3b”, “Class of Services Trunk: All Permissions”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3398@cos-all-trunk:2] Gosub(“SIP/ombutel1-0003bf3b”, “sub-check-blacklist,s,1(a808134f923db08d,XXXXXXXXXX)”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3398@cos-all-trunk:3] Gosub(“SIP/ombutel1-0003bf3b”, “sub-setup-call-type,s,1(incoming)”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3398@cos-all-trunk:4] Gosub(“SIP/ombutel1-0003bf3b”, “sub-set-call-vars,s-incoming,1(XXXXXXXXXX,3398,a808134f923db08d)”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [s-incoming@sub-set-call-vars:3] Set(“SIP/ombutel1-0003bf3b”, “__INCOMING_DESTINATION=3398”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [s-incoming@sub-set-call-vars:6] Set(“SIP/ombutel1-0003bf3b”, “__CALL_DESTINATION=3398”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [app-incoming@sub-set-call-vars:5] Set(“SIP/ombutel1-0003bf3b”, “CDR(destination)=3398”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3398@cos-all-trunk:5] Goto(“SIP/ombutel1-0003bf3b”, “cos-all,3398,1”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx_builtins.c: Goto (cos-all,3398,1)
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3398@cos-all:1] NoOp(“SIP/ombutel1-0003bf3b”, “More than on digit pattern”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3398@cos-all:2] Gosub(“SIP/ombutel1-0003bf3b”, “s,1(3398)”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [s@cos-all:1] Set(“SIP/ombutel1-0003bf3b”, “EXTENSION=3398”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [s@cos-all:2] NoOp(“SIP/ombutel1-0003bf3b”, “Dialing 3398 from XXXXXXXXXX”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [s@cos-all:3] Gosub(“SIP/ombutel1-0003bf3b”, “sub-set-global-vars,s,1(3398,parking-1)”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [s@sub-set-global-vars:2] Set(“SIP/ombutel1-0003bf3b”, “__PICKUPMARK=3398”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [s@cos-all:4] Gosub(“SIP/ombutel1-0003bf3b”, “sub-set-call-vars,s,1(a808134f923db08d,3398,1,cos-all,ARS-all)”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [s@sub-set-call-vars:3] Set(“SIP/ombutel1-0003bf3b”, “_CALL_DESTINATION=3398”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [s@sub-set-call-vars:8] Set(“SIP/ombutel1-0003bf3b”, “CDR(destination)=3398”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [s@cos-all:8] GotoIf(“SIP/ombutel1-0003bf3b”, “0?emergency-calls,3398,1”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [s@cos-all:11] GosubIf(“SIP/ombutel1-0003bf3b”, “0?:cos-all-post,3398,1”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3398@cos-all-post:1] Gosub(“SIP/ombutel1-0003bf3b”, “sub-set-call-vars,app-incoming,1”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [app-incoming@sub-set-call-vars:5] Set(“SIP/ombutel1-0003bf3b”, “CDR(destination)=3398”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3398@cos-all-post:2] NoOp(“SIP/ombutel1-0003bf3b”, “Custom Application: FAX Human Ressource”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3398@cos-all-post:3] Goto(“SIP/ombutel1-0003bf3b”, “sub-fax-receiver,3399,1”) in new stack[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3398@cos-all-post:3] Goto(“SIP/ombutel1-0003bf3b”, “sub-fax-receiver,3399,1”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx_builtins.c: Goto (sub-fax-receiver,3399,1)
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3399@sub-fax-receiver:1] NoOp(“SIP/ombutel1-0003bf3b”, “FAX RCV: Start”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3399@sub-fax-receiver:2] Set(“SIP/ombutel1-0003bf3b”, “FAXOPT(faxdetect)=no”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3399@sub-fax-receiver:3] Set(“SIP/ombutel1-0003bf3b”, “EXT_FAX=3399”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3399@sub-fax-receiver:4] Set(“SIP/ombutel1-0003bf3b”, “FAX_ENABLED=yes”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3399@sub-fax-receiver:5] GotoIf(“SIP/ombutel1-0003bf3b”, “0?fax_disabled”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3399@sub-fax-receiver:6] Set(“SIP/ombutel1-0003bf3b”, “FAX_EMAIL=xxxxx@xxxxx.com”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3399@sub-fax-receiver:7] ExecIf(“SIP/ombutel1-0003bf3b”, “0?Set(FAX_EMAIL=”none”)”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3399@sub-fax-receiver:8] Set(“SIP/ombutel1-0003bf3b”, “FAX_FILE_NAME=/var/spool/asterisk/a808134f923db08d-fax-3399-in-1557943190.414302.tif”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3399@sub-fax-receiver:9] Set(“SIP/ombutel1-0003bf3b”, “NAME=FAX Human Ressource”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3399@sub-fax-receiver:10] StopPlayTones(“SIP/ombutel1-0003bf3b”, “”) in ne
w stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3399@sub-fax-receiver:11] ReceiveFAX(“SIP/ombutel1-0003bf3b”, “/var/spool/asterisk/a808134f923db08d-fax-3399-in-1557943190.414302.tif,f”) in new stack
[2019-05-15 13:59:50] VERBOSE[15739][C-0001e6fe] res_fax.c: Channel ‘SIP/ombutel1-0003bf3b’ receiving FAX ‘/var/spool/asterisk/a808134f923db08d-fax-3399-in-1557943190.414302.tif’
[2019-05-15 14:00:10] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [3399@sub-fax-receiver:12] Hangup(“SIP/ombutel1-0003bf3b”, “”) in new stack
[2019-05-15 14:00:10] VERBOSE[15739][C-0001e6fe] pbx.c: Spawn extension (sub-fax-receiver, 3399, 12) exited non-zero on ‘SIP/ombutel1-0003bf3b’
[2019-05-15 14:00:10] VERBOSE[15739][C-0001e6fe] pbx.c: Executing [h@sub-fax-receiver:2] System(“SIP/ombutel1-0003bf3b”, “/usr/share/ombutel/scripts/process_fax_in “/var/spool/asterisk/a808134f923db08d-fax-3399-in-1557943190.414302.tif” “a808134f923db08d” “3399” “1557943190.414302” “FAX Human Ressource” “xxxxx@xxxxx.com” “SUCCESS” “OK” “XXXXXXXXXX””) in new stack0- May 15, 2019 at 9:16 pm
- May 15, 2019 at 10:40 pm
I already check the call log and all info that you have provided, and, I think you forgot to enable fax detection in the inbound routes.
Check the picture attached.
0- May 16, 2019 at 6:55 am
- May 16, 2019 at 5:46 pm
- May 22, 2019 at 12:29 pm
- May 23, 2019 at 10:14 pm
- June 12, 2019 at 11:17 pm
- February 20, 2020 at 2:15 am
Am running 2.4.0-5 as multi-tenant with fax number in the primary tenant, and not getting any emails. Faxes are coming in fine and show in the Fax Viewer. Just no emails. Yes emails work in other parts of the system, such as voicemail attachments (using custom SMTP).
Creating a Fax Device is straightforward and understandable. Inbound Route for faxes is quite confusing.
1. Is an extension with Fax Enabled required in all of this?
2. At Inbound Route, there is an option for Fax Settings and Fax Detection. What else would go there? Fax Settings pointing to an extension, or Fax Device pointing to a fax device?
3. Also at Inbound Route there is the option for Inbound Destination, and same as #2 above, what would go here? Seems quite redundant to me. So please clarify.
Attached is a screenshot of my Inbound Route settings. Again, even when it works am not getting the email. Thanks.
0- February 20, 2020 at 3:00 am
Okay found the issue. The fax server is attempting to send mail out as ‘uucp’. My SMTP server is rejecting that as a valid sender.
Feb 19 21:46:51 pbx postfix/pickup[30743]: E6DD74A5AD2: uid=10 from=<uucp>
Feb 19 21:46:51 pbx postfix/cleanup[30797]: E6DD74A5AD2: message-id=<20200220024651.E6DD74A5AD2@pbx.intelesync.net>
Feb 19 21:46:51 pbx postfix/qmgr[30744]: E6DD74A5AD2: from=<uucp@intelesync.com>, size=32350, nrcpt=1 (queue active)
Feb 19 21:46:52 pbx postfix/smtp[30799]: E6DD74A5AD2: to=<sales@intelesync.com>, relay=email-smtp.us-east-1.amazonaws.com[3.212.180.221]:587, delay=0.23, delays=0.01/0/0.09/0.12, dsn=5.0.0, status=bounced (host email-smtp.us-east-1.amazonaws.com[3.212.180.221] said: 554 Message rejected: Email address is not verified. The following identities failed the check in region US-EAST-1: PBX Fax Notifications <fax@pbx.intelesync.net> (in reply to end of DATA command))
Feb 19 21:46:52 pbx postfix/cleanup[30797]: 2BB714A5AD3: message-id=<20200220024652.2BB714A5AD3@pbx.intelesync.net>
Feb 19 21:46:52 pbx postfix/qmgr[30744]: 2BB714A5AD3: from=<>, size=34548, nrcpt=1 (queue active)
Feb 19 21:46:52 pbx postfix/bounce[31009]: E6DD74A5AD2: sender non-delivery notification: 2BB714A5AD3
Feb 19 21:46:52 pbx postfix/qmgr[30744]: E6DD74A5AD2: removed
Feb 19 21:46:52 pbx postfix/smtp[30799]: 2BB714A5AD3: to=<uucp@intelesync.com>, relay=email-smtp.us-east-1.amazonaws.com[100.24.148.21]:587, delay=0.1, delays=0/0/0.09/0, dsn=5.0.0, status=bounced (host email-smtp.us-east-1.amazonaws.com[100.24.148.21] said: 501 Invalid MAIL FROM address provided (in reply to MAIL FROM command))
Feb 19 21:46:52 pbx postfix/qmgr[30744]: 2BB714A5AD3: removedSeems to me the fax server should be pulling the same SMTP info as the rest of the system, particularly the sender email account, or be able to specify the sender email address in Global Fax Settings or Fax Devices.
So please address this email issue, and please explain the apparent redundancy of the Inbound Route destination settings and the “proper” way to do it.
0- February 20, 2020 at 3:03 am
- You must be logged in to reply to this topic.