Hello every body.
First of all I want you to know that I red and searched all over the web and the forums to solve my fax problem, but had no success.
My distro is the last one: Stable 2.210.62-5
The PBX is connected to a Patton 4544 ISDN gateway to a BRI with two line and two number, one dedicated to voice and one to FAX.
The voice inbound and outbound rules work as expected.
I configured FreePBX for FAX as stated by Schmooze, id est:
- Fax Configuration
- Two inbound routes: one for voice DID and one for FAX DID.
- A virtual extension with fax enabled and email configured
- the inbound FAX route routed to the FAX virtual extension.
When an incoming fax call arrive on the fax number the PBX answer but after few seconds hung up, this is the log (of course fax number and email are correct i chabged it here in XXXXXXX):
[2013-02-14 19:54:25] VERBOSE[1838] pbx.c: – Executing [XXXXXXXXXX@from-pstn:1] Set(“SIP/ISDN1-00000129”, “__FROM_DID=XXXXXXXXXX”) in new stack
[2013-02-14 19:54:25] VERBOSE[1838] pbx.c: – Executing [XXXXXXXXXX@from-pstn:2] Gosub(“SIP/ISDN1-00000129”, “app-blacklist-check,s,1()”) in new stack
[2013-02-14 19:54:25] VERBOSE[1838] pbx.c: – Executing [s@app-blacklist-check:1] GotoIf(“SIP/ISDN1-00000129”, “0?blacklisted”) in new stack
[2013-02-14 19:54:25] VERBOSE[1838] pbx.c: – Executing [s@app-blacklist-check:2] Set(“SIP/ISDN1-00000129”, “CALLED_BLACKLIST=1”) in new stack
[2013-02-14 19:54:25] VERBOSE[1838] pbx.c: – Executing [s@app-blacklist-check:3] Return(“SIP/ISDN1-00000129”, “”) in new stack
[2013-02-14 19:54:25] VERBOSE[1838] pbx.c: – Executing [XXXXXXXXXX@from-pstn:3] Gosub(“SIP/ISDN1-00000129”, “sub-record-cancel,s,1()”) in new stack
[2013-02-14 19:54:25] VERBOSE[1838] pbx.c: – Executing [s@sub-record-cancel:1] ExecIf(“SIP/ISDN1-00000129”, “1?Return()”) in new stack
[2013-02-14 19:54:25] VERBOSE[1838] pbx.c: – Executing [XXXXXXXXXX@from-pstn:4] Set(“SIP/ISDN1-00000129”, “__REC_POLICY_MODE=never”) in new stack
[2013-02-14 19:54:25] VERBOSE[1838] pbx.c: – Executing [XXXXXXXXXX@from-pstn:5] Set(“SIP/ISDN1-00000129”, “CDR(did)=XXXXXXXXXX”) in new stack
[2013-02-14 19:54:25] VERBOSE[1838] pbx.c: – Executing [XXXXXXXXXX@from-pstn:6] ExecIf(“SIP/ISDN1-00000129”, “1 ?Set(CALLERID(name)=XXXXXXXXXX)”) in new stack
[2013-02-14 19:54:25] VERBOSE[1838] pbx.c: – Executing [XXXXXXXXXX@from-pstn:7] Wait(“SIP/ISDN1-00000129”, “10”) in new stack
[2013-02-14 19:54:35] VERBOSE[1838] pbx.c: – Executing [XXXXXXXXXX@from-pstn:8] Set(“SIP/ISDN1-00000129”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
[2013-02-14 19:54:35] VERBOSE[1838] pbx.c: – Executing [XXXXXXXXXX@from-pstn:9] Set(“SIP/ISDN1-00000129”, “CALLERPRES()=allowed_not_screened”) in new stack
[2013-02-14 19:54:35] VERBOSE[1838] pbx.c: – Executing [XXXXXXXXXX@from-pstn:10] Goto(“SIP/ISDN1-00000129”, “ext-fax,202,1”) in new stack
[2013-02-14 19:54:35] VERBOSE[1838] pbx.c: – Goto (ext-fax,202,1)
[2013-02-14 19:54:35] VERBOSE[1838] pbx.c: – Executing [202@ext-fax:1] Set(“SIP/ISDN1-00000129”, “FAX_FOR=FAX (202)”) in new stack
[2013-02-14 19:54:35] VERBOSE[1838] pbx.c: – Executing [202@ext-fax:2] NoOp(“SIP/ISDN1-00000129”, "Receiving Fax for: FAX (202), From: “XXXXXXXXXX” ") in new stack
[2013-02-14 19:54:35] VERBOSE[1838] pbx.c: – Executing [202@ext-fax:3] Set(“SIP/ISDN1-00000129”, “[email protected]”) in new stack
[2013-02-14 19:54:35] VERBOSE[1838] pbx.c: – Executing [202@ext-fax:4] Goto(“SIP/ISDN1-00000129”, “s,receivefax”) in new stack
[2013-02-14 19:54:35] VERBOSE[1838] pbx.c: – Goto (ext-fax,s,3)
[2013-02-14 19:54:35] VERBOSE[1838] pbx.c: – Executing [s@ext-fax:3] StopPlayTones(“SIP/ISDN1-00000129”, “”) in new stack
[2013-02-14 19:54:35] VERBOSE[1838] pbx.c: – Executing [s@ext-fax:4] ReceiveFAX(“SIP/ISDN1-00000129”, “/var/spool/asterisk/fax/1360868065.297.tif,f”) in new stack
[2013-02-14 19:54:35] VERBOSE[1838] res_fax.c: – Channel ‘SIP/ISDN1-00000129’ receiving FAX ‘/var/spool/asterisk/fax/1360868065.297.tif’
[2013-02-14 19:54:38] VERBOSE[1838] netsock.c: == Using UDPTL TOS bits 184
[2013-02-14 19:54:38] VERBOSE[1838] netsock.c: == Using UDPTL CoS mark 5
[2013-02-14 19:55:01] VERBOSE[1838] pbx.c: – Executing [s@ext-fax:5] ExecIf(“SIP/ISDN1-00000129”, “1?Set(FAXSTATUS=“FAILED: error: Disconnected after permitted retries statusstr: Disconnected after permitted retries”)”) in new stack
[2013-02-14 19:55:01] VERBOSE[1838] pbx.c: – Executing [s@ext-fax:6] Hangup(“SIP/ISDN1-00000129”, “”) in new stack
[2013-02-14 19:55:01] VERBOSE[1838] pbx.c: == Spawn extension (ext-fax, s, 6) exited non-zero on ‘SIP/ISDN1-00000129’
[2013-02-14 19:55:01] VERBOSE[1838] pbx.c: – Executing [h@ext-fax:1] GotoIf(“SIP/ISDN1-00000129”, “1?failed”) in new stack
[2013-02-14 19:55:01] VERBOSE[1838] pbx.c: – Goto (ext-fax,h,103)
[2013-02-14 19:55:01] VERBOSE[1838] pbx.c: – Executing [h@ext-fax:103] NoOp(“SIP/ISDN1-00000129”, "FAX “FAILED: error: Disconnected after permitted retries statusstr: Disconnected after permitted retries” for: [email protected] , From: “XXXXXXXXXX” ") in new stack
[2013-02-14 19:55:01] VERBOSE[1838] pbx.c: – Executing [h@ext-fax:104] Macro(“SIP/ISDN1-00000129”, “hangupcall,”) in new stack
[2013-02-14 19:55:01] VERBOSE[1838] pbx.c: – Executing [s@macro-hangupcall:1] GotoIf(“SIP/ISDN1-00000129”, “1?theend”) in new stack
[2013-02-14 19:55:01] VERBOSE[1838] pbx.c: – Goto (macro-hangupcall,s,3)
[2013-02-14 19:55:01] VERBOSE[1838] pbx.c: – Executing [s@macro-hangupcall:3] ExecIf(“SIP/ISDN1-00000129”, “0?Set(CDR(recordingfile)=)”) in new stack
[2013-02-14 19:55:01] VERBOSE[1838] pbx.c: – Executing [s@macro-hangupcall:4] Hangup(“SIP/ISDN1-00000129”, “”) in new stack
[2013-02-14 19:55:01] VERBOSE[1838] app_macro.c: == Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/ISDN1-00000129’ in macro ‘hangupcall’
[2013-02-14 19:55:01] VERBOSE[1838] pbx.c: == Spawn extension (ext-fax, h, 104) exited non-zero on ‘SIP/ISDN1-00000129’
Hope in your help.
Thank you
JJ