Ring off hook in strange state

I have had asterisk 1.2.13 running for quite a while on our sangoma a101 isdn card. i also have a a200 card.

I had one of the a200 ports connected to a uk BT phone line which asterisk just answers on ring and plays a message back and then hangs up.

I have had to move the asterisk server and rerun the phone line from the BT patch pannel to a new master socket. I have used 2 core phone cable

My problem is now Im getting the following errors and asterisk is not picking up the line. When I call the line it just rings and is not answered. Asterisk though shows the sound file playing but you only get ringin I have switched the 2 wires on the master socket incase they were the wrong way around without any success.

I am getting the ring off hook in strange state error which I think is why the line is not being answered.

Jul 3 11:37:09 NOTICE[16689]: chan_zap.c:6073 ss_thread: Got event 18 (Ring Begin)…
Jul 3 11:37:10 NOTICE[16689]: chan_zap.c:6073 ss_thread: Got event 17 (Polarity Reversal)…
Jul 3 11:37:10 NOTICE[16689]: chan_zap.c:6073 ss_thread: Got event 2 (Ring/Answered)…
– Executing Answer(“Zap/35-1”, “”) in new stack
– Executing Wait(“Zap/35-1”, “2”) in new stack

Jul 3 11:37:11 WARNING[16689]: chan_zap.c:3926 zt_handle_event: Ring/Off-hook in strange state 6 on channel 35
– Executing BackGround(“Zap/35-1”, “82721redirect”) in new stack
– Playing ‘82721redirect’ (language ‘en’)

extension config
[line1]
exten => s,1,Answer
exten => s,n,wait(2)
exten => s,n,background(82721redirect)
exten => s,n,Hangup()

zaptel.conf

loadzone = uk
defaultzone = uk
fxsks = 35

zapata

usecallerid=yes
immediate=yes ;take line on first ring
callerid=asreceived ; propagate cid as received from bt
cidsignalling=v23
cidstart=polarity
rxgain=5
txgain=8
signalling=fxs_ks
;sendcalleridafter=2
group=4
context=line1
channel => 35-35

Any Ideas as Im now a bit stuck.

Nick

Just found the problem and sorted it.

Fault was with the new BT extension leads I had.

The new ones were wired like.
Middle two wires on the bt plug to middle 2 on the rj11

The correct lead was wired middle two on BT plug to outside 2 on the RJ11

Nick

same problem i got,
i have a T1 connected with channel bank.
wht is problem with my channel bank.
is any body here to guide me>?

regards,

[b]Jehanzaib Younis
IPT Engineer

+92.111.874.874 Ext: 2558
+92.321.5139853
jehanzaib.younis@trgcustomersolutions.com
trgcustomersolutions.com[/b]

I am having this issue, only it worked fine before and I have changed nothing. The asterisk box says offhook and starts processing the call as normal. But the caller just gets ringing.

This is on a 4 fxs wildcard.

Any update on this?

IIRC, in the US the middle 2 on an RJ11 is for line #1 and outer 2 on an RJ11 is for line #2. Your previous middle 2 on BT to middle 2 on RJ11 should be the correct one.