Hello,
I have scoured the forums and so far I have not found a solution to my problem. I am using FreePBX 2.11, Asterisk 11.8.1 and SpanDSP 0.0.6pre21. I followed the instructions to install SpanDSP and it appears that the module loads:
asteriskvm*CLI> module show like spandsp
Module Description Use Count
res_fax_spandsp.so Spandsp G.711 and T.38 FAX Technologies 0
1 modules loaded
In the Asterisk Sip Settings module I have T38 passthrough enabled and the following extra sip settings:
fromdomain=[domain name]
qualify=yes
faxdetect=yes
In the fax inbound route detect faxes is set to yes, fax detection type is sip, fax detection time is 4secs and the fax destination goes to a virtual extension with (under the fax section) enabled checked, the email address in the fax email field and attachment format set to tif.
When an inbound fax come in this is the output:
– Executing [[email protected]:1] Macro(“SIP/3086-0000003d”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
– Executing [[email protected]:1] Set(“SIP/3086-0000003d”, “TOUCH_MONITOR=1395779725.62”) in new stack
– Executing [[email protected]:2] Set(“SIP/3086-0000003d”, “AMPUSER=3086”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/3086-0000003d”, “0?report”) in new stack
– Executing [[email protected]:4] ExecIf(“SIP/3086-0000003d”, “1?Set(REALCALLERIDNUM=3086)”) in new stack
– Executing [[email protected]:5] Set(“SIP/3086-0000003d”, “AMPUSER=3086”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/3086-0000003d”, “0?limit”) in new stack
– Executing [[email protected]:7] Set(“SIP/3086-0000003d”, “AMPUSERCIDNAME=305-695-3086”) in new stack
– Executing [[email protected]:8] GotoIf(“SIP/3086-0000003d”, “0?report”) in new stack
– Executing [[email protected]:9] Set(“SIP/3086-0000003d”, “AMPUSERCID=3086”) in new stack
– Executing [[email protected]:10] Set(“SIP/3086-0000003d”, “__DIAL_OPTIONS=Ttr”) in new stack
– Executing [[email protected]:11] Set(“SIP/3086-0000003d”, “CALLERID(all)=“305-695-3086” <3086>”) in new stack
– Executing [[email protected]:12] GotoIf(“SIP/3086-0000003d”, “0?limit”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/3086-0000003d”, “1?Set(GROUP(concurrency_limit)=3086)”) in new stack
– Executing [[email protected]:14] GotoIf(“SIP/3086-0000003d”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,27)
– Executing [[email protected]:27] Set(“SIP/3086-0000003d”, “CALLERID(number)=3086”) in new stack
– Executing [[email protected]:28] Set(“SIP/3086-0000003d”, “CALLERID(name)=305-695-3086”) in new stack
– Executing [[email protected]:29] Set(“SIP/3086-0000003d”, “CDR(cnum)=3086”) in new stack
– Executing [[email protected]:30] Set(“SIP/3086-0000003d”, “CDR(cnam)=305-695-3086”) in new stack
– Executing [[email protected]:31] Set(“SIP/3086-0000003d”, “CHANNEL(language)=en”) in new stack
– Executing [[email protected]:2] Set(“SIP/3086-0000003d”, “MOHCLASS=default”) in new stack
– Executing [[email protected]:3] Set(“SIP/3086-0000003d”, “_NODEST=”) in new stack
– Executing [[email protected]:4] Gosub(“SIP/3086-0000003d”, “sub-record-check,s,1(out,3056953089,)”) in new stack
– Executing [[email protected]:1] Set(“SIP/3086-0000003d”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/3086-0000003d”, “1?check”) in new stack
– Goto (sub-record-check,s,7)
– Executing [[email protected]:7] Set(“SIP/3086-0000003d”, “__MON_FMT=wav”) in new stack
– Executing [[email protected]:8] GotoIf(“SIP/3086-0000003d”, “1?next”) in new stack
– Goto (sub-record-check,s,11)
– Executing [[email protected]:11] ExecIf(“SIP/3086-0000003d”, “0?Return()”) in new stack
– Executing [[email protected]:12] ExecIf(“SIP/3086-0000003d”, “0?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [[email protected]:13] GotoIf(“SIP/3086-0000003d”, “0?out,1”) in new stack
– Executing [[email protected]:14] Set(“SIP/3086-0000003d”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:15] Set(“SIP/3086-0000003d”, “NOW=1395779725”) in new stack
– Executing [[email protected]:16] Set(“SIP/3086-0000003d”, “__DAY=25”) in new stack
– Executing [[email protected]:17] Set(“SIP/3086-0000003d”, “__MONTH=03”) in new stack
– Executing [[email protected]:18] Set(“SIP/3086-0000003d”, “__YEAR=2014”) in new stack
– Executing [[email protected]-record-check:19] Set(“SIP/3086-0000003d”, “__TIMESTR=20140325-163525”) in new stack
– Executing [[email protected]:20] Set(“SIP/3086-0000003d”, “__FROMEXTEN=3086”) in new stack
– Executing [[email protected]:21] Set(“SIP/3086-0000003d”, “__CALLFILENAME=out-3056953089-3086-20140325-163525-1395779725.62”) in new stack
– Executing [[email protected]:22] Goto(“SIP/3086-0000003d”, “out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [[email protected]:1] ExecIf(“SIP/3086-0000003d”, “1?Set(__REC_POLICY_MODE=dontcare)”) in new stack
– Executing [[email protected]:2] GosubIf(“SIP/3086-0000003d”, “0?record,1(exten,3056953089,3086)”) in new stack
– Executing [[email protected]:3] Return(“SIP/3086-0000003d”, “”) in new stack
– Executing [[email protected]:5] Macro(“SIP/3086-0000003d”, “dialout-trunk,2,3056953089,off”) in new stack
– Executing [[email protected]:1] Set(“SIP/3086-0000003d”, “DIAL_TRUNK=2”) in new stack
– Executing [[email protected]:2] GosubIf(“SIP/3086-0000003d”, “0?sub-pincheck,s,1()”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/3086-0000003d”, “0?disabletrunk,1”) in new stack
– Executing [[email protected]:4] Set(“SIP/3086-0000003d”, “DIAL_NUMBER=3056953089”) in new stack
– Executing [[email protected]:5] Set(“SIP/3086-0000003d”, “DIAL_TRUNK_OPTIONS=Ttr”) in new stack
– Executing [[email protected]:6] Set(“SIP/3086-0000003d”, “OUTBOUND_GROUP=OUT_2”) in new stack
– Executing [[email protected]:7] GotoIf(“SIP/3086-0000003d”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [[email protected]:9] GotoIf(“SIP/3086-0000003d”, “0?skipoutcid”) in new stack
– Executing [[email protected]:10] Set(“SIP/3086-0000003d”, “DIAL_TRUNK_OPTIONS=Tt”) in new stack
– Executing [[email protected]:11] Macro(“SIP/3086-0000003d”, “outbound-callerid,2”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/3086-0000003d”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [[email protected]:2] ExecIf(“SIP/3086-0000003d”, “0?Set(REALCALLERIDNUM=3086)”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/3086-0000003d”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [[email protected]:6] Set(“SIP/3086-0000003d”, “USEROUTCID=”) in new stack
– Executing [[email protected]:7] Set(“SIP/3086-0000003d”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:8] Set(“SIP/3086-0000003d”, “TRUNKOUTCID=3055356071”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/3086-0000003d”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,14)
– Executing [[email protected]:14] ExecIf(“SIP/3086-0000003d”, “1?Set(CALLERID(all)=3055356071)”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/3086-0000003d”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:16] ExecIf(“SIP/3086-0000003d”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:17] ExecIf(“SIP/3086-0000003d”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [[email protected]:18] Set(“SIP/3086-0000003d”, “CDR(outbound_cnum)=3055356071”) in new stack
– Executing [[email protected]:19] Set(“SIP/3086-0000003d”, “CDR(outbound_cnam)=”) in new stack
– Executing [[email protected]:12] GosubIf(“SIP/3086-0000003d”, “0?sub-flp-2,s,1()”) in new stack
– Executing [[email protected]:13] Set(“SIP/3086-0000003d”, “OUTNUM=3056953089”) in new stack
– Executing [[email protected]:14] Set(“SIP/3086-0000003d”, “custom=SIP/Paetec”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/3086-0000003d”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)”) in new stack
– Executing [[email protected]:16] ExecIf(“SIP/3086-0000003d”, “0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))”) in new stack
– Executing [[email protected]:17] Macro(“SIP/3086-0000003d”, “dialout-trunk-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“SIP/3086-0000003d”, “”) in new stack
– Executing [[email protected]:18] GotoIf(“SIP/3086-0000003d”, “0?bypass,1”) in new stack
– Executing [[email protected]:19] ExecIf(“SIP/3086-0000003d”, “1?Set(CONNECTEDLINE(num,i)=3056953089)”) in new stack
– Executing [[email protected]:20] ExecIf(“SIP/3086-0000003d”, “1?Set(CONNECTEDLINE(name,i)=CID:3055356071)”) in new stack
– Executing [[email protected]:21] GotoIf(“SIP/3086-0000003d”, “0?customtrunk”) in new stack
– Executing [[email protected]:22] Dial(“SIP/3086-0000003d”, “SIP/Paetec/3056953089,300,Tt”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/Paetec/3056953089
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [[email protected]:1] Set(“SIP/Paetec-0000003f”, “GROUP()=OUT_2”) in new stack
– Executing [[email protected]:2] Goto(“SIP/Paetec-0000003f”, “from-trunk,3056953089,1”) in new stack
– Goto (from-trunk,3056953089,1)
– Executing [[email protected]:1] Set(“SIP/Paetec-0000003f”, “__FROM_DID=3056953089”) in new stack
– Executing [[email protected]:2] Set(“SIP/Paetec-0000003f”, “CDR(did)=3056953089”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/Paetec-0000003f”, “0 ?Set(CALLERID(name)=3055356071)”) in new stack
– Executing [[email protected]:4] Set(“SIP/Paetec-0000003f”, “CHANNEL(musicclass)=default”) in new stack
– Executing [[email protected]:5] Set(“SIP/Paetec-0000003f”, “__MOHCLASS=default”) in new stack
– Executing [[email protected]:6] Set(“SIP/Paetec-0000003f”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
– Executing [[email protected]:7] Set(“SIP/Paetec-0000003f”, “CALLERPRES()=allowed_not_screened”) in new stack
– Executing [[email protected]:8] Set(“SIP/Paetec-0000003f”, “FAX_DEST=from-did-direct^3089^1”) in new stack
– Executing [[email protected]:9] Set(“SIP/Paetec-0000003f”, “FAXOPT(faxdetect)=yes”) in new stack
– Executing [[email protected]:10] Answer(“SIP/Paetec-0000003f”, “”) in new stack
– Executing [[email protected]:11] Wait(“SIP/Paetec-0000003f”, “4”) in new stack
– SIP/Paetec-0000003e answered SIP/3086-0000003d
== Redirecting ‘SIP/Paetec-0000003f’ to fax extension due to CNG detection
== Redirecting ‘SIP/Paetec-0000003f’ to fax extension due to CNG detection
== Spawn extension (from-trunk, fax, 1) exited non-zero on ‘SIP/Paetec-0000003f’
– Executing [[email protected]:1] Goto(“SIP/Paetec-0000003f”, “from-did-direct,3089,1”) in new stack
– Goto (from-did-direct,3089,1)
– Executing [[email protected]:1] Set(“SIP/Paetec-0000003f”, “__RINGTIMER=15”) in new stack
– Executing [[email protected]:2] Macro(“SIP/Paetec-0000003f”, “exten-vm,novm,3089,0,0,0”) in new stack
– Executing [[email protected]:1] Macro(“SIP/Paetec-0000003f”, “user-callerid,”) in new stack
– Executing [[email protected]:1] Set(“SIP/Paetec-0000003f”, “TOUCH_MONITOR=1395779726.64”) in new stack
– Executing [[email protected]:2] Set(“SIP/Paetec-0000003f”, “AMPUSER=3055356071”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/Paetec-0000003f”, “0?report”) in new stack
– Executing [[email protected]:4] ExecIf(“SIP/Paetec-0000003f”, “1?Set(REALCALLERIDNUM=3055356071)”) in new stack
– Executing [[email protected]:5] Set(“SIP/Paetec-0000003f”, “AMPUSER=”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/Paetec-0000003f”, “0?limit”) in new stack
– Executing [[email protected]:7] Set(“SIP/Paetec-0000003f”, “AMPUSERCIDNAME=”) in new stack
– Executing [[email protected]:8] GotoIf(“SIP/Paetec-0000003f”, “1?report”) in new stack
– Goto (macro-user-callerid,s,14)
– Executing [[email protected]:14] GotoIf(“SIP/Paetec-0000003f”, “0?continue”) in new stack
– Executing [[email protected]:15] Set(“SIP/Paetec-0000003f”, “__TTL=64”) in new stack
– Executing [[email protected]:16] GotoIf(“SIP/Paetec-0000003f”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,27)
– Executing [[email protected]:27] Set(“SIP/Paetec-0000003f”, “CALLERID(number)=3055356071”) in new stack
– Executing [[email protected]:28] Set(“SIP/Paetec-0000003f”, “CALLERID(name)=FISHER ISLAND H”) in new stack
– Executing [[email protected]:29] Set(“SIP/Paetec-0000003f”, “CDR(cnum)=3055356071”) in new stack
– Executing [[email protected]:30] Set(“SIP/Paetec-0000003f”, “CDR(cnam)=FISHER ISLAND H”) in new stack
– Executing [[email protected]:31] Set(“SIP/Paetec-0000003f”, “CHANNEL(language)=en”) in new stack
– Executing [[email protected]:2] Set(“SIP/Paetec-0000003f”, “RingGroupMethod=none”) in new stack
– Executing [[email protected]:3] Set(“SIP/Paetec-0000003f”, “__EXTTOCALL=3089”) in new stack
– Executing [[email protected]:4] Set(“SIP/Paetec-0000003f”, “__PICKUPMARK=3089”) in new stack
– Executing [[email protected]:5] Set(“SIP/Paetec-0000003f”, “RT=”) in new stack
– Executing [[email protected]:6] Gosub(“SIP/Paetec-0000003f”, “sub-record-check,s,1(exten,3089,)”) in new stack
– Executing [[email protected]:1] Set(“SIP/Paetec-0000003f”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/Paetec-0000003f”, “1?check”) in new stack
– Goto (sub-record-check,s,7)
– Executing [[email protected]:7] Set(“SIP/Paetec-0000003f”, “__MON_FMT=wav”) in new stack
– Executing [[email protected]:8] GotoIf(“SIP/Paetec-0000003f”, “1?next”) in new stack
– Goto (sub-record-check,s,11)
– Executing [[email protected]:11] ExecIf(“SIP/Paetec-0000003f”, “0?Return()”) in new stack
– Executing [[email protected]:12] ExecIf(“SIP/Paetec-0000003f”, “0?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [[email protected]:13] GotoIf(“SIP/Paetec-0000003f”, “0?exten,1”) in new stack
– Executing [[email protected]:14] Set(“SIP/Paetec-0000003f”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:15] Set(“SIP/Paetec-0000003f”, “NOW=1395779728”) in new stack
– Executing [[email protected]:16] Set(“SIP/Paetec-0000003f”, “__DAY=25”) in new stack
– Executing [[email protected]:17] Set(“SIP/Paetec-0000003f”, “__MONTH=03”) in new stack
– Executing [[email protected]:18] Set(“SIP/Paetec-0000003f”, “__YEAR=2014”) in new stack
– Executing [[email protected]:19] Set(“SIP/Paetec-0000003f”, “__TIMESTR=20140325-163528”) in new stack
– Executing [[email protected]:20] Set(“SIP/Paetec-0000003f”, “__FROMEXTEN=3055356071”) in new stack
– Executing [[email protected]:21] Set(“SIP/Paetec-0000003f”, “__CALLFILENAME=exten-3089-3055356071-20140325-163528-1395779726.64”) in new stack
– Executing [[email protected]:22] Goto(“SIP/Paetec-0000003f”, “exten,1”) in new stack
– Goto (sub-record-check,exten,1)
– Executing [[email protected]:1] GotoIf(“SIP/Paetec-0000003f”, “0?callee”) in new stack
– Executing [[email protected]:2] Set(“SIP/Paetec-0000003f”, “__REC_POLICY_MODE=dontcare”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/Paetec-0000003f”, “1?caller”) in new stack
– Goto (sub-record-check,exten,10)
– Executing [[email protected]:10] Set(“SIP/Paetec-0000003f”, “__REC_POLICY_MODE=”) in new stack
– Executing [[email protected]:11] GosubIf(“SIP/Paetec-0000003f”, “0?record,1(exten,3089,3055356071)”) in new stack
– Executing [[email protected]:12] Return(“SIP/Paetec-0000003f”, “”) in new stack
– Executing [[email protected]:7] Macro(“SIP/Paetec-0000003f”, “dial-one,Ttr,3089”) in new stack
– Executing [[email protected]:1] Set(“SIP/Paetec-0000003f”, “DEXTEN=3089”) in new stack
– Executing [[email protected]:2] Set(“SIP/Paetec-0000003f”, “DIALSTATUS_CW=”) in new stack
– Executing [[email protected]:3] GosubIf(“SIP/Paetec-0000003f”, “0?screen,1()”) in new stack
– Executing [[email protected]:4] GosubIf(“SIP/Paetec-0000003f”, “0?cf,1()”) in new stack
– Executing [[email protected]:5] GotoIf(“SIP/Paetec-0000003f”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,8)
– Executing [[email protected]:8] GotoIf(“SIP/Paetec-0000003f”, “0?nodial”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/Paetec-0000003f”, “0?continue”) in new stack
– Executing [[email protected]:10] Set(“SIP/Paetec-0000003f”, “EXTHASCW=ENABLED”) in new stack
– Executing [[email protected]:11] GotoIf(“SIP/Paetec-0000003f”, “0?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,23)
– Executing [[email protected]:23] GotoIf(“SIP/Paetec-0000003f”, “1?next3:continue”) in new stack
– Goto (macro-dial-one,s,24)
– Executing [[email protected]:24] ExecIf(“SIP/Paetec-0000003f”, “0?Set(DIALSTATUS_CW=BUSY)”) in new stack
– Executing [[email protected]:25] GotoIf(“SIP/Paetec-0000003f”, “0?nodial”) in new stack
– Executing [[email protected]:26] GosubIf(“SIP/Paetec-0000003f”, “1?dstring,1():dlocal,1()”) in new stack
– Executing [[email protected]:1] Set(“SIP/Paetec-0000003f”, “DSTRING=”) in new stack
– Executing [[email protected]:2] Set(“SIP/Paetec-0000003f”, “DEVICES=”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/Paetec-0000003f”, “1?Return()”) in new stack
– Executing [[email protected]:27] GotoIf(“SIP/Paetec-0000003f”, “1?nodial”) in new stack
– Goto (macro-dial-one,s,48)
– Executing [[email protected]:48] ExecIf(“SIP/Paetec-0000003f”, “1?Set(DIALSTATUS=NOANSWER)”) in new stack
– Executing [[email protected]:49] NoOp(“SIP/Paetec-0000003f”, “Returned from dial-one with nothing to call and DIALSTATUS: NOANSWER”) in new stack
– Executing [[email protected]:50] MacroExit(“SIP/Paetec-0000003f”, “”) in new stack
– Executing [[email protected]:8] Set(“SIP/Paetec-0000003f”, “SV_DIALSTATUS=NOANSWER”) in new stack
– Executing [[email protected]:9] GosubIf(“SIP/Paetec-0000003f”, “0?docfu,1()”) in new stack
– Executing [[email protected]:10] GosubIf(“SIP/Paetec-0000003f”, “0?docfb,1()”) in new stack
– Executing [[email protected]:11] Set(“SIP/Paetec-0000003f”, “DIALSTATUS=NOANSWER”) in new stack
– Executing [[email protected]:12] ExecIf(“SIP/Paetec-0000003f”, “0?MacroExit()”) in new stack
– Executing [[email protected]:13] GotoIf(“SIP/Paetec-0000003f”, “1?s-NOANSWER,1”) in new stack
– Goto (macro-exten-vm,s-NOANSWER,1)
– Executing [[email protected]:1] GotoIf(“SIP/Paetec-0000003f”, “0?exit,1”) in new stack
– Executing [[email protected]:2] PlayTones(“SIP/Paetec-0000003f”, “congestion”) in new stack
– Executing [[email protected]:3] Congestion(“SIP/Paetec-0000003f”, “10”) in new stack
As you can see the extension returns busy and never accepts the fax.