Can't get the incoming fax emailed

Hello!

I am running SHMZ release 6.4(Final) with Asterisk 11.7.0 and FreePBX 12.0.37. I have an issue with my Fax and can’t get my faxes emailed. I have configured an inbound route with my fax recipient(Extension 91). Detect Faxes is set to No and in my extension, the fax checkbox is enabled.

Do you have any clues? I have done the same thing elsewhere and it worked in 2 minutes…

Here is the logfile when receiving a fax:

[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:1] Set(“SIP/Patton3331-0000005d”, “__FROM_DID=7015260”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:2] Gosub(“SIP/Patton3331-0000005d”, “sub-record-check,s,1(in,7015260,dontcare)”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:1] GotoIf(“SIP/Patton3331-0000005d”, “0?initialized”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:2] Set(“SIP/Patton3331-0000005d”, “__REC_STATUS=INITIALIZED”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:3] Set(“SIP/Patton3331-0000005d”, “NOW=1423819286”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:4] Set(“SIP/Patton3331-0000005d”, “__DAY=13”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:5] Set(“SIP/Patton3331-0000005d”, “__MONTH=02”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:6] Set(“SIP/Patton3331-0000005d”, “__YEAR=2015”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:7] Set(“SIP/Patton3331-0000005d”, “__TIMESTR=20150213-102126”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:8] Set(“SIP/Patton3331-0000005d”, “__FROMEXTEN=unknown”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:9] Set(“SIP/Patton3331-0000005d”, “__MON_FMT=wav”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:10] NoOp(“SIP/Patton3331-0000005d”, “Recordings initialized”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:11] ExecIf(“SIP/Patton3331-0000005d”, “0?Set(ARG3=dontcare)”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:12] Set(“SIP/Patton3331-0000005d”, “REC_POLICY_MODE_SAVE=”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:13] ExecIf(“SIP/Patton3331-0000005d”, “0?Set(REC_STATUS=NO)”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:14] GotoIf(“SIP/Patton3331-0000005d”, “2?checkaction”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Goto (sub-record-check,s,17)
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:17] GotoIf(“SIP/Patton3331-0000005d”, “1?sub-record-check,in,1”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Goto (sub-record-check,in,1)
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:1] NoOp(“SIP/Patton3331-0000005d”, “Inbound Recording Check to 7015260”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:2] Set(“SIP/Patton3331-0000005d”, “FROMEXTEN=unknown”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:3] ExecIf(“SIP/Patton3331-0000005d”, “10?Set(FROMEXTEN=0216952200)”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:4] Gosub(“SIP/Patton3331-0000005d”, “recordcheck,1(dontcare,in,7015260)”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:1] NoOp(“SIP/Patton3331-0000005d”, “Starting recording check against dontcare”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:2] Goto(“SIP/Patton3331-0000005d”, “dontcare”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Goto (sub-record-check,recordcheck,3)
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]heck:3] Return(“SIP/Patton3331-0000005d”, “”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:5] Return(“SIP/Patton3331-0000005d”, “”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:3] Gosub(“SIP/Patton3331-0000005d”, “app-blacklist-check,s,1()”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:1] GotoIf(“SIP/Patton3331-0000005d”, “0?blacklisted”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:2] Set(“SIP/Patton3331-0000005d”, “CALLED_BLACKLIST=1”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:3] Return(“SIP/Patton3331-0000005d”, “”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:4] Set(“SIP/Patton3331-0000005d”, “CDR(did)=7015260”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:5] ExecIf(“SIP/Patton3331-0000005d”, “1 ?Set(CALLERID(name)=0216952200)”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:6] Set(“SIP/Patton3331-0000005d”, “CHANNEL(musicclass)=default”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:7] Set(“SIP/Patton3331-0000005d”, “__MOHCLASS=default”) in new stack
[2015-02-13 10:21:26] WARNING[8860][C-00000029] func_channel.c: Unknown or unavailable item requested: ‘reversecharge’
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:8] GotoIf(“SIP/Patton3331-0000005d”, “0?macro-hangupcall”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:9] Set(“SIP/Patton3331-0000005d”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:10] Set(“SIP/Patton3331-0000005d”, “CALLERPRES()=allowed_not_screened”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:11] Goto(“SIP/Patton3331-0000005d”, “ext-fax,91,1”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Goto (ext-fax,91,1)
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:1] Set(“SIP/Patton3331-0000005d”, “FAX_FOR=Fax (91)”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:2] NoOp(“SIP/Patton3331-0000005d”, “Receiving Fax for: Fax (91), From: “0216952200” <0216952200>”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:3] Set(“SIP/Patton3331-0000005d”, “FAX_ATTACH_FORMAT=pdf”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:4] Set(“SIP/Patton3331-0000005d”, “FAX_RX_EMAIL=******@gmail.com”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:5] Goto(“SIP/Patton3331-0000005d”, “s,receivefax”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Goto (ext-fax,s,3)
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:3] StopPlayTones(“SIP/Patton3331-0000005d”, “”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:4] ReceiveFAX(“SIP/Patton3331-0000005d”, “/var/spool/asterisk/fax/1423819286.93.tif,f”) in new stack
[2015-02-13 10:21:26] VERBOSE[8860][C-00000029] res_fax.c: – Channel ‘SIP/Patton3331-0000005d’ receiving FAX ‘/var/spool/asterisk/fax/1423819286.93.tif’
[2015-02-13 10:21:51] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:5] ExecIf(“SIP/Patton3331-0000005d”, “1?Set(FAXSTATUS=“FAILED: error: Disconnected after permitted retries statusstr: Disconnected after permitted retries”)”) in new stack
[2015-02-13 10:21:51] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:6] Hangup(“SIP/Patton3331-0000005d”, “”) in new stack
[2015-02-13 10:21:51] VERBOSE[8860][C-00000029] pbx.c: == Spawn extension (ext-fax, s, 6) exited non-zero on ‘SIP/Patton3331-0000005d’
[2015-02-13 10:21:51] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:1] GotoIf(“SIP/Patton3331-0000005d”, “1?failed”) in new stack
[2015-02-13 10:21:51] VERBOSE[8860][C-00000029] pbx.c: – Goto (ext-fax,h,103)
**[2015-02-13 10:21:51] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:103] NoOp(“SIP/Patton3331-0000005d”, "FAX “FAILED: error: Disconnected after permitted retries statusstr: Disconnected after permitted retries” for: ****@gmail.com , From: “0216952200” <0216952200>") in new stack
[2015-02-13 10:21:51] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:104] Macro(“SIP/Patton3331-0000005d”, “hangupcall,”) in new stack
[2015-02-13 10:21:51] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:1] ExecIf(“SIP/Patton3331-0000005d”, “0?Set(CDR(recordingfile)=.wav)”) in new stack
[2015-02-13 10:21:51] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:2] GotoIf(“SIP/Patton3331-0000005d”, “1?theend”) in new stack
[2015-02-13 10:21:51] VERBOSE[8860][C-00000029] pbx.c: – Goto (macro-hangupcall,s,4)
[2015-02-13 10:21:51] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:4] ExecIf(“SIP/Patton3331-0000005d”, “0?Set(CDR(recordingfile)=)”) in new stack
[2015-02-13 10:21:51] VERBOSE[8860][C-00000029] pbx.c: – Executing [[email protected]:5] Hangup(“SIP/Patton3331-0000005d”, “”) in new stack
[2015-02-13 10:21:51] VERBOSE[8860][C-00000029] app_macro.c: == Spawn extension (macro-hangupcall, s, 5) exited non-zero on ‘SIP/Patton3331-0000005d’ in macro ‘hangupcall’
[2015-02-13 10:21:51] VERBOSE[8860][C-00000029] pbx.c: == Spawn extension (ext-fax, h, 104) exited non-zero on ‘SIP/Patton3331-0000005d’

Thank you for your help.

There was an issue with the DNS which didn’t resolve mail servers’ names. There is still an issue, it tries to connect to the ipv6 name instead of the ipv4 name…