Hello,
I’m trying to get CID to work reliably in the UK. I’m using the TDM400P connected to a BT residential line. I know this problem has been mentioned a couple of times in various posts and mailing lists but I’ve not found a solution. Hence bringing it up again, hope you don’t mind.
If the CID works properly, this is the CLI output:
[quote] == Starting post polarity CID detection on channel 3
– Starting simple switch on ‘Zap/3-1’
[Jan 25 12:12:02] NOTICE[2912]: chan_zap.c:6214 ss_thread: CallerID number: 0**********, name: (null), flags=4
– Executing [s@zap_incoming:1] Answer(“Zap/3-1”, “”) in new stack
– dialplan continues…[/quote]
If the CID fails, I see this:
[quote] == Starting post polarity CID detection on channel 3
– Starting simple switch on ‘Zap/3-1’
[Jan 25 12:09:52] NOTICE[2908]: chan_zap.c:6171 ss_thread: Got event 2 (Ring/Answered)…
[Jan 25 12:09:55] WARNING[2908]: chan_zap.c:6234 ss_thread: CID timed out waiting for ring. Exiting simple switch
– Hungup ‘Zap/3-1’
– Starting simple switch on ‘Zap/3-1’
– Executing [s@zap_incoming:1] Answer(“Zap/3-1”, “”) in new stack
– dialplan continues…[/quote]
Searching the Internet for the phrase “CID timed out waiting for ring” pointed me to this recent patch to Zaptel. This seems to be my exact issue so I checked out the latest Zaptel 1.4 branch from the SVN. Activating the patch by setting fwringdetect=1, I now get:
CID success is the same as before:
[quote] == Starting post polarity CID detection on channel 3
– Starting simple switch on ‘Zap/3-1’
[Jan 25 12:31:20] NOTICE[2411]: chan_zap.c:6214 ss_thread: CallerID number: 0**********, name: (null), flags=4
– Executing [s@zap_incoming:1] Answer(“Zap/3-1”, “”) in new stack
– dialplan continues…[/quote]
The CID still fails, however, despite using the fwringdetect patch. This is the output:
[quote] == Starting post polarity CID detection on channel 3
– Starting simple switch on ‘Zap/3-1’
[Jan 25 12:14:55] NOTICE[2398]: chan_zap.c:6171 ss_thread: Got event 2 (Ring/Answered)…
– Executing [s@zap_incoming:1] Answer(“Zap/3-1”, “”) in new stack
– dialplan continues…[/quote]
Clearly I don’t get the “CID timed out…” error any more, but at the same time I still don’t get CID.
Here’s my Zapata.conf:
[quote][channels]
usecallerid = yes
cidsignalling = v23
cidstart = polarity
sendcalleridafter=2
hidecallerid=no
callwaiting=no
threewaycalling=yes
transfer=yes
echocancel=yes
echotraining=yes
immediate=no
; Channels 1 and 2 are FXS ports (only 1 connected as of 2008-01-12)
;
context=zap_outgoing
signalling=fxo_ks
callerid=“Cromnet-3” <503>
channel => 1
; Channels 3 and 4 are FXO ports (only 1 conntected as of 2008-01-12)
;
context=zap_incoming
signalling=fxs_ks
callerid=asreceived
channel => 3[/quote]
I’m using Asterisk 1.4.15 on Debian 4.0 “Etch”. My Zaptel is the latest 1.4 branch, version “SVN-branch-1.4-r3733”. Note I was also seeing intermittent CID using Zaptel release 1.4.7.
Has anyone had a similar experience, or at the very least has CID reliably working in the UK?
Thanks in advance. Giles.