Fax detection and forward will not work pls help!

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.

  1. 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)

  2. Create extension 12345
    In the “Fax” section
    Check the "Enabled?"
    set the “Fax email” to a valid email

  3. 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

root@swsterisk:~#
root@swsterisk:~# 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 [302118007994@from-trunk:1] NoOp(“SIP/VIVA-0000002b”, “Catch-All DID Match - Found 302118007994 - You probably want a DID for this.”) in new stack
– Executing [302118007994@from-trunk:2] Set(“SIP/VIVA-0000002b”, “__FROM_DID=302118007994”) in new stack
– Executing [302118007994@from-trunk:3] Goto(“SIP/VIVA-0000002b”, “ext-did,s,1”) in new stack
– Goto (ext-did,s,1)
– Executing [s@ext-did:1] ExecIf(“SIP/VIVA-0000002b”, “0?Set(__FROM_DID=s)”) in new stack
– Executing [s@ext-did:2] Gosub(“SIP/VIVA-0000002b”, “app-blacklist-check,s,1()”) in new stack
– Executing [s@app-blacklist-check:1] GotoIf(“SIP/VIVA-0000002b”, “0?blacklisted”) in new stack
– Executing [s@app-blacklist-check:2] Set(“SIP/VIVA-0000002b”, “CALLED_BLACKLIST=1”) in new stack
– Executing [s@app-blacklist-check:3] Return(“SIP/VIVA-0000002b”, “”) in new stack
– Executing [s@ext-did:3] Set(“SIP/VIVA-0000002b”, “CDR(did)=302118007994”) in new stack
– Executing [s@ext-did:4] ExecIf(“SIP/VIVA-0000002b”, “0 ?Set(CALLERID(name)=2108022705)”) in new stack
– Executing [s@ext-did:5] Set(“SIP/VIVA-0000002b”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
– Executing [s@ext-did:6] Set(“SIP/VIVA-0000002b”, “CALLERPRES()=allowed_not_screened”) in new stack
– Executing [s@ext-did:7] Set(“SIP/VIVA-0000002b”, “FAX_DEST=ext-trunk^4^1”) in new stack
– Executing [s@ext-did:8] Answer(“SIP/VIVA-0000002b”, “”) in new stack
– Executing [s@ext-did: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 [s@ext-did:10] Goto("SIP/VIVA-0000002b", "ext-queues,7000,1") in new stack
-- Goto (ext-queues,7000,1)
-- Executing [7000@ext-queues:1] Macro("SIP/VIVA-0000002b", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/VIVA-0000002b", "TOUCH_MONITOR=1401891548.97") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/VIVA-0000002b", "AMPUSER=2108022705") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/VIVA-0000002b", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/VIVA-0000002b", "1?Set(REALCALLERIDNUM=2108022705)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/VIVA-0000002b", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:6] Set("SIP/VIVA-0000002b", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:7] GotoIf("SIP/VIVA-0000002b", "1?report") in new stack
-- Goto (macro-user-callerid,s,14)
-- Executing [s@macro-user-callerid:14] GotoIf("SIP/VIVA-0000002b", "0?continue") in new stack
-- Executing [s@macro-user-callerid:15] Set("SIP/VIVA-0000002b", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:16] GotoIf("SIP/VIVA-0000002b", "1?continue") in new stack
-- Goto (macro-user-callerid,s,27)
-- Executing [s@macro-user-callerid:27] Set("SIP/VIVA-0000002b", "CALLERID(number)=2108022705") in new stack
-- Executing [s@macro-user-callerid:28] Set("SIP/VIVA-0000002b", "CALLERID(name)=302108022705") in new stack
-- Executing [s@macro-user-callerid:29] Set("SIP/VIVA-0000002b", "CDR(cnum)=2108022705") in new stack
-- Executing [s@macro-user-callerid:30] Set("SIP/VIVA-0000002b", "CDR(cnam)=302108022705") in new stack
-- Executing [s@macro-user-callerid:31] Set("SIP/VIVA-0000002b", "CHANNEL(language)=en") in new stack
-- Executing [7000@ext-queues:2] Answer("SIP/VIVA-0000002b", "") in new stack
-- Executing [7000@ext-queues:3] Macro("SIP/VIVA-0000002b", "blkvm-set,reset") in new stack
-- Executing [s@macro-blkvm-set:1] ExecIf("SIP/VIVA-0000002b", "1?Set(__BLKVM_CHANNEL=SIP/VIVA-0000002b)") in new stack
-- Executing [s@macro-blkvm-set:2] Set("SIP/VIVA-0000002b", "SHARED(BLKVM,SIP/VIVA-0000002b)=TRUE") in new stack
-- Executing [s@macro-blkvm-set:3] Set("SIP/VIVA-0000002b", "GOSUB_RETVAL=TRUE") in new stack
-- Executing [s@macro-blkvm-set:4] MacroExit("SIP/VIVA-0000002b", "") in new stack
-- Executing [7000@ext-queues:4] ExecIf("SIP/VIVA-0000002b", "1?Set(_DIAL_OPTIONS=TtrM(auto-blkvm))") in new stack
-- Executing [7000@ext-queues:5] Set("SIP/VIVA-0000002b", "__NODEST=7000") in new stack
-- Executing [7000@ext-queues:6] Set("SIP/VIVA-0000002b", "QCIDPP=") in new stack
-- Executing [7000@ext-queues:7] Set("SIP/VIVA-0000002b", "VQ_CIDPP=") in new stack
-- Executing [7000@ext-queues:8] ExecIf("SIP/VIVA-0000002b", "0?Macro(prepend-cid, )") in new stack
-- Executing [7000@ext-queues:9] Set("SIP/VIVA-0000002b", "QAINFO=") in new stack
-- Executing [7000@ext-queues:10] Set("SIP/VIVA-0000002b", "VQ_AINFO=") in new stack
-- Executing [7000@ext-queues:11] ExecIf("SIP/VIVA-0000002b", "0?Set(__ALERT_INFO=)") in new stack
-- Executing [7000@ext-queues:12] Set("SIP/VIVA-0000002b", "QJOINMSG=") in new stack
-- Executing [7000@ext-queues:13] Set("SIP/VIVA-0000002b", "VQ_JOINMSG=") in new stack
-- Executing [7000@ext-queues:14] Set("SIP/VIVA-0000002b", "QMOH=default") in new stack
-- Executing [7000@ext-queues:15] Set("SIP/VIVA-0000002b", "VQ_MOH=") in new stack
-- Executing [7000@ext-queues:16] ExecIf("SIP/VIVA-0000002b", "1?Set(__MOHCLASS=default)") in new stack
-- Executing [7000@ext-queues:17] Set("SIP/VIVA-0000002b", "QRETRY=") in new stack
-- Executing [7000@ext-queues:18] Set("SIP/VIVA-0000002b", "VQ_RETRY=") in new stack
-- Executing [7000@ext-queues:19] Set("SIP/VIVA-0000002b", "QOPTIONS=t") in new stack
-- Executing [7000@ext-queues:20] Set("SIP/VIVA-0000002b", "VQ_OPTIONS=") in new stack
-- Executing [7000@ext-queues:21] Set("SIP/VIVA-0000002b", "QGOSUB=") in new stack
-- Executing [7000@ext-queues:22] Set("SIP/VIVA-0000002b", "VQ_GOSUB=") in new stack
-- Executing [7000@ext-queues:23] Set("SIP/VIVA-0000002b", "QAGI=") in new stack
-- Executing [7000@ext-queues:24] Set("SIP/VIVA-0000002b", "VQ_AGI=") in new stack
-- Executing [7000@ext-queues:25] Set("SIP/VIVA-0000002b", "QRULE=") in new stack
-- Executing [7000@ext-queues:26] Set("SIP/VIVA-0000002b", "VQ_RULE=") in new stack
-- Executing [7000@ext-queues:27] Set("SIP/VIVA-0000002b", "QPOSITION=") in new stack
-- Executing [7000@ext-queues:28] Set("SIP/VIVA-0000002b", "VQ_POSITION=") in new stack
-- Executing [7000@ext-queues:29] Gosub("SIP/VIVA-0000002b", "sub-record-check,s,1(q,7000,dontcare)") in new stack
-- Executing [s@sub-record-check:1] Set("SIP/VIVA-0000002b", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:2] GotoIf("SIP/VIVA-0000002b", "1?check") in new stack
-- Goto (sub-record-check,s,7)
-- Executing [s@sub-record-check:7] Set("SIP/VIVA-0000002b", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:8] GotoIf("SIP/VIVA-0000002b", "1?next") in new stack
-- Goto (sub-record-check,s,11)
-- Executing [s@sub-record-check:11] ExecIf("SIP/VIVA-0000002b", "0?Return()") in new stack
-- Executing [s@sub-record-check:12] ExecIf("SIP/VIVA-0000002b", "1?Set(__REC_POLICY_MODE=dontcare)") in new stack
-- Executing [s@sub-record-check:13] GotoIf("SIP/VIVA-0000002b", "0?q,1") in new stack
-- Executing [s@sub-record-check:14] Set("SIP/VIVA-0000002b", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:15] Set("SIP/VIVA-0000002b", "NOW=1401891553") in new stack
-- Executing [s@sub-record-check:16] Set("SIP/VIVA-0000002b", "__DAY=04") in new stack
-- Executing [s@sub-record-check:17] Set("SIP/VIVA-0000002b", "__MONTH=06") in new stack
-- Executing [s@sub-record-check:18] Set("SIP/VIVA-0000002b", "__YEAR=2014") in new stack
-- Executing [s@sub-record-check:19] Set("SIP/VIVA-0000002b", "__TIMESTR=20140604-221913") in new stack
-- Executing [s@sub-record-check:20] Set("SIP/VIVA-0000002b", "__FROMEXTEN=2108022705") in new stack
-- Executing [s@sub-record-check:21] Set("SIP/VIVA-0000002b", "__CALLFILENAME=q-7000-2108022705-20140604-221913-1401891548.97") in new stack
-- Executing [s@sub-record-check:22] Goto("SIP/VIVA-0000002b", "q,1") in new stack
-- Goto (sub-record-check,q,1)
-- Executing [q@sub-record-check:1] GosubIf("SIP/VIVA-0000002b", "0?recq,1(q,7000,2108022705)") in new stack
-- Executing [q@sub-record-check:2] Return("SIP/VIVA-0000002b", "") in new stack
-- Executing [7000@ext-queues:30] ExecIf("SIP/VIVA-0000002b", "0?Playback(, )") in new stack
-- Executing [7000@ext-queues:31] QueueLog("SIP/VIVA-0000002b", "7000,1401891548.97,NONE,DID,302118007994") in new stack
-- Executing [7000@ext-queues:32] Set("SIP/VIVA-0000002b", "QAANNOUNCE=") in new stack
-- Executing [7000@ext-queues:33] Set("SIP/VIVA-0000002b", "VQ_AANNOUNCE=") in new stack
-- Executing [7000@ext-queues:34] Set("SIP/VIVA-0000002b", "QMAXWAIT=") in new stack
-- Executing [7000@ext-queues:35] Set("SIP/VIVA-0000002b", "VQ_MAXWAIT=") in new stack
-- Executing [7000@ext-queues:36] Queue("SIP/VIVA-0000002b", "7000,t,,,,,,,,") in new stack
-- Started music on hold, class 'default', on SIP/VIVA-0000002b
-- Executing [6000@from-queue:1] Set("Local/6000@from-queue-0000001b;2", "QAGENT=6000") in new stack
-- Executing [6000@from-queue:2] Goto("Local/6000@from-queue-0000001b;2", "7000,1") in new stack
-- Goto (from-queue,7000,1)
-- Executing [7000@from-queue:1] Goto("Local/6000@from-queue-0000001b;2", "from-internal,6000,1") in new stack
-- Goto (from-internal,6000,1)
-- Executing [6000@from-internal:1] Set("Local/6000@from-queue-0000001b;2", "__RINGTIMER=15") in new stack
-- Executing [6000@from-internal:2] Macro("Local/6000@from-queue-0000001b;2", "exten-vm,novm,6000,0,0,0") in new stack
-- Executing [s@macro-exten-vm:1] Macro("Local/6000@from-queue-0000001b;2", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("Local/6000@from-queue-0000001b;2", "TOUCH_MONITOR=1401891553.99") in new stack
-- Executing [s@macro-user-callerid:2] Set("Local/6000@from-queue-0000001b;2", "AMPUSER=2108022705") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("Local/6000@from-queue-0000001b;2", "1?report") in new stack
-- Goto (macro-user-callerid,s,14)
-- Executing [s@macro-user-callerid:14] GotoIf("Local/6000@from-queue-0000001b;2", "0?continue") in new stack
-- Executing [s@macro-user-callerid:15] Set("Local/6000@from-queue-0000001b;2", "__TTL=63") in new stack
-- Executing [s@macro-user-callerid:16] GotoIf("Local/6000@from-queue-0000001b;2", "1?continue") in new stack
-- Goto (macro-user-callerid,s,27)
-- Executing [s@macro-user-callerid:27] Set("Local/6000@from-queue-0000001b;2", "CALLERID(number)=2108022705") in new stack
-- Executing [s@macro-user-callerid:28] Set("Local/6000@from-queue-0000001b;2", "CALLERID(name)=302108022705") in new stack
-- Executing [s@macro-user-callerid:29] Set("Local/6000@from-queue-0000001b;2", "CDR(cnum)=2108022705") in new stack
-- Executing [s@macro-user-callerid:30] Set("Local/6000@from-queue-0000001b;2", "CDR(cnam)=302108022705") in new stack
-- Executing [s@macro-user-callerid:31] Set("Local/6000@from-queue-0000001b;2", "CHANNEL(language)=en") in new stack
-- Executing [s@macro-exten-vm:2] Set("Local/6000@from-queue-0000001b;2", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("Local/6000@from-queue-0000001b;2", "__EXTTOCALL=6000") in new stack
-- Executing [s@macro-exten-vm:4] Set("Local/6000@from-queue-0000001b;2", "__PICKUPMARK=6000") in new stack
-- Executing [s@macro-exten-vm:5] Set("Local/6000@from-queue-0000001b;2", "RT=") in new stack
-- Executing [s@macro-exten-vm:6] Gosub("Local/6000@from-queue-0000001b;2", "sub-record-check,s,1(exten,6000,)") in new stack
-- Executing [s@sub-record-check:1] Set("Local/6000@from-queue-0000001b;2", "REC_POLICY_MODE_SAVE=dontcare") in new stack
-- Executing [s@sub-record-check:2] GotoIf("Local/6000@from-queue-0000001b;2", "1?check") in new stack
-- Goto (sub-record-check,s,7)
-- Executing [s@sub-record-check:7] Set("Local/6000@from-queue-0000001b;2", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:8] GotoIf("Local/6000@from-queue-0000001b;2", "1?next") in new stack
-- Goto (sub-record-check,s,11)
-- Executing [s@sub-record-check:11] ExecIf("Local/6000@from-queue-0000001b;2", "0?Return()") in new stack
-- Executing [s@sub-record-check:12] ExecIf("Local/6000@from-queue-0000001b;2", "0?Set(__REC_POLICY_MODE=)") in new stack
-- Executing [s@sub-record-check:13] GotoIf("Local/6000@from-queue-0000001b;2", "1?exten,1") in new stack
-- Goto (sub-record-check,exten,1)
-- Executing [exten@sub-record-check:1] GotoIf("Local/6000@from-queue-0000001b;2", "1?callee") in new stack
-- Goto (sub-record-check,exten,8)
-- Executing [exten@sub-record-check:8] GosubIf("Local/6000@from-queue-0000001b;2", "0?record,1(exten,6000,2108022705)") in new stack
-- Executing [exten@sub-record-check:9] Return("Local/6000@from-queue-0000001b;2", "") in new stack
-- Executing [s@macro-exten-vm:7] GotoIf("Local/6000@from-queue-0000001b;2", "12?macrodial") in new stack
-- Goto (macro-exten-vm,s,13)
-- Executing [s@macro-exten-vm:13] GosubIf("Local/6000@from-queue-0000001b;2", "0?clrheader,1()") in new stack
-- Executing [s@macro-exten-vm:14] Macro("Local/6000@from-queue-0000001b;2", "dial-one,,TtrM(auto-blkvm),6000") in new stack
-- Executing [s@macro-dial-one:1] Set("Local/6000@from-queue-0000001b;2", "DEXTEN=6000") in new stack
-- Executing [s@macro-dial-one:2] Set("Local/6000@from-queue-0000001b;2", "DIALSTATUS_CW=") in new stack
-- Executing [s@macro-dial-one:3] GosubIf("Local/6000@from-queue-0000001b;2", "0?screen,1()") in new stack
-- Executing [s@macro-dial-one:4] GosubIf("Local/6000@from-queue-0000001b;2", "0?cf,1()") in new stack
-- Executing [s@macro-dial-one:5] GotoIf("Local/6000@from-queue-0000001b;2", "1?skip1") in new stack
-- Goto (macro-dial-one,s,8)
-- Executing [s@macro-dial-one:8] GotoIf("Local/6000@from-queue-0000001b;2", "0?nodial") in new stack
-- Executing [s@macro-dial-one:9] GotoIf("Local/6000@from-queue-0000001b;2", "0?continue") in new stack
-- Executing [s@macro-dial-one:10] Set("Local/6000@from-queue-0000001b;2", "EXTHASCW=ENABLED") in new stack
-- Executing [s@macro-dial-one:11] GotoIf("Local/6000@from-queue-0000001b;2", "0?next1:cwinusebusy") in new stack
-- Goto (macro-dial-one,s,23)
-- Executing [s@macro-dial-one:23] GotoIf("Local/6000@from-queue-0000001b;2", "1?next3:continue") in new stack
-- Goto (macro-dial-one,s,24)
-- Executing [s@macro-dial-one:24] ExecIf("Local/6000@from-queue-0000001b;2", "0?Set(DIALSTATUS_CW=BUSY)") in new stack
-- Executing [s@macro-dial-one:25] GotoIf("Local/6000@from-queue-0000001b;2", "0?nodial") in new stack
-- Executing [s@macro-dial-one:26] GosubIf("Local/6000@from-queue-0000001b;2", "1?dstring,1():dlocal,1()") in new stack
-- Executing [dstring@macro-dial-one:1] Set("Local/6000@from-queue-0000001b;2", "DSTRING=") in new stack
-- Executing [dstring@macro-dial-one:2] Set("Local/6000@from-queue-0000001b;2", "DEVICES=6000") in new stack
-- Executing [dstring@macro-dial-one:3] ExecIf("Local/6000@from-queue-0000001b;2", "0?Return()") in new stack
-- Executing [dstring@macro-dial-one:4] ExecIf("Local/6000@from-queue-0000001b;2", "0?Set(DEVICES=000)") in new stack
-- Executing [dstring@macro-dial-one:5] Set("Local/6000@from-queue-0000001b;2", "LOOPCNT=1") in new stack
-- Executing [dstring@macro-dial-one:6] Set("Local/6000@from-queue-0000001b;2", "ITER=1") in new stack
-- Executing [dstring@macro-dial-one:7] Set("Local/6000@from-queue-0000001b;2", "THISDIAL=SIP/6000") in new stack
-- Executing [dstring@macro-dial-one:8] GosubIf("Local/6000@from-queue-0000001b;2", "1?zap2dahdi,1()") in new stack
-- Executing [zap2dahdi@macro-dial-one:1] ExecIf("Local/6000@from-queue-0000001b;2", "0?Return()") in new stack
-- Executing [zap2dahdi@macro-dial-one:2] Set("Local/6000@from-queue-0000001b;2", "NEWDIAL=") in new stack
-- Executing [zap2dahdi@macro-dial-one:3] Set("Local/6000@from-queue-0000001b;2", "LOOPCNT2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:4] Set("Local/6000@from-queue-0000001b;2", "ITER2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:5] Set("Local/6000@from-queue-0000001b;2", "THISPART2=SIP/6000") in new stack
-- Executing [zap2dahdi@macro-dial-one:6] ExecIf("Local/6000@from-queue-0000001b;2", "0?Set(THISPART2=DAHDI/6000)") in new stack
-- Executing [zap2dahdi@macro-dial-one:7] Set("Local/6000@from-queue-0000001b;2", "NEWDIAL=SIP/6000&") in new stack
-- Executing [zap2dahdi@macro-dial-one:8] Set("Local/6000@from-queue-0000001b;2", "ITER2=2") in new stack
-- Executing [zap2dahdi@macro-dial-one:9] GotoIf("Local/6000@from-queue-0000001b;2", "0?begin2") in new stack
-- Executing [zap2dahdi@macro-dial-one:10] Set("Local/6000@from-queue-0000001b;2", "THISDIAL=SIP/6000") in new stack
-- Executing [zap2dahdi@macro-dial-one:11] Return("Local/6000@from-queue-0000001b;2", "") in new stack
-- Executing [dstring@macro-dial-one:9] Set("Local/6000@from-queue-0000001b;2", "DSTRING=SIP/6000&") in new stack
-- Executing [dstring@macro-dial-one:10] Set("Local/6000@from-queue-0000001b;2", "ITER=2") in new stack
-- Executing [dstring@macro-dial-one:11] GotoIf("Local/6000@from-queue-0000001b;2", "0?begin") in new stack
-- Executing [dstring@macro-dial-one:12] Set("Local/6000@from-queue-0000001b;2", "DSTRING=SIP/6000") in new stack
-- Executing [dstring@macro-dial-one:13] Return("Local/6000@from-queue-0000001b;2", "") in new stack
-- Executing [s@macro-dial-one:27] GotoIf("Local/6000@from-queue-0000001b;2", "0?nodial") in new stack
-- Executing [s@macro-dial-one:28] GotoIf("Local/6000@from-queue-0000001b;2", "0?skiptrace") in new stack
-- Executing [s@macro-dial-one:29] GosubIf("Local/6000@from-queue-0000001b;2", "1?ctset,1():ctclear,1()") in new stack
-- Executing [ctset@macro-dial-one:1] Set("Local/6000@from-queue-0000001b;2", "DB(CALLTRACE/6000)=2108022705") in new stack
-- Executing [ctset@macro-dial-one:2] Return("Local/6000@from-queue-0000001b;2", "") in new stack
-- Executing [s@macro-dial-one:30] Set("Local/6000@from-queue-0000001b;2", "D_OPTIONS=TtrM(auto-blkvm)") in new stack
-- Executing [s@macro-dial-one:31] ExecIf("Local/6000@from-queue-0000001b;2", "0?SIPAddHeader(Alert-Info: )") in new stack
-- Executing [s@macro-dial-one:32] ExecIf("Local/6000@from-queue-0000001b;2", "0?SIPAddHeader()") in new stack
-- Executing [s@macro-dial-one:33] ExecIf("Local/6000@from-queue-0000001b;2", "1?Set(CHANNEL(musicclass)=default)") in new stack
-- Executing [s@macro-dial-one:34] GosubIf("Local/6000@from-queue-0000001b;2", "0?qwait,1()") in new stack
-- Executing [s@macro-dial-one:35] Set("Local/6000@from-queue-0000001b;2", "__CWIGNORE=") in new stack
-- Executing [s@macro-dial-one:36] Set("Local/6000@from-queue-0000001b;2", "__KEEPCID=TRUE") in new stack
-- Executing [s@macro-dial-one:37] GotoIf("Local/6000@from-queue-0000001b;2", "0?usegoto,1") in new stack
-- Executing [s@macro-dial-one:38] GotoIf("Local/6000@from-queue-0000001b;2", "1?godial") in new stack
-- Goto (macro-dial-one,s,42)
-- Executing [s@macro-dial-one:42] Dial("Local/6000@from-queue-0000001b;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/6000@from-queue-0000001b;1 is ringing
– Local/6000@from-queue-0000001b;1 connected line has changed. Saving it until answer for SIP/VIVA-0000002b
– Local/6000@from-queue-0000001b;1 connected line has changed. Saving it until answer for SIP/VIVA-0000002b
– SIP/6000-0000002c is ringing
– Local/6000@from-queue-0000001b;1 is ringing
– Stopped music on hold on SIP/VIVA-0000002b

Is this a hand install?

yes mate did i miss something ?

is there a package missing you think ?

one more question do you have any distro new or old based on debian or ubuntu for download that supports built in faxing ? my company insists on debian or ubuntu

cheers

in extensions i just noticed this

ERROR: No FAX modules detected!
Fax-related dialplan will NOT be generated.
This module requires Fax for Asterisk (res_fax_digium.so) or spandsp based app_fax (res_fax_spandsp.so) to function.

i guess i cant install fax digium on debian right ? tried with spandsp and failed also

used those instructions http://www.asteriskguru.com/tutorials/spandsp.html

i cant find anywhere those files app_rxfax.c, app_txfax.c and apps_makefile.patch

and when i try make install the spandsp i get

root@swsterisk:/tmp/spand# make install
Making install in src
make[1]: Entering directory /tmp/spand/src' make[2]: Entering directory/tmp/spand/src’
test -z “/usr/lib” || mkdir -p – “/usr/lib”
/bin/bash …/libtool --mode=install /usr/bin/install -c ‘libspandsp.la’ ‘/usr/lib/libspandsp.la’
/usr/bin/install -c .libs/libspandsp.so.1.0.0 /usr/lib/libspandsp.so.1.0.0
(cd /usr/lib && { ln -s -f libspandsp.so.1.0.0 libspandsp.so.1 || { rm -f libspandsp.so.1 && ln -s libspandsp.so.1.0.0 libspandsp.so.1; }; })
(cd /usr/lib && { ln -s -f libspandsp.so.1.0.0 libspandsp.so || { rm -f libspandsp.so && ln -s libspandsp.so.1.0.0 libspandsp.so; }; })
/usr/bin/install -c .libs/libspandsp.lai /usr/lib/libspandsp.la
/usr/bin/install -c .libs/libspandsp.a /usr/lib/libspandsp.a
chmod 644 /usr/lib/libspandsp.a
ranlib /usr/lib/libspandsp.a
PATH="$PATH:/sbin" ldconfig -n /usr/lib

Libraries have been installed in:
/usr/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR’
flag during linking and do at least one of the following:

  • add LIBDIR to the `LD_LIBRARY_PATH’ environment variable
    during execution
  • add LIBDIR to the `LD_RUN_PATH’ environment variable
    during linking
  • use the `-Wl,–rpath -Wl,LIBDIR’ linker flag
  • have your system administrator add LIBDIR to `/etc/ld.so.conf’

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.

test -z “/usr/include” || mkdir -p – “/usr/include”
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/adsi.h’ ‘/usr/include/spandsp/adsi.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/async.h’ ‘/usr/include/spandsp/async.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/arctan2.h’ ‘/usr/include/spandsp/arctan2.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/at_interpreter.h’ ‘/usr/include/spandsp/at_interpreter.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/awgn.h’ ‘/usr/include/spandsp/awgn.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/bell_r2_mf.h’ ‘/usr/include/spandsp/bell_r2_mf.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/bert.h’ ‘/usr/include/spandsp/bert.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/biquad.h’ ‘/usr/include/spandsp/biquad.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/bit_operations.h’ ‘/usr/include/spandsp/bit_operations.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/bitstream.h’ ‘/usr/include/spandsp/bitstream.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/crc.h’ ‘/usr/include/spandsp/crc.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/complex.h’ ‘/usr/include/spandsp/complex.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/complex_filters.h’ ‘/usr/include/spandsp/complex_filters.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/complex_vector_float.h’ ‘/usr/include/spandsp/complex_vector_float.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/dc_restore.h’ ‘/usr/include/spandsp/dc_restore.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/dds.h’ ‘/usr/include/spandsp/dds.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/dtmf.h’ ‘/usr/include/spandsp/dtmf.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/echo.h’ ‘/usr/include/spandsp/echo.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/fax.h’ ‘/usr/include/spandsp/fax.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/fir.h’ ‘/usr/include/spandsp/fir.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/fsk.h’ ‘/usr/include/spandsp/fsk.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/g168models.h’ ‘/usr/include/spandsp/g168models.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/g711.h’ ‘/usr/include/spandsp/g711.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/g722.h’ ‘/usr/include/spandsp/g722.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/g726.h’ ‘/usr/include/spandsp/g726.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/gsm0610.h’ ‘/usr/include/spandsp/gsm0610.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/hdlc.h’ ‘/usr/include/spandsp/hdlc.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/ima_adpcm.h’ ‘/usr/include/spandsp/ima_adpcm.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/logging.h’ ‘/usr/include/spandsp/logging.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/lpc10.h’ ‘/usr/include/spandsp/lpc10.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/modem_echo.h’ ‘/usr/include/spandsp/modem_echo.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/modem_connect_tones.h’ ‘/usr/include/spandsp/modem_connect_tones.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/noise.h’ ‘/usr/include/spandsp/noise.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/oki_adpcm.h’ ‘/usr/include/spandsp/oki_adpcm.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/playout.h’ ‘/usr/include/spandsp/playout.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/plc.h’ ‘/usr/include/spandsp/plc.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/power_meter.h’ ‘/usr/include/spandsp/power_meter.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/queue.h’ ‘/usr/include/spandsp/queue.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/schedule.h’ ‘/usr/include/spandsp/schedule.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/sig_tone.h’ ‘/usr/include/spandsp/sig_tone.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/silence_gen.h’ ‘/usr/include/spandsp/silence_gen.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/super_tone_rx.h’ ‘/usr/include/spandsp/super_tone_rx.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/super_tone_tx.h’ ‘/usr/include/spandsp/super_tone_tx.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/t4.h’ ‘/usr/include/spandsp/t4.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/t30.h’ ‘/usr/include/spandsp/t30.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/t30_api.h’ ‘/usr/include/spandsp/t30_api.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/t30_fcf.h’ ‘/usr/include/spandsp/t30_fcf.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/t30_logging.h’ ‘/usr/include/spandsp/t30_logging.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/t31.h’ ‘/usr/include/spandsp/t31.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/t35.h’ ‘/usr/include/spandsp/t35.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/t38_core.h’ ‘/usr/include/spandsp/t38_core.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/t38_gateway.h’ ‘/usr/include/spandsp/t38_gateway.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/t38_terminal.h’ ‘/usr/include/spandsp/t38_terminal.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/telephony.h’ ‘/usr/include/spandsp/telephony.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/time_scale.h’ ‘/usr/include/spandsp/time_scale.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/timing.h’ ‘/usr/include/spandsp/timing.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/tone_detect.h’ ‘/usr/include/spandsp/tone_detect.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/tone_generate.h’ ‘/usr/include/spandsp/tone_generate.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/v17rx.h’ ‘/usr/include/spandsp/v17rx.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/v17tx.h’ ‘/usr/include/spandsp/v17tx.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/v22bis.h’ ‘/usr/include/spandsp/v22bis.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/v27ter_rx.h’ ‘/usr/include/spandsp/v27ter_rx.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/v27ter_tx.h’ ‘/usr/include/spandsp/v27ter_tx.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/v29rx.h’ ‘/usr/include/spandsp/v29rx.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/v29tx.h’ ‘/usr/include/spandsp/v29tx.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/v42.h’ ‘/usr/include/spandsp/v42.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/v42bis.h’ ‘/usr/include/spandsp/v42bis.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/v8.h’ ‘/usr/include/spandsp/v8.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/vector_float.h’ ‘/usr/include/spandsp/vector_float.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/vector_int.h’ ‘/usr/include/spandsp/vector_int.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
/tmp/spand/config/install-sh -c -m 644 ‘spandsp/version.h’ ‘/usr/include/spandsp/version.h’
/bin/bash: line 5: /tmp/spand/config/install-sh: Permission denied
make[2]: *** [install-nobase_includeHEADERS] Error 126
make[2]: Leaving directory /tmp/spand/src' make[1]: *** [install-am] Error 2 make[1]: Leaving directory/tmp/spand/src’
make: *** [install-recursive] Error 1

is there an easier way ??? libtiff install is ok

Should be in the debian repos:-

apt-cache search spandsp
libspandsp-dev - Telephony signal processing library - development headers
libspandsp-doc - Documentation for the spandsp signal processing library
libspandsp2 - Telephony signal processing library

app_fax et-al are in the asterisk src tree, choose it when you

make menuselect

“Fax for asterisk” available for most 32/64 bit linux’s just choose the right processor when you down load the code, you will need licenses of course.