using Asterisk (Ver. 11.5.1) on debian FreePBX 2.11.0.1
using 2 voip trunks one for incoming traffic (both fax and voice) called VIVA one for outgoing (fax only) called VIVA2
i have set up the trunk1 (viva) to accept voice/fax and detect/forward the faxes to trunk2 (viva2) (where in trunk2 there is a virtual fax2email machine provided by my voip provider)
So up to now, here’s what I’ve been doing.
-
In the inbound route.
Set “Detect Faxes” to YES
Set “Fax Detection type” to SIP
(I think this might be the problem)
Set “Fax Destination” to an extension (ex 12345) -
Create extension 12345
In the “Fax” section
Check the "Enabled?"
set the “Fax email” to a valid email -
In Advanced SIP settings, add the line :
faxdetect = YES
when i dial-in using a fax machine there is a pause for fax detection then call gets directed to the queue and i hear the music on hold playing
why faxes don’t get detected ?
here is the log
[email protected]:~#
[email protected]:~# asterisk -vvvvvr
Asterisk 11.5.1, Copyright © 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer [email protected]
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.
Connected to Asterisk 11.5.1 currently running on swsterisk (pid = 2360)
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [[email protected]:1] NoOp(“SIP/VIVA-0000002b”, “Catch-All DID Match - Found 302118007994 - You probably want a DID for this.”) in new stack
– Executing [[email protected]:2] Set(“SIP/VIVA-0000002b”, “__FROM_DID=302118007994”) in new stack
– Executing [[email protected]:3] Goto(“SIP/VIVA-0000002b”, “ext-did,s,1”) in new stack
– Goto (ext-did,s,1)
– Executing [[email protected]:1] ExecIf(“SIP/VIVA-0000002b”, “0?Set(__FROM_DID=s)”) in new stack
– Executing [[email protected]:2] Gosub(“SIP/VIVA-0000002b”, “app-blacklist-check,s,1()”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/VIVA-0000002b”, “0?blacklisted”) in new stack
– Executing [[email protected]:2] Set(“SIP/VIVA-0000002b”, “CALLED_BLACKLIST=1”) in new stack
– Executing [[email protected]:3] Return(“SIP/VIVA-0000002b”, “”) in new stack
– Executing [[email protected]:3] Set(“SIP/VIVA-0000002b”, “CDR(did)=302118007994”) in new stack
– Executing [[email protected]:4] ExecIf(“SIP/VIVA-0000002b”, “0 ?Set(CALLERID(name)=2108022705)”) in new stack
– Executing [[email protected]:5] Set(“SIP/VIVA-0000002b”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
– Executing [[email protected]:6] Set(“SIP/VIVA-0000002b”, “CALLERPRES()=allowed_not_screened”) in new stack
– Executing [[email protected]:7] Set(“SIP/VIVA-0000002b”, “FAX_DEST=ext-trunk^4^1”) in new stack
– Executing [[email protected]:8] Answer(“SIP/VIVA-0000002b”, “”) in new stack
– Executing [[email protected]:9] Wait(“SIP/VIVA-0000002b”, “4”) in new stack
> 0x2ced740 – Probation passed - setting RTP source address to 83.235.24.87:18558
(below it goes to the queue up is after fax detection timeouts)
-- Executing [[email protected]:10] Goto("SIP/VIVA-0000002b", "ext-queues,7000,1") in new stack
-- Goto (ext-queues,7000,1)
-- Executing [[email protected]:1] Macro("SIP/VIVA-0000002b", "user-callerid,") in new stack
-- Executing [[email protected]:1] Set("SIP/VIVA-0000002b", "TOUCH_MONITOR=1401891548.97") in new stack
-- Executing [[email protected]:2] Set("SIP/VIVA-0000002b", "AMPUSER=2108022705") in new stack
-- Executing [[email protected]:3] GotoIf("SIP/VIVA-0000002b", "0?report") in new stack
-- Executing [[email protected]:4] ExecIf("SIP/VIVA-0000002b", "1?Set(REALCALLERIDNUM=2108022705)") in new stack
-- Executing [[email protected]:5] Set("SIP/VIVA-0000002b", "AMPUSER=") in new stack
-- Executing [[email protected]:6] Set("SIP/VIVA-0000002b", "AMPUSERCIDNAME=") in new stack
-- Executing [[email protected]:7] GotoIf("SIP/VIVA-0000002b", "1?report") in new stack
-- Goto (macro-user-callerid,s,14)
-- Executing [[email protected]:14] GotoIf("SIP/VIVA-0000002b", "0?continue") in new stack
-- Executing [[email protected]acro-user-callerid:15] Set("SIP/VIVA-0000002b", "__TTL=64") in new stack
-- Executing [[email protected]:16] GotoIf("SIP/VIVA-0000002b", "1?continue") in new stack
-- Goto (macro-user-callerid,s,27)
-- Executing [[email protected]:27] Set("SIP/VIVA-0000002b", "CALLERID(number)=2108022705") in new stack
-- Executing [[email protected]:28] Set("SIP/VIVA-0000002b", "CALLERID(name)=302108022705") in new stack
-- Executing [[email protected]:29] Set("SIP/VIVA-0000002b", "CDR(cnum)=2108022705") in new stack
-- Executing [[email protected]:30] Set("SIP/VIVA-0000002b", "CDR(cnam)=302108022705") in new stack
-- Executing [[email protected]:31] Set("SIP/VIVA-0000002b", "CHANNEL(language)=en") in new stack
-- Executing [[email protected]:2] Answer("SIP/VIVA-0000002b", "") in new stack
-- Executing [[email protected]:3] Macro("SIP/VIVA-0000002b", "blkvm-set,reset") in new stack
-- Executing [[email protected]:1] ExecIf("SIP/VIVA-0000002b", "1?Set(__BLKVM_CHANNEL=SIP/VIVA-0000002b)") in new stack
-- Executing [[email protected]:2] Set("SIP/VIVA-0000002b", "SHARED(BLKVM,SIP/VIVA-0000002b)=TRUE") in new stack
-- Executing [[email protected]:3] Set("SIP/VIVA-0000002b", "GOSUB_RETVAL=TRUE") in new stack
-- Executing [[email protected]:4] MacroExit("SIP/VIVA-0000002b", "") in new stack
-- Executing [[email protected]:4] ExecIf("SIP/VIVA-0000002b", "1?Set(_DIAL_OPTIONS=TtrM(auto-blkvm))") in new stack
-- Executing [[email protected]:5] Set("SIP/VIVA-0000002b", "__NODEST=7000") in new stack
-- Executing [[email protected]:6] Set("SIP/VIVA-0000002b", "QCIDPP=") in new stack
-- Executing [[email protected]:7] Set("SIP/VIVA-0000002b", "VQ_CIDPP=") in new stack
-- Executing [[email protected]:8] ExecIf("SIP/VIVA-0000002b", "0?Macro(prepend-cid, )") in new stack
-- Executing [[email protected]:9] Set("SIP/VIVA-0000002b", "QAINFO=") in new stack
-- Executing [[email protected]:10] Set("SIP/VIVA-0000002b", "VQ_AINFO=") in new stack
-- Executing [[email protected]:11] ExecIf("SIP/VIVA-0000002b", "0?Set(__ALERT_INFO=)") in new stack
-- Executing [[email protected]:12] Set("SIP/VIVA-0000002b", "QJOINMSG=") in new stack
-- Executing [[email protected]:13] Set("SIP/VIVA-0000002b", "VQ_JOINMSG=") in new stack
-- Executing [[email protected]:14] Set("SIP/VIVA-0000002b", "QMOH=default") in new stack
-- Executing [[email protected]:15] Set("SIP/VIVA-0000002b", "VQ_MOH=") in new stack
-- Executing [[email protected]:16] ExecIf("SIP/VIVA-0000002b", "1?Set(__MOHCLASS=default)") in new stack
-- Executing [[email protected]:17] Set("SIP/VIVA-0000002b", "QRETRY=") in new stack
-- Executing [[email protected]:18] Set("SIP/VIVA-0000002b", "VQ_RETRY=") in new stack
-- Executing [[email protected]:19] Set("SIP/VIVA-0000002b", "QOPTIONS=t") in new stack
-- Executing [[email protected]:20] Set("SIP/VIVA-0000002b", "VQ_OPTIONS=") in new stack
-- Executing [[email protected]:21] Set("SIP/VIVA-0000002b", "QGOSUB=") in new stack
-- Executing [[email protected]:22] Set("SIP/VIVA-0000002b", "VQ_GOSUB=") in new stack
-- Executing [[email protected]:23] Set("SIP/VIVA-0000002b", "QAGI=") in new stack
-- Executing [[email protected]:24] Set("SIP/VIVA-0000002b", "VQ_AGI=") in new stack
-- Executing [[email protected]:25] Set("SIP/VIVA-0000002b", "QRULE=") in new stack
-- Executing [[email protected]:26] Set("SIP/VIVA-0000002b", "VQ_RULE=") in new stack
-- Executing [[email protected]:27] Set("SIP/VIVA-0000002b", "QPOSITION=") in new stack
-- Executing [[email protected]:28] Set("SIP/VIVA-0000002b", "VQ_POSITION=") in new stack
-- Executing [[email protected]:29] Gosub("SIP/VIVA-0000002b", "sub-record-check,s,1(q,7000,dontcare)") in new stack
-- Executing [[email protected]:1] Set("SIP/VIVA-0000002b", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [[email protected]:2] GotoIf("SIP/VIVA-0000002b", "1?check") in new stack
-- Goto (sub-record-check,s,7)
-- Executing [[email protected]:7] Set("SIP/VIVA-0000002b", "__MON_FMT=wav") in new stack
-- Executing [[email protected]:8] GotoIf("SIP/VIVA-0000002b", "1?next") in new stack
-- Goto (sub-record-check,s,11)
-- Executing [[email protected]:11] ExecIf("SIP/VIVA-0000002b", "0?Return()") in new stack
-- Executing [[email protected]:12] ExecIf("SIP/VIVA-0000002b", "1?Set(__REC_POLICY_MODE=dontcare)") in new stack
-- Executing [[email protected]:13] GotoIf("SIP/VIVA-0000002b", "0?q,1") in new stack
-- Executing [[email protected]:14] Set("SIP/VIVA-0000002b", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [[email protected]:15] Set("SIP/VIVA-0000002b", "NOW=1401891553") in new stack
-- Executing [[email protected]:16] Set("SIP/VIVA-0000002b", "__DAY=04") in new stack
-- Executing [[email protected]:17] Set("SIP/VIVA-0000002b", "__MONTH=06") in new stack
-- Executing [[email protected]:18] Set("SIP/VIVA-0000002b", "__YEAR=2014") in new stack
-- Executing [[email protected]:19] Set("SIP/VIVA-0000002b", "__TIMESTR=20140604-221913") in new stack
-- Executing [[email protected]:20] Set("SIP/VIVA-0000002b", "__FROMEXTEN=2108022705") in new stack
-- Executing [[email protected]:21] Set("SIP/VIVA-0000002b", "__CALLFILENAME=q-7000-2108022705-20140604-221913-1401891548.97") in new stack
-- Executing [[email protected]:22] Goto("SIP/VIVA-0000002b", "q,1") in new stack
-- Goto (sub-record-check,q,1)
-- Executing [[email protected]:1] GosubIf("SIP/VIVA-0000002b", "0?recq,1(q,7000,2108022705)") in new stack
-- Executing [[email protected]:2] Return("SIP/VIVA-0000002b", "") in new stack
-- Executing [[email protected]:30] ExecIf("SIP/VIVA-0000002b", "0?Playback(, )") in new stack
-- Executing [[email protected]:31] QueueLog("SIP/VIVA-0000002b", "7000,1401891548.97,NONE,DID,302118007994") in new stack
-- Executing [[email protected]:32] Set("SIP/VIVA-0000002b", "QAANNOUNCE=") in new stack
-- Executing [[email protected]:33] Set("SIP/VIVA-0000002b", "VQ_AANNOUNCE=") in new stack
-- Executing [[email protected]:34] Set("SIP/VIVA-0000002b", "QMAXWAIT=") in new stack
-- Executing [[email protected]:35] Set("SIP/VIVA-0000002b", "VQ_MAXWAIT=") in new stack
-- Executing [[email protected]:36] Queue("SIP/VIVA-0000002b", "7000,t,,,,,,,,") in new stack
-- Started music on hold, class 'default', on SIP/VIVA-0000002b
-- Executing [[email protected]:1] Set("Local/[email protected];2", "QAGENT=6000") in new stack
-- Executing [[email protected]:2] Goto("Local/[email protected];2", "7000,1") in new stack
-- Goto (from-queue,7000,1)
-- Executing [[email protected]:1] Goto("Local/[email protected];2", "from-internal,6000,1") in new stack
-- Goto (from-internal,6000,1)
-- Executing [[email protected]:1] Set("Local/[email protected];2", "__RINGTIMER=15") in new stack
-- Executing [[email protected]:2] Macro("Local/[email protected];2", "exten-vm,novm,6000,0,0,0") in new stack
-- Executing [[email protected]:1] Macro("Local/[email protected];2", "user-callerid,") in new stack
-- Executing [[email protected]:1] Set("Local/[email protected];2", "TOUCH_MONITOR=1401891553.99") in new stack
-- Executing [[email protected]:2] Set("Local/[email protected];2", "AMPUSER=2108022705") in new stack
-- Executing [[email protected]:3] GotoIf("Local/[email protected];2", "1?report") in new stack
-- Goto (macro-user-callerid,s,14)
-- Executing [[email protected]:14] GotoIf("Local/[email protected];2", "0?continue") in new stack
-- Executing [[email protected]:15] Set("Local/[email protected];2", "__TTL=63") in new stack
-- Executing [[email protected]:16] GotoIf("Local/[email protected];2", "1?continue") in new stack
-- Goto (macro-user-callerid,s,27)
-- Executing [[email protected]:27] Set("Local/[email protected];2", "CALLERID(number)=2108022705") in new stack
-- Executing [[email protected]:28] Set("Local/[email protected];2", "CALLERID(name)=302108022705") in new stack
-- Executing [[email protected]:29] Set("Local/[email protected];2", "CDR(cnum)=2108022705") in new stack
-- Executing [[email protected]:30] Set("Local/[email protected];2", "CDR(cnam)=302108022705") in new stack
-- Executing [[email protected]:31] Set("Local/[email protected];2", "CHANNEL(language)=en") in new stack
-- Executing [[email protected]:2] Set("Local/[email protected];2", "RingGroupMethod=none") in new stack
-- Executing [[email protected]:3] Set("Local/[email protected];2", "__EXTTOCALL=6000") in new stack
-- Executing [[email protected]:4] Set("Local/[email protected];2", "__PICKUPMARK=6000") in new stack
-- Executing [[email protected]:5] Set("Local/[email protected];2", "RT=") in new stack
-- Executing [[email protected]:6] Gosub("Local/[email protected];2", "sub-record-check,s,1(exten,6000,)") in new stack
-- Executing [[email protected]:1] Set("Local/[email protected];2", "REC_POLICY_MODE_SAVE=dontcare") in new stack
-- Executing [[email protected]:2] GotoIf("Local/[email protected];2", "1?check") in new stack
-- Goto (sub-record-check,s,7)
-- Executing [[email protected]:7] Set("Local/[email protected];2", "__MON_FMT=wav") in new stack
-- Executing [[email protected]:8] GotoIf("Local/[email protected];2", "1?next") in new stack
-- Goto (sub-record-check,s,11)
-- Executing [[email protected]:11] ExecIf("Local/[email protected];2", "0?Return()") in new stack
-- Executing [[email protected]:12] ExecIf("Local/[email protected];2", "0?Set(__REC_POLICY_MODE=)") in new stack
-- Executing [[email protected]:13] GotoIf("Local/[email protected];2", "1?exten,1") in new stack
-- Goto (sub-record-check,exten,1)
-- Executing [[email protected]:1] GotoIf("Local/[email protected];2", "1?callee") in new stack
-- Goto (sub-record-check,exten,8)
-- Executing [[email protected]:8] GosubIf("Local/[email protected];2", "0?record,1(exten,6000,2108022705)") in new stack
-- Executing [[email protected]:9] Return("Local/[email protected];2", "") in new stack
-- Executing [[email protected]:7] GotoIf("Local/[email protected];2", "12?macrodial") in new stack
-- Goto (macro-exten-vm,s,13)
-- Executing [[email protected]:13] GosubIf("Local/[email protected];2", "0?clrheader,1()") in new stack
-- Executing [[email protected]:14] Macro("Local/[email protected];2", "dial-one,,TtrM(auto-blkvm),6000") in new stack
-- Executing [[email protected]:1] Set("Local/[email protected];2", "DEXTEN=6000") in new stack
-- Executing [[email protected]:2] Set("Local/[email protected];2", "DIALSTATUS_CW=") in new stack
-- Executing [[email protected]:3] GosubIf("Local/[email protected];2", "0?screen,1()") in new stack
-- Executing [[email protected]:4] GosubIf("Local/[email protected];2", "0?cf,1()") in new stack
-- Executing [[email protected]:5] GotoIf("Local/[email protected];2", "1?skip1") in new stack
-- Goto (macro-dial-one,s,8)
-- Executing [[email protected]:8] GotoIf("Local/[email protected];2", "0?nodial") in new stack
-- Executing [[email protected]:9] GotoIf("Local/[email protected];2", "0?continue") in new stack
-- Executing [[email protected]:10] Set("Local/[email protected];2", "EXTHASCW=ENABLED") in new stack
-- Executing [[email protected]:11] GotoIf("Local/[email protected];2", "0?next1:cwinusebusy") in new stack
-- Goto (macro-dial-one,s,23)
-- Executing [[email protected]:23] GotoIf("Local/[email protected];2", "1?next3:continue") in new stack
-- Goto (macro-dial-one,s,24)
-- Executing [[email protected]:24] ExecIf("Local/[email protected];2", "0?Set(DIALSTATUS_CW=BUSY)") in new stack
-- Executing [[email protected]:25] GotoIf("Local/[email protected];2", "0?nodial") in new stack
-- Executing [[email protected]:26] GosubIf("Local/[email protected];2", "1?dstring,1():dlocal,1()") in new stack
-- Executing [[email protected]:1] Set("Local/[email protected];2", "DSTRING=") in new stack
-- Executing [[email protected]:2] Set("Local/[email protected];2", "DEVICES=6000") in new stack
-- Executing [[email protected]:3] ExecIf("Local/[email protected];2", "0?Return()") in new stack
-- Executing [[email protected]:4] ExecIf("Local/[email protected];2", "0?Set(DEVICES=000)") in new stack
-- Executing [[email protected]:5] Set("Local/[email protected];2", "LOOPCNT=1") in new stack
-- Executing [[email protected]:6] Set("Local/[email protected];2", "ITER=1") in new stack
-- Executing [[email protected]:7] Set("Local/[email protected];2", "THISDIAL=SIP/6000") in new stack
-- Executing [[email protected]:8] GosubIf("Local/[email protected];2", "1?zap2dahdi,1()") in new stack
-- Executing [[email protected]:1] ExecIf("Local/[email protected];2", "0?Return()") in new stack
-- Executing [[email protected]:2] Set("Local/[email protected];2", "NEWDIAL=") in new stack
-- Executing [[email protected]:3] Set("Local/[email protected];2", "LOOPCNT2=1") in new stack
-- Executing [[email protected]:4] Set("Local/[email protected];2", "ITER2=1") in new stack
-- Executing [[email protected]:5] Set("Local/[email protected];2", "THISPART2=SIP/6000") in new stack
-- Executing [[email protected]:6] ExecIf("Local/[email protected];2", "0?Set(THISPART2=DAHDI/6000)") in new stack
-- Executing [[email protected]:7] Set("Local/[email protected];2", "NEWDIAL=SIP/6000&") in new stack
-- Executing [[email protected]:8] Set("Local/[email protected];2", "ITER2=2") in new stack
-- Executing [[email protected]:9] GotoIf("Local/[email protected];2", "0?begin2") in new stack
-- Executing [[email protected]:10] Set("Local/[email protected];2", "THISDIAL=SIP/6000") in new stack
-- Executing [[email protected]:11] Return("Local/[email protected];2", "") in new stack
-- Executing [[email protected]:9] Set("Local/[email protected];2", "DSTRING=SIP/6000&") in new stack
-- Executing [[email protected]:10] Set("Local/[email protected];2", "ITER=2") in new stack
-- Executing [[email protected]:11] GotoIf("Local/[email protected];2", "0?begin") in new stack
-- Executing [[email protected]:12] Set("Local/[email protected];2", "DSTRING=SIP/6000") in new stack
-- Executing [[email protected]:13] Return("Local/[email protected];2", "") in new stack
-- Executing [[email protected]:27] GotoIf("Local/[email protected];2", "0?nodial") in new stack
-- Executing [[email protected]:28] GotoIf("Local/[email protected];2", "0?skiptrace") in new stack
-- Executing [[email protected]:29] GosubIf("Local/[email protected];2", "1?ctset,1():ctclear,1()") in new stack
-- Executing [[email protected]:1] Set("Local/[email protected];2", "DB(CALLTRACE/6000)=2108022705") in new stack
-- Executing [[email protected]:2] Return("Local/[email protected];2", "") in new stack
-- Executing [[email protected]:30] Set("Local/[email protected];2", "D_OPTIONS=TtrM(auto-blkvm)") in new stack
-- Executing [[email protected]:31] ExecIf("Local/[email protected];2", "0?SIPAddHeader(Alert-Info: )") in new stack
-- Executing [[email protected]:32] ExecIf("Local/[email protected];2", "0?SIPAddHeader()") in new stack
-- Executing [[email protected]:33] ExecIf("Local/[email protected];2", "1?Set(CHANNEL(musicclass)=default)") in new stack
-- Executing [[email protected]:34] GosubIf("Local/[email protected];2", "0?qwait,1()") in new stack
-- Executing [[email protected]:35] Set("Local/[email protected];2", "__CWIGNORE=") in new stack
-- Executing [[email protected]:36] Set("Local/[email protected];2", "__KEEPCID=TRUE") in new stack
-- Executing [[email protected]:37] GotoIf("Local/[email protected];2", "0?usegoto,1") in new stack
-- Executing [[email protected]:38] GotoIf("Local/[email protected];2", "1?godial") in new stack
-- Goto (macro-dial-one,s,42)
-- Executing [[email protected]:42] Dial("Local/[email protected];2", "SIP/6000,,TtrM(auto-blkvm)") in new stack
== Using UDPTL TOS bits 184
== Using UDPTL CoS mark 5
[2014-06-04 22:19:19] NOTICE[2387][C-00000010]: chan_sip.c:10698 process_sdp: T.38 re-INVITE detected but no fax extension
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/6000
– Local/[email protected];1 is ringing
– Local/[email protected];1 connected line has changed. Saving it until answer for SIP/VIVA-0000002b
– Local/[email protected];1 connected line has changed. Saving it until answer for SIP/VIVA-0000002b
– SIP/6000-0000002c is ringing
– Local/[email protected];1 is ringing
– Stopped music on hold on SIP/VIVA-0000002b