Zaptel driver NOT outputting ringing tone while detectng fax

(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()
:arrow_right: :arrow_right: :arrow_right:

Hi Problem solved
It is a bug.
The clue came by switching to nvfax detect, and hearing ringing tones during the detection process (as confirmed by monitoring the incoming call using the: asterisk -rvvvvvv command in the CLI interface). In my case, I had zaptel channel 4 as the incoming line. The error was in the following area within extensions_additional.conf:

[macro-from-zaptel-4]
include => macro-from-zaptel-4-custom
exten => fax,1,Goto(ext-fax,in_fax,1)
exten => s,1,Noop(Entering macro-from-zaptel-4 with DID = ${DID})
exten => s,n,Gosub(app-blacklist-check,s,1)
exten => s,n,Set(FROM_DID=s)
exten => s,n,Answer
exten => s,n,Wait(5)
exten => s,n,Goto(ext-local,2003,1)

add the following line after the s,n,Answer line:
exten => s,n,Playtones(ring)

so it becomes:
[macro-from-zaptel-4]
include => macro-from-zaptel-4-custom
exten => fax,1,Goto(ext-fax,in_fax,1)
exten => s,1,Noop(Entering macro-from-zaptel-4 with DID = ${DID})
exten => s,n,Gosub(app-blacklist-check,s,1)
exten => s,n,Set(FROM_DID=s)
exten => s,n,Answer
exten => s,n,Playtones(ring)
exten => s,n,Wait(5)
exten => s,n,Goto(ext-local,2003,1)

Using nvfaxdetect produced the following, so I plan to use this in future instead of zaptel fax detect:
[macro-from-zaptel-4]
include => macro-from-zaptel-4-custom
exten => fax,1,Goto(ext-fax,in_fax,1)
exten => s,1,Noop(Entering macro-from-zaptel-4 with DID = ${DID})
exten => s,n,Gosub(app-blacklist-check,s,1)
exten => s,n,Set(FROM_DID=s)
exten => s,n,Answer
exten => s,n,Playtones(ring)
exten => s,n,NVFaxDetect(6)
exten => s,n,Goto(ext-local,2003,1)