DAHDI Fax Detection

Good day,

I am trying to test fax applications on Asterisk but it appears that fax detection on the inbound route is not detecting as it should.

Fax calls come straight through to the extension and when I answer I receive fax tones.

How can I check that fax detection is working?

Blessings

System
Asterisk 1.8.5.0
Freepbx 2.9.0.7
Noojee Fax

It appears to be detecting but cannot read FAXOPT because it was not written. How do I create the FAXOPT file?

[Jul 25 10:46:42] VERBOSE[6218] sig_pri.c: == Primary D-Channel on span 1 up
[Jul 25 10:46:42] VERBOSE[6218] sig_pri.c: – Accepting call from ‘061240933’ to ‘1001’ on channel 0/1, span 1
[Jul 25 10:46:42] VERBOSE[16326] pbx.c: – Executing [[email protected]:1] NoOp(“DAHDI/i1/061240933-4”, “Catch-All DID Match - Found 1001 - You probably want a DID for this.”) in new stack
[Jul 25 10:46:42] VERBOSE[16326] pbx.c: – Executing [[email protected]:2] Goto(“DAHDI/i1/061240933-4”, “ext-did,s,1”) in new stack
[Jul 25 10:46:42] VERBOSE[16326] pbx.c: – Goto (ext-did,s,1)
[Jul 25 10:46:42] VERBOSE[16326] pbx.c: – Executing [[email protected]:1] Set(“DAHDI/i1/061240933-4”, “__FROM_DID=s”) in new stack
[Jul 25 10:46:42] VERBOSE[16326] pbx.c: – Executing [[email protected]:2] Gosub(“DAHDI/i1/061240933-4”, “app-blacklist-check,s,1”) in new stack
[Jul 25 10:46:42] VERBOSE[16326] pbx.c: – Executing [[email protected]:1] GotoIf(“DAHDI/i1/061240933-4”, “0?blacklisted”) in new stack
[Jul 25 10:46:42] VERBOSE[16326] pbx.c: – Executing [[email protected]:2] Set(“DAHDI/i1/061240933-4”, “CALLED_BLACKLIST=1”) in new stack
[Jul 25 10:46:42] VERBOSE[16326] pbx.c: – Executing [[email protected]:3] Return(“DAHDI/i1/061240933-4”, “”) in new stack
[Jul 25 10:46:42] VERBOSE[16326] pbx.c: – Executing [[email protected]:3] ExecIf(“DAHDI/i1/061240933-4”, “1 ?Set(CALLERID(name)=061240933)”) in new stack
[Jul 25 10:46:42] VERBOSE[16326] pbx.c: – Executing [[email protected]:4] Set(“DAHDI/i1/061240933-4”, “__CALLINGPRES_SV=allowed”) in new stack
[Jul 25 10:46:42] VERBOSE[16326] pbx.c: – Executing [[email protected]:5] Set(“DAHDI/i1/061240933-4”, “CALLERPRES()=allowed_not_screened”) in new stack
[Jul 25 10:46:42] VERBOSE[16326] pbx.c: – Executing [[email protected]:6] Set(“DAHDI/i1/061240933-4”, “FAX_DEST=Noojee-Fax-Receive^s^1”) in new stack
[Jul 25 10:46:42] VERBOSE[16326] pbx.c: – Executing [[email protected]:7] Answer(“DAHDI/i1/061240933-4”, “”) in new stack
[Jul 25 10:46:42] VERBOSE[16326] pbx.c: – Executing [[email protected]:8] Wait(“DAHDI/i1/061240933-4”, “5”) in new stack
[Jul 25 10:46:46] VERBOSE[16326] chan_dahdi.c: – Redirecting DAHDI/i1/061240933-4 to fax extension
[Jul 25 10:46:46] VERBOSE[16326] pbx.c: == Spawn extension (ext-did, fax, 1) exited non-zero on ‘DAHDI/i1/061240933-4’
[Jul 25 10:46:46] VERBOSE[16326] pbx.c: – Executing [[email protected]:1] Goto(“DAHDI/i1/061240933-4”, “Noojee-Fax-Receive,s,1”) in new stack
[Jul 25 10:46:46] VERBOSE[16326] pbx.c: – Goto (Noojee-Fax-Receive,s,1)
[Jul 25 10:46:46] WARNING[16326] pbx.c: Channel ‘DAHDI/i1/061240933-4’ sent into invalid extension ‘s’ in context ‘Noojee-Fax-Receive’, but no invalid handler
[Jul 25 10:46:46] ERROR[16326] res_fax.c: channel ‘DAHDI/i1/061240933-4’ can’t read FAXOPT(status) because it has never been written.
[Jul 25 10:46:46] VERBOSE[16326] pbx.c: – Executing [[email protected]:1] GotoIf(“DAHDI/i1/061240933-4”, “0?success”) in new stack
[Jul 25 10:46:46] ERROR[16326] res_fax.c: channel ‘DAHDI/i1/061240933-4’ can’t read FAXOPT(pages) because it has never been written.
[Jul 25 10:46:46] VERBOSE[16326] pbx.c: – Executing [[email protected]:2] GotoIf(“DAHDI/i1/061240933-4”, “0?fail”) in new stack
[Jul 25 10:46:46] ERROR[16326] res_fax.c: channel ‘DAHDI/i1/061240933-4’ can’t read FAXOPT(remotestationid) because it has never been written.
[Jul 25 10:46:46] ERROR[16326] res_fax.c: channel ‘DAHDI/i1/061240933-4’ can’t read FAXOPT(localstationid) because it has never been written.
[Jul 25 10:46:46] ERROR[16326] res_fax.c: channel ‘DAHDI/i1/061240933-4’ can’t read FAXOPT(pages) because it has never been written.
[Jul 25 10:46:46] ERROR[16326] res_fax.c: channel ‘DAHDI/i1/061240933-4’ can’t read FAXOPT(resolution) because it has never been written.
[Jul 25 10:46:46] ERROR[16326] res_fax.c: channel ‘DAHDI/i1/061240933-4’ can’t read FAXOPT(rate) because it has never been written.
[Jul 25 10:46:46] VERBOSE[16326] pbx.c: – Executing [[email protected]:3] UserEvent(“DAHDI/i1/061240933-4”, "FaxPartial,exten: ,callerId: ‘061240933’,remoteStationId: ‘’,localStationId: ‘’,pagesTransferred: ‘’,resolution: ‘’,transferRate: ‘’,filename: ") in new stack
[Jul 25 10:46:46] VERBOSE[16326] pbx.c: – Executing [[email protected]:4] Hangup(“DAHDI/i1/061240933-4”, “”) in new stack
[Jul 25 10:46:46] VERBOSE[16326] pbx.c: == Spawn extension (Noojee-Fax-Receive, h, 4) exited non-zero on ‘DAHDI/i1/061240933-4’
[Jul 25 10:46:46] DEBUG[16326] sig_pri.c: sig_pri_hangup 1
[Jul 25 10:46:46] DEBUG[16326] sig_pri.c: Not yet hungup… Calling hangup once with icause, and clearing call
[Jul 25 10:46:46] VERBOSE[16326] chan_dahdi.c: – Hungup ‘DAHDI/i1/061240933-4’

Sorry guys, it appears that the extension was not created. Once it was created the error message left.

Ok, Once I created the extension, I am receiving a new error message that its unable to create channel of type SIP. Any suggestions?

[Jul 25 11:04:35] VERBOSE[6218] sig_pri.c: == Primary D-Channel on span 1 up
[Jul 25 11:04:35] VERBOSE[6218] sig_pri.c: – Accepting call from ‘061240933’ to ‘1001’ on channel 0/21, span 1
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:1] ExecIf(“DAHDI/i1/061240933-7”, “0?Set(__RINGTIMER=0)”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:2] Macro(“DAHDI/i1/061240933-7”, “exten-vm,novm,1001,0,0,0”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:1] Macro(“DAHDI/i1/061240933-7”, “user-callerid,”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:1] Set(“DAHDI/i1/061240933-7”, “AMPUSER=061240933”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:2] GotoIf(“DAHDI/i1/061240933-7”, “0?report”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:3] ExecIf(“DAHDI/i1/061240933-7”, “1?Set(REALCALLERIDNUM=061240933)”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:4] Set(“DAHDI/i1/061240933-7”, “AMPUSER=”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:5] Set(“DAHDI/i1/061240933-7”, “AMPUSERCIDNAME=”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:6] GotoIf(“DAHDI/i1/061240933-7”, “1?report”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Goto (macro-user-callerid,s,12)
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:12] GotoIf(“DAHDI/i1/061240933-7”, “0?continue”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:13] Set(“DAHDI/i1/061240933-7”, “__TTL=64”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:14] GotoIf(“DAHDI/i1/061240933-7”, “1?continue”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Goto (macro-user-callerid,s,25)
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:25] Set(“DAHDI/i1/061240933-7”, “CALLERID(number)=061240933”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:26] Set(“DAHDI/i1/061240933-7”, “CALLERID(name)=”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:27] Set(“DAHDI/i1/061240933-7”, “CHANNEL(language)=en”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:2] Set(“DAHDI/i1/061240933-7”, “RingGroupMethod=none”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:3] Set(“DAHDI/i1/061240933-7”, “__EXTTOCALL=1001”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:4] Set(“DAHDI/i1/061240933-7”, “__PICKUPMARK=1001”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:5] Set(“DAHDI/i1/061240933-7”, “RT=”"") in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:6] Macro(“DAHDI/i1/061240933-7”, “record-enable,1001,IN”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:1] GotoIf(“DAHDI/i1/061240933-7”, “1?check”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Goto (macro-record-enable,s,4)
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:4] ExecIf(“DAHDI/i1/061240933-7”, “0?MacroExit()”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:5] GotoIf(“DAHDI/i1/061240933-7”, “0?Group:OUT”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Goto (macro-record-enable,s,14)
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:14] GotoIf(“DAHDI/i1/061240933-7”, “1?IN”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Goto (macro-record-enable,s,18)
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:18] ExecIf(“DAHDI/i1/061240933-7”, “1?MacroExit()”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:7] Macro(“DAHDI/i1/061240933-7”, “dial-one,”",tr,1001") in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:1] Set(“DAHDI/i1/061240933-7”, “DEXTEN=1001”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:2] Set(“DAHDI/i1/061240933-7”, “DIALSTATUS_CW=”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:3] GosubIf(“DAHDI/i1/061240933-7”, “0?screen,1”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:4] GosubIf(“DAHDI/i1/061240933-7”, “0?cf,1”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:5] GotoIf(“DAHDI/i1/061240933-7”, “1?skip1”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Goto (macro-dial-one,s,8)
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:8] GotoIf(“DAHDI/i1/061240933-7”, “0?nodial”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:9] GotoIf(“DAHDI/i1/061240933-7”, “0?continue”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:10] Set(“DAHDI/i1/061240933-7”, “EXTHASCW=ENABLED”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:11] GotoIf(“DAHDI/i1/061240933-7”, “0?next1:cwinusebusy”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Goto (macro-dial-one,s,23)
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:23] GotoIf(“DAHDI/i1/061240933-7”, “1?next3:continue”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Goto (macro-dial-one,s,24)
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:24] ExecIf(“DAHDI/i1/061240933-7”, “0?Set(DIALSTATUS_CW=BUSY)”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:25] GotoIf(“DAHDI/i1/061240933-7”, “0?nodial”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:26] GosubIf(“DAHDI/i1/061240933-7”, “1?dstring,1:dlocal,1”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:1] Set(“DAHDI/i1/061240933-7”, “DSTRING=”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:2] Set(“DAHDI/i1/061240933-7”, “DEVICES=1001”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]ro-dial-one:3] ExecIf(“DAHDI/i1/061240933-7”, “0?Return()”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:4] ExecIf(“DAHDI/i1/061240933-7”, “0?Set(DEVICES=001)”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:5] Set(“DAHDI/i1/061240933-7”, “LOOPCNT=1”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:6] Set(“DAHDI/i1/061240933-7”, “ITER=1”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:7] Set(“DAHDI/i1/061240933-7”, “THISDIAL=SIP/1001”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:8] GosubIf(“DAHDI/i1/061240933-7”, “1?zap2dahdi,1”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:1] ExecIf(“DAHDI/i1/061240933-7”, “0?Return()”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:2] Set(“DAHDI/i1/061240933-7”, “NEWDIAL=”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:3] Set(“DAHDI/i1/061240933-7”, “LOOPCNT2=1”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:4] Set(“DAHDI/i1/061240933-7”, “ITER2=1”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:5] Set(“DAHDI/i1/061240933-7”, “THISPART2=SIP/1001”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:6] ExecIf(“DAHDI/i1/061240933-7”, “0?Set(THISPART2=DAHDI/1001)”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:7] Set(“DAHDI/i1/061240933-7”, “NEWDIAL=SIP/1001&”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:8] Set(“DAHDI/i1/061240933-7”, “ITER2=2”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:9] GotoIf(“DAHDI/i1/061240933-7”, “0?begin2”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:10] Set(“DAHDI/i1/061240933-7”, “THISDIAL=SIP/1001”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:11] Return(“DAHDI/i1/061240933-7”, “”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:9] Set(“DAHDI/i1/061240933-7”, “DSTRING=SIP/1001&”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:10] Set(“DAHDI/i1/061240933-7”, “ITER=2”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:11] GotoIf(“DAHDI/i1/061240933-7”, “0?begin”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:12] Set(“DAHDI/i1/061240933-7”, “DSTRING=SIP/1001”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:13] Return(“DAHDI/i1/061240933-7”, “”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:27] GotoIf(“DAHDI/i1/061240933-7”, “0?nodial”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:28] GotoIf(“DAHDI/i1/061240933-7”, “1?skiptrace”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Goto (macro-dial-one,s,30)
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:30] Set(“DAHDI/i1/061240933-7”, “D_OPTIONS=tr”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:31] ExecIf(“DAHDI/i1/061240933-7”, “0?SIPAddHeader(Alert-Info: )”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:32] ExecIf(“DAHDI/i1/061240933-7”, “0?SIPAddHeader()”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:33] ExecIf(“DAHDI/i1/061240933-7”, “0?Set(CHANNEL(musicclass)=)”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:34] GosubIf(“DAHDI/i1/061240933-7”, “0?qwait,1”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:35] Set(“DAHDI/i1/061240933-7”, “__CWIGNORE=”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:36] Set(“DAHDI/i1/061240933-7”, “__KEEPCID=TRUE”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:37] GotoIf(“DAHDI/i1/061240933-7”, “0?usegoto,1”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:38] GotoIf(“DAHDI/i1/061240933-7”, “0?godial”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:39] Set(“DAHDI/i1/061240933-7”, “CONNECTEDLINE(name,i)=Franky”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:40] Set(“DAHDI/i1/061240933-7”, “CONNECTEDLINE(num)=1001”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:41] Set(“DAHDI/i1/061240933-7”, “D_OPTIONS=trI”) in new stack
[Jul 25 11:04:35] VERBOSE[16650] pbx.c: – Executing [[email protected]:42] Dial(“DAHDI/i1/061240933-7”, “SIP/1001,”",trI") in new stack
[Jul 25 11:04:35] VERBOSE[16650] netsock.c: == Using UDPTL TOS bits 184
[Jul 25 11:04:35] VERBOSE[16650] netsock.c: == Using UDPTL CoS mark 5
[Jul 25 11:04:35] WARNING[16650] app_dial.c: Unable to create channel of type ‘SIP’ (cause 20 - Unknown)
[Jul 25 11:04:35] VERBOSE[16650] app_dial.c: == Everyone is busy/congested at this time (1:0/0/1)

Anyone with an idea what might be cause of the “FAXOPT can’t read” error message?