FreePBX | Register | Issues | Wiki | Portal | Support

Using FaxPRO, fax received, but not attachment in the email


(Michael Katz) #1

Asterisk version 13.18.0
Fax Configuration Professional 13.0.38.7

When a fax comes in, it is available in /var/spool/asterisk/fax directory but it is not sent in the e-mail. The e-mail IS sent, but without an attachment.

This has been happening for quite a while.

Any thoughts?


Using FaxPRO, fax received, but not attachment in the email, part 2
(Mohit Mishra) #2

Please check Attachment Format option under User Management -> Edit User-> Fax section.

Thanks


(Michael Katz) #3

Hi Mohit,
I confirmed that the settings are as you suggested. I have the “Store Locally” set to YES rather than INHERIT but suspect that should be OK.
Any further ideas?
Mike


(Dave Burgess) #4

Mike,

The last time I saw a thread like this, it was a ghostscript error - one of the programs in the conversion pipeline wasn’t installed (or could be failing) which would kill the file conversion. Seems to me it was something like an option that had disappeared but the exec string hadn’t been removed.

Try looking at your gscript execs - also try converting something using the “conversion” script in the fax configuration.


(Michael Katz) #5

Hi Dave, pardon my ignorance, but I have no idea how to check the conversion script, nor do I know how to check for a ghostscript error. Can you point me to a tutorial to get me started?

When I look in the /var/spool/asterisk/fax folder, sometimes I see the TIF file. and sometimes I see both a TIF & PDF file, but in neither case are they sent with the e-mail. Just to be clear, the e-mail is sent, but the attachment is not included.

Thanks,
Mike


(Dave Burgess) #6

The conversion process is reported in the ‘/var/log/asterisk/full’ log file, so you should be able find the script that’s doing the conversion. The ‘attachment’ of the file to the mail message should also be reported in there (IIRC), so looking through that file should give you some indication of what’s happening.

There’s no need to grovel through the /var/log/maillog files - the mail is getting sent and delivered. It’s obviously before that step, so it should be getting documented in the …/full file.


(Michael Katz) #7

Hi Dave,

I retrieved the full log, and I think I have the relevant lines below. I see the failure, but I don’t understand it. Furthermore, the fax is in /var/log/asterisk/fax, but it was not delivered to me via email. This is happening now with all faxes my system receives.

Appreciate your assistance.

[2019-07-18 10:46:49] VERBOSE[16934][C-00006f0f] pbx.c: Executing [16508513429@from-pstn:25] Goto(“SIP/FlowRoute-000078cb”, “ext-fax,27,1”) in new stack
[2019-07-18 10:46:49] VERBOSE[16934][C-00006f0f] pbx_builtins.c: Goto (ext-fax,27,1)
[2019-07-18 10:46:49] VERBOSE[16934][C-00006f0f] pbx.c: Executing [27@ext-fax:1] Set(“SIP/FlowRoute-000078cb”, “FAX_FOR=MikeDesk (27)”) in new stack
[2019-07-18 10:46:49] VERBOSE[16934][C-00006f0f] pbx.c: Executing [27@ext-fax:2] NoOp(“SIP/FlowRoute-000078cb”, “Receiving Fax for: MikeDesk (27), From: “Anonymous” “) in new stack
[2019-07-18 10:46:49] VERBOSE[16934][C-00006f0f] pbx.c: Executing [27@ext-fax:3] Set(“SIP/FlowRoute-000078cb”, “FAX_RX_USER=27”) in new stack
[2019-07-18 10:46:49] VERBOSE[16934][C-00006f0f] pbx.c: Executing [27@ext-fax:4] Set(“SIP/FlowRoute-000078cb”, “FAX_RX_EMAIL_LEN=17”) in new stack
[2019-07-18 10:46:49] VERBOSE[16934][C-00006f0f] pbx.c: Executing [27@ext-fax:5] Goto(“SIP/FlowRoute-000078cb”, “s,receivefax”) in new stack
[2019-07-18 10:46:49] VERBOSE[16934][C-00006f0f] pbx_builtins.c: Goto (ext-fax,s,3)
[2019-07-18 10:46:49] VERBOSE[16934][C-00006f0f] pbx.c: Executing [s@ext-fax:3] StopPlayTones(“SIP/FlowRoute-000078cb”, “”) in new stack
[2019-07-18 10:46:49] VERBOSE[16934][C-00006f0f] pbx.c: Executing [s@ext-fax:4] ReceiveFAX(“SIP/FlowRoute-000078cb”, “/var/spool/asterisk/fax/1563482809.218282.tif,f”) in new stack
[2019-07-18 10:46:49] VERBOSE[16934][C-00006f0f] res_fax.c: Channel ‘SIP/FlowRoute-000078cb’ receiving FAX ‘/var/spool/asterisk/fax/1563482809.218282.tif’
[2019-07-18 10:47:03] WARNING[16934][C-00006f0f] res_fax_spandsp.c: WARNING T.30 Non-ECM carrier not found
[2019-07-18 10:47:20] VERBOSE[16934][C-00006f0f] pbx.c: Executing [s@ext-fax:5] ExecIf(“SIP/FlowRoute-000078cb”, “0?Set(FAXSTATUS=“FAILED: error: statusstr: OK”)”) in new stack
[2019-07-18 10:47:20] VERBOSE[16934][C-00006f0f] pbx.c: Executing [s@ext-fax:6] Hangup(“SIP/FlowRoute-000078cb”, “”) in new stack
[2019-07-18 10:47:20] VERBOSE[16934][C-00006f0f] pbx.c: Spawn extension (ext-fax, s, 6) exited non-zero on ‘SIP/FlowRoute-000078cb’
[2019-07-18 10:47:20] VERBOSE[16934][C-00006f0f] pbx.c: Executing [h@ext-fax:1] GotoIf(“SIP/FlowRoute-000078cb”, “0?failed”) in new stack
[2019-07-18 10:47:20] VERBOSE[16934][C-00006f0f] pbx.c: Executing [h@ext-fax:2] Set(“SIP/FlowRoute-000078cb”, “DELETE_AFTER_SEND=false”) in new stack
[2019-07-18 10:47:20] VERBOSE[16934][C-00006f0f] pbx.c: Executing [h@ext-fax:3] GotoIf(“SIP/FlowRoute-000078cb”, “0?noemail”) in new stack
[2019-07-18 10:47:20] VERBOSE[16934][C-00006f0f] pbx.c: Executing [h@ext-fax:4] System(“SIP/FlowRoute-000078cb”, “/var/lib/asterisk/bin/fax2mail.php --remotestationid “” --user “27” --dest “16508513429” --callerid “IkFub255bW91cyIgPEFub255bW91cz4=” --file /var/spool/asterisk/fax/1563482809.218282.tif --delete “false””) in new stack
[2019-07-18 10:47:20] VERBOSE[16934][C-00006f0f] pbx.c: Executing [h@ext-fax:5] ExecIf(“SIP/FlowRoute-000078cb”, “0?system(/var/lib/asterisk/bin/faxpro_helper.php --action=“receive” --user=”” --dest=“16508513429” --callerid=“IkFub255bW91cyIgPEFub255bW91cz4=” --file=”/var/spool/asterisk/fax/1563482809.218282.tif" --direction=“in” --status=“OK”)") in new stack
[2019-07-18 10:47:20] VERBOSE[16934][C-00006f0f] pbx.c: Executing [h@ext-fax:6] Macro(“SIP/FlowRoute-000078cb”, “hangupcall,”) in new stack
[2019-07-18 10:47:20] VERBOSE[16934][C-00006f0f] pbx.c: Executing [s@macro-hangupcall:1] GotoIf(“SIP/FlowRoute-000078cb”, “1?theend”) in new stack
[2019-07-18 10:47:20] VERBOSE[16934][C-00006f0f] pbx_builtins.c: Goto (macro-hangupcall,s,3)
[2019-07-18 10:47:20] VERBOSE[16934][C-00006f0f] pbx.c: Executing [s@macro-hangupcall:3] ExecIf(“SIP/FlowRoute-000078cb”, “0?Set(CDR(recordingfile)=)”) in new stack
[2019-07-18 10:47:20] VERBOSE[16934][C-00006f0f] pbx.c: Executing [s@macro-hangupcall:4] Hangup(“SIP/FlowRoute-000078cb”, “”) in new stack
[2019-07-18 10:47:20] VERBOSE[16934][C-00006f0f] app_macro.c: Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/FlowRoute-000078cb’ in macro ‘hangupcall’
[2019-07-18 10:47:20] VERBOSE[16934][C-00006f0f] pbx.c: Spawn extension (ext-fax, h, 6) exited non-zero on ‘SIP/FlowRoute-000078cb’
[2019-07-18 10:47:20] VERBOSE[16934][C-00006f0f] app_stack.c: SIP/FlowRoute-000078cb Internal Gosub(crm-hangup,s,1) start
[2019-07-18 10:47:20] VERBOSE[16934][C-00006f0f] pbx.c: Executing [s@crm-hangup:1] NoOp(“SIP/FlowRoute-000078cb”, “Sending Hangup to CRM”) in new stack
[2019-07-18 10:47:20] VERBOSE[16934][C-00006f0f] pbx.c: Executing [s@crm-hangup:2] NoOp(“SIP/FlowRoute-000078cb”, “HANGUP CAUSE: 16”) in new stack
[2019-07-18 10:47:20] VERBOSE[16934][C-00006f0f] pbx.c: Executing [s@crm-hangup:3] ExecIf(“SIP/FlowRoute-000078cb”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
[2019-07-18 10:47:20] VERBOSE[16934][C-00006f0f] pbx.c: Executing [s@crm-hangup:4] NoOp(“SIP/FlowRoute-000078cb”, “MASTER CHANNEL: 1563482809.218282 = 1563482809.218282”) in new stack
[2019-07-18 10:47:20] VERBOSE[16934][C-00006f0f] pbx.c: Executing [s@crm-hangup:5] GotoIf(“SIP/FlowRoute-000078cb”, “0?return”) in new stack
[2019-07-18 10:47:20] VERBOSE[16934][C-00006f0f] pbx.c: Executing [s@crm-hangup:6] Set(“SIP/FlowRoute-000078cb”, “__CRM_HANGUP=1”) in new stack
[2019-07-18 10:47:20] VERBOSE[16934][C-00006f0f] pbx.c: Executing [s@crm-hangup:7] AGI(“SIP/FlowRoute-000078cb”, “sangomacrm.agi”) in new stack
[2019-07-18 10:47:20] VERBOSE[16934][C-00006f0f] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
[2019-07-18 10:47:21] VERBOSE[16934][C-00006f0f] res_agi.c: <SIP/FlowRoute-000078cb>AGI Script sangomacrm.agi completed, returning 0
[2019-07-18 10:47:21] VERBOSE[16934][C-00006f0f] pbx.c: Executing [s@crm-hangup:8] Return(“SIP/FlowRoute-000078cb”, “”) in new stack
[2019-07-18 10:47:21] VERBOSE[16934][C-00006f0f] app_stack.c: Spawn extension (ext-fax, h, 6) exited non-zero on ‘SIP/FlowRoute-000078cb’
[2019-07-18 10:47:21] VERBOSE[16934][C-00006f0f] app_stack.c: SIP/FlowRoute-000078cb Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=


(Dave Burgess) #8

That’s the command I was talking about. You should be able to execute that from the root prompt on the console.

Post the lines from the maillog that shows the mail failing. That might be a better clue.


(system) closed #9

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.