(using zaptel fax detection)
I have found the zaptel driver is NOT outputting a ringing tone while detecting a fax. I am using trixbox 2.0, ‘Pause after answer’ is set to 6, ‘fax detection type’ to ‘zaptel’. Faxes are detected without problems, & being passed to the default fax extension (where there is a fax machine) but (voice) callers hear silence only for the 6 seconds of pause before being transferred to the ‘core’ voice extension.
An example I found allows asterisk to play fake tones via eg.
exten => s,3,Playtones(ring) …how can I get this into zaptel?
Zapata.conf and extensions.conf are pasted below
Note I am NOT using NVFAX and there are only the 5 lines indicated in [from-pstn]
Any help appreciated
In Compusion
MC
**********************************Â **************************
MY zapata.conf: zapata.conf: zapata.conf:
[trunkgroups]
[channels]
language=en
context=from-zaptel
adsi=yes
callerid=asreceived
sendcalleridafter=2
useincomingcalleridonzaptransfer=y es
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
rxgain=3.0
txgain=3.0
busydetect=yes
busycount=6
relaxdtmf=yes
group=0
callgroup=1
pickupgroup=1
immediate=yes
faxdetect=both
;Include genzaptelconf configs
#include zapata-auto.conf
; group=1
;Include AMP configs
#include zapata_additional.conf
**********************************Â **************************
MY extensions.conf: extensions.conf: extensions.conf: extensions.conf:
[from-trunk]
include => from-pstn
[from-pstn]
include => from-pstn-custom
include => ext-did-direct
include => ext-did
include => from-did-direct
exten => fax,1,Goto(ext-fax,in_fax,1)
[from-did-direct]
include => ext-findmefollow
include => ext-local
[from-zaptel]
exten => _X.,1,Set(DID=${EXTEN})
exten => _X.,n,Goto(s,1)
exten => s,1,NoOp(Entering from-zaptel with DID == ${DID})
; Some trunks require a RINGING be sent before an Answer.
exten => s,n,Ringing()
; If ($did == “”) { $did = “s”; }
exten => s,n,Set(DID=${IF($${DID}"= “?s:${DID})})
exten => s,n,NoOp(DID is now ${DID})
exten => s,n,GotoIf($${CHANNEL:0:3}”="Zap?zapok:notzap)
exten => s,n(notzap),Goto(from-pstn,${DID}, 1)
; If there’s no ext-did,s,1, that means there’s not a no did/no cid route. Hangup.
exten => s,n,Macro(hangup)
exten => s,n(zapok),NoOp(Is a Zaptel Channel)
exten => s,n,Set(CHAN=${CHANNEL:4})
exten => s,n,Set(CHAN=${CUT(CHAN,-,1)})
exten => s,n,Macro(from-zaptel-${CHAN},${DIÂ D},1)
; If nothing there, then treat it as a DID
exten => s,n,NoOp(Returned from Macro from-zaptel-${CHAN})
exten => s,n,Goto(from-pstn,${DID},1)
exten => fax,1,Goto(ext-fax,in_fax,1)
[ext-fax]
exten => s,1,Answer
exten => s,2,Goto(in_fax,1)
exten => in_fax,1,StopPlayTones
exten => in_fax,2,GotoIf($${FAX_RX}" = “system?3:analog_fax,1)
exten => in_fax,3,Macro(faxreceive)
exten => in_fax,4,Hangup
exten => analog_fax,1,GotoIf($${FAX_RX}” = "disabled?4:2) ;if fax is disabled, just hang up
exten => analog_fax,2,Set(DIAL=${DB(DEVICE/Â ${FAX_RX}/dial)});
exten => analog_fax,3,Dial(${DIAL},20,d)
exten => analog_fax,4,Hangup
;exten => out_fax,1,wait(7)
exten => out_fax,1,txfax(${TXFAX_NAME}|call er)
exten => out_fax,2,Hangup
exten => h,1,system(/var/lib/asterisk/bin/f ax-process.pl --to ${EMAILADDR} --from ${FAX_RX_FROM} --subject “Fax from ${URIENCODE(${CALLERID(number)})}  ${URIENCODE(${CALLERID(name)})}” --attachment fax_${URIENCODE(${CALLERID(number) })}.pdf --type application/pdf --file ${FAXFILE});
exten => h,2,Hangup()