Hello there
Apologies for then long post, but I felt it best to provide as much detail as I could.
I have built a FreePBX system. I started with 2.5 and upgraded through 2.6 to 2.7 using the upgrade tools. All went well, the system works, and allows me to make and receive calls locally and from the SIP trunk from my provider.
I am now running FreePBX 2.7, Asterisk 1.6.2.6, Digium 1.2 version of FFA using the Athlon_XP variant, DAHDI 2.2.1 and Sendmail.
My problem is twofold, although I can receive faxes,
- I cannot get faxdetect to work.
- Faxes received do not get sent to the nominated email address.
I have tried both fax detect options (SIP and DAHDI) and neither make any difference. All calls to the nominated extension go straight to ring on the handset. The trace is identical whether I have fax detect on or off and is shown below;
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [201@from-internal:1] GotoIf(“SIP/204-0000000a”, “1?ext-local,201,1”) in new stack
– Goto (ext-local,201,1)
– Executing [201@ext-local:1] Macro(“SIP/204-0000000a”, “exten-vm,201,201”) in new stack
– Executing [s@macro-exten-vm:1] Macro(“SIP/204-0000000a”, “user-callerid,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/204-0000000a”, “AMPUSER=204”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“SIP/204-0000000a”, “0?report”) in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“SIP/204-0000000a”, “1?Set(REALCALLERIDNUM=204)”) in new stack
– Executing [s@macro-user-callerid:4] Set(“SIP/204-0000000a”, “AMPUSER=204”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/204-0000000a”, “AMPUSERCIDNAME=DynaFax”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/204-0000000a”, “0?report”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/204-0000000a”, “AMPUSERCID=204”) in new stack
– Executing [s@macro-user-callerid:8] Set(“SIP/204-0000000a”, “CALLERID(all)=“DynaFax” <204>”) in new stack
– Executing [s@macro-user-callerid:9] GotoIf(“SIP/204-0000000a”, “0?continue”) in new stack
– Executing [s@macro-user-callerid:10] Set(“SIP/204-0000000a”, “__TTL=64”) in new stack
– Executing [s@macro-user-callerid:11] GotoIf(“SIP/204-0000000a”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,18)
– Executing [s@macro-user-callerid:18] NoOp(“SIP/204-0000000a”, “Using CallerID “DynaFax” <204>”) in new stack
– Executing [s@macro-exten-vm:2] Set(“SIP/204-0000000a”, “RingGroupMethod=none”) in new stack
– Executing [s@macro-exten-vm:3] Set(“SIP/204-0000000a”, “VMBOX=201”) in new stack
– Executing [s@macro-exten-vm:4] Set(“SIP/204-0000000a”, “EXTTOCALL=201”) in new stack
– Executing [s@macro-exten-vm:5] Set(“SIP/204-0000000a”, “CFUEXT=”) in new stack
– Executing [s@macro-exten-vm:6] Set(“SIP/204-0000000a”, “CFBEXT=”) in new stack
– Executing [s@macro-exten-vm:7] Set(“SIP/204-0000000a”, “RT=15”) in new stack
– Executing [s@macro-exten-vm:8] Macro(“SIP/204-0000000a”, “record-enable,201,IN”) in new stack
– Executing [s@macro-record-enable:1] GotoIf(“SIP/204-0000000a”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [s@macro-record-enable:4] ExecIf(“SIP/204-0000000a”, “0?MacroExit()”) in new stack
– Executing [s@macro-record-enable:5] GotoIf(“SIP/204-0000000a”, “0?Group:OUT”) in new stack
– Goto (macro-record-enable,s,15)
– Executing [s@macro-record-enable:15] GotoIf(“SIP/204-0000000a”, “1?IN”) in new stack
– Goto (macro-record-enable,s,20)
– Executing [s@macro-record-enable:20] ExecIf(“SIP/204-0000000a”, “1?MacroExit()”) in new stack
– Executing [s@macro-exten-vm:9] Macro(“SIP/204-0000000a”, “dial,15,tr,201”) in new stack
– Executing [s@macro-dial:1] GotoIf(“SIP/204-0000000a”, “1?dial”) in new stack
– Goto (macro-dial,s,3)
– Executing [s@macro-dial:3] AGI(“SIP/204-0000000a”, “dialparties.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
dialparties.agi: Caller ID name is ‘DynaFax’ number is '204’
dialparties.agi: Methodology of ring is ‘none’
– dialparties.agi: Added extension 201 to extension map
– dialparties.agi: Extension 201 cf is disabled
– dialparties.agi: Extension 201 do not disturb is disabled
> dialparties.agi: extnum 201 has: cw: 0; hascfb: 0 [] hascfu: 0 []
dialparties.agi: EXTENSION_STATE: 0 (NOT_INUSE)
dialparties.agi: Extension 201 has ExtensionState: 0
– dialparties.agi: Checking CW and CFB status for extension 201
– dialparties.agi: dbset CALLTRACE/201 to 204
– dialparties.agi: Filtered ARG3: 201
– <SIP/204-0000000a>AGI Script dialparties.agi completed, returning 0
– Executing [s@macro-dial:7] Dial(“SIP/204-0000000a”, “SIP/201,15,tr”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called 201
– SIP/201-0000000b is ringing
However, I have a fax connected to an analog port, and if I dial the 666 feature code, the fax machine I have sees an answer and successfully transmits the fax. the call then clears down normally. But the fax is not sent to the nominated email address. So I am figuring fax is OK but something in Fax Detect is not working.
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [666@from-internal:1] Set(“SIP/203-0000000d”, "[email protected]") in new stack
– Executing [666@from-internal:2] Goto(“SIP/203-0000000d”, “ext-fax,s,1”) in new stack
– Goto (ext-fax,s,1)
– Executing [s@ext-fax:1] Macro(“SIP/203-0000000d”, “user-callerid,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/203-0000000d”, “AMPUSER=203”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“SIP/203-0000000d”, “0?report”) in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“SIP/203-0000000d”, “1?Set(REALCALLERIDNUM=203)”) in new stack
– Executing [s@macro-user-callerid:4] Set(“SIP/203-0000000d”, “AMPUSER=203”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/203-0000000d”, “AMPUSERCIDNAME=DYNAPort1”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/203-0000000d”, “0?report”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/203-0000000d”, “AMPUSERCID=203”) in new stack
– Executing [s@macro-user-callerid:8] Set(“SIP/203-0000000d”, “CALLERID(all)=“DYNAPort1” <203>”) in new stack
– Executing [s@macro-user-callerid:9] GotoIf(“SIP/203-0000000d”, “0?continue”) in new stack
– Executing [s@macro-user-callerid:10] Set(“SIP/203-0000000d”, “__TTL=64”) in new stack
– Executing [s@macro-user-callerid:11] GotoIf(“SIP/203-0000000d”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,18)
– Executing [s@macro-user-callerid:18] NoOp(“SIP/203-0000000d”, “Using CallerID “DYNAPort1” <203>”) in new stack
– Executing [s@ext-fax:2] NoOp(“SIP/203-0000000d”, “Receiving Fax for: [email protected] , From: “DYNAPort1” <203>”) in new stack
– Executing [s@ext-fax:3] StopPlayTones(“SIP/203-0000000d”, “”) in new stack
– Executing [s@ext-fax:4] ReceiveFAX(“SIP/203-0000000d”, “/var/spool/asterisk/fax/1273921052.13.tif”) in new stack
– Channel ‘SIP/203-0000000d’ receiving FAX ‘/var/spool/asterisk/fax/1273921052.13.tif’
– Channel ‘SIP/203-0000000d’ FAX session ‘1’ started
– FAX handle 0: [ 051.249976 ], entering CLOSING state
– FAX handle 0: [ 051.250099 ], entering CLOSING state
== Manager ‘admin’ logged on from 127.0.0.1
– Channel ‘SIP/203-0000000d’ FAX session ‘1’ is complete, result: ‘SUCCESS’ (FAX_SUCCESS), error: ‘NO_ERROR’, pages: 1, resolution: ‘204x98’, transfer rate: ‘14400’, remoteSID: ‘’
== Spawn extension (ext-fax, s, 4) exited non-zero on ‘SIP/203-0000000d’
– Executing [h@ext-fax:1] GotoIf(“SIP/203-0000000d”, “0?failed”) in new stack
– Executing [h@ext-fax:2] GotoIf(“SIP/203-0000000d”, “0?end”) in new stack
– Executing [h@ext-fax:3] System(“SIP/203-0000000d”, “/var/lib/asterisk/bin/fax-process.pl --to [email protected] --from “pbx.clearwatercoffee.dyndns.org” --dest “” --subject “New fax from DYNAPort1 <203>” --attachment fax_203.pdf --type application/pdf --file /var/spool/asterisk/fax/1273921052.13.tif”) in new stack
– Executing [h@ext-fax:4] Macro(“SIP/203-0000000d”, “hangupcall,”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/203-0000000d”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,4)
– Executing [s@macro-hangupcall:4] GotoIf(“SIP/203-0000000d”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [s@macro-hangupcall:7] GotoIf(“SIP/203-0000000d”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] Hangup(“SIP/203-0000000d”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/203-0000000d’ in macro ‘hangupcall’
== Spawn extension (ext-fax, h, 4) exited non-zero on ‘SIP/203-0000000d’
I can leave voice messages and the emails with .wav attachments are correctly sent to my email address, so I have concluded that Sendmail is working correctly.
So, I would be grateful if someone suggest what I may have missed in the Fax detect config. And also why, when the fax is successfully received, it is not sent to the configured email address.
Many Thanks
Anthony