TDM400P not hanging up UK BT Analogue line 100%

Hi I have seen lots of hits about this on this forum, maillist, google etc but having worked through these I still haven’t got think working quite right.

I have a TDM400P with 2 FXO’s package TDM02B.

Will an incoming call if the hangup is initiated by the caller then both Asterisk and Caller hangup correctly.

If Asterisk hangs up, by placing the hand set of a ip phone back on hook it only hangs up the caller about 30% of the time. With a similar config with the incoming call coming over VoIP instead of PSTN this works fine.

I now just play the ‘hello world’ message and hangup, to iliminate the sip phone from the equation and it does the same.

I have been following the config in the Oreilly book for ZAP, I already had a working SIP and IAX config.

I have been playing with all the below in various config options in zapata.conf but to no effect.

[channels]
rxwink=300
usecallingpres=yes
callwaitingcallerid=no
callreturn=yes

callerid=asreceived
group=1
usecallerid=yes
ukcallerid=yes
hidecallerid=no
callwaiting=no
threewaycalling=yes
transfer=yes
echocancel=yes
rxgain=3.0
txgain=3.0
echotraining=800

;switchtype=national

;hanguponpolarityswitch=yes
;busydetect=no
busydetect=yes
callprogress=yes
progzone=uk

;cidsignalling=v23 ; Added for UK CLI detection
;cidstart=polarity ; Added for UK CLI detection

immediate=no
;immediate=yes

language=en
context=pstn-incoming
signalling=fxs_ks
channel => 3
channel => 4

I have zones set in zaptel.conf and indicators set to uk as well

Any ideas anyone?

Thanks.

Ah ha. Just noticed that if I plug a real BT phone in it does exactly the same thing!

is there anything BT do right.