Call progress using Digium TDM400P

I have an application where I need to dial a number then play a wav file to a user when they answer. It works fine when I dial out over a PRI (E1), but when I try the same thing using an analogue line, as soon as the call starts ringing Asterisk thinks the call has been answered and starts playing the file.

I’ve fiddled with some of the setting in zapata.conf and zaptel.conf but have made no progress.

Has anyone experienced this before?

I’m in the UK, using a BT pstn line.

Here’s my zaptel.conf

loadzone=uk defaultzone=uk fxsks=4

and my zapata.conf files.

[code][channels]
language=en

; Default context
context=inbound-from-pstn
switchtype=national
signalling=fxs_ks ; Correct Setting for BT pstn line
rxwink=300
usecallerid=yes
hidecallerid=no
callwaiting=no
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=no
transfer=no
cancallforward=no
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
echotraining=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=9
pickupgroup=9
immediate=yes
musiconhold=default
busydetect=no
callprogress=no
channel=4
[/code]

Thanks in advance.

Rosco.

It doesn’t work properly because it’s analog. Analog technology itself doesn’t have call progress. You can enable “callprogress” in zapata.conf which tries to immitate real callprogress but it really doesn’t work well. If you want to do this, you will need a PRI.