Can't get caller ID or hangup detection to work on TDM800P

Hi all.

I installed an asterisk 1.4-22 server with Wildcat TDM800P 4 fxo and 2 fxs ports. I’ve verified with our phone company (AT&T) that our CallerID feature is enabled. I am in Southern California, so I guess I’m assuming that the sample chan_dahdi.conf, and zapata-channels.conf generated by genzaptelconf should probably work out of the box. Apparently, that may be a bad ASSumption 0: I

I have been able to get neither CallerID or Hangup detection to work at all. I’ve tried several things, but currently my zaptel.conf looks like this:

[general]
usecallerid=yes
hidecallerid=no
;cidsignalling=v23
immediate=no
language=en
;cidstart=polarity
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
useincommingcalleridonzaptransfer=yes
adsi=yes
sendcalleridafter=2

[channels]
#include “zapata-channels.conf”

All the fxs entries in zaptel-channels.conf looks like this:

;;; line="8 WCTDM/0/7 FXSKS (In use)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 8
context=default

In my extensions.conf, the pertinent portion is this:

[from-pstn]
;
; We start with what to do when a call first comes in.
;
exten => s,1,Wait(5) ; Wait a second, to try and pick up CID
exten => s,n,Answer ; Answer the line
exten => s,n,NoOp( Inbound call ext:${EXTEN} CID:${CALLIERID} )
exten => s,n,Set(TIMEOUT(digit)=10) ; Set Digit Timeout to 5 seconds
exten => s,n,Set(TIMEOUT(response)=30) ; Set Response Timeout to 10 seconds
exten => s,n(restart),BackGround(wwerx-greeting) ; Play greeting
exten => s,n,WaitExten ; Wait for an extension to be dialed.
exten => s,n,NoOp( Inbound call (2)ext:${EXTEN} CID:${CALLIERID} )

Any help would be greatly appreciated.

Typically, I see this on the CLI for an incoming call:

-- Starting simple switch on 'Zap/8-1'

[Nov 21 10:31:18] NOTICE[25174]: chan_dahdi.c:6522 ss_thread: Got event 18 (Ring Begin)…
[Nov 21 10:31:20] NOTICE[25174]: chan_dahdi.c:6522 ss_thread: Got event 2 (Ring/Answered)…
– Executing [s@from-pstn:1] Wait(“Zap/8-1”, “5”) in new stack
– Executing [s@from-pstn:2] Answer(“Zap/8-1”, “”) in new stack
– Executing [s@from-pstn:3] NoOp(“Zap/8-1”, " Inbound call ext:s CID: ") in new stack
– Executing [s@from-pstn:4] Set(“Zap/8-1”, “TIMEOUT(digit)=10”) in new stack
– Digit timeout set to 10
– Executing [s@from-pstn:5] Set(“Zap/8-1”, “TIMEOUT(response)=30”) in new stack
– Response timeout set to 30
– Executing [s@from-pstn:6] BackGround(“Zap/8-1”, “wwerx-greeting”) in new stack
– <Zap/8-1> Playing ‘wwerx-greeting’ (language ‘en’)
– Executing [s@from-pstn:7] WaitExten(“Zap/8-1”, “”) in new stack
– Timeout on Zap/8-1, continuing…
– Executing [s@from-pstn:8] NoOp(“Zap/8-1”, " Inbound call (2)ext:s CID: ") in new stack
== Auto fallthrough, channel ‘Zap/8-1’ status is ‘UNKNOWN’
– Executing [h@from-pstn:1] Hangup(“Zap/8-1”, “”) in new stack
== Spawn extension (from-pstn, h, 1) exited non-zero on ‘Zap/8-1’
– Hungup 'Zap/8-1’
asterisk*CLI>

I made this call from my cell phone (CID enabled) and hung up during the menu.
Notice two things:

  1. that it doesn’t detect that I’ve hung up within a few seconds of being picked up. In fact, it doesn’t execute the hangup bit until the timeout expires.

  2. The NoOp which prints the ${CALLERID} prints a blank.

A further clue may be that sometimes, I see this…

-- Starting simple switch on 'Zap/8-1'

[Nov 21 10:28:32] NOTICE[25172]: chan_dahdi.c:6522 ss_thread: Got event 18 (Ring Begin)…
[Nov 21 10:28:33] ERROR[25172]: callerid.c:564 callerid_feed: No start bit found in fsk data.
[Nov 21 10:28:33] WARNING[25172]: chan_dahdi.c:6562 ss_thread: CallerID feed failed: Success
[Nov 21 10:28:33] WARNING[25172]: chan_dahdi.c:6662 ss_thread: CallerID returned with error on channel ‘Zap/8-1’
– Executing [s@from-pstn:1] Wait(“Zap/8-1”, “5”) in new stack
– Executing [s@from-pstn:2] Answer(“Zap/8-1”, “”) in new stack
– Executing [s@from-pstn:3] NoOp(“Zap/8-1”, " Inbound call ext:s CID: ") in new stack
– Executing [s@from-pstn:4] Set(“Zap/8-1”, “TIMEOUT(digit)=10”) in new stack
– Digit timeout set to 10

Further thanks in advance.

I use this in the UK (not sure if it helps you - but it’s got to be worth a go):

zapata.conf

[channels]

cidsignalling = v23
usecallerid = yes
cidstart = polarity
callerid = asreceived
sendcalleridafter = 2

Tried those options, and no success. For a sanity check, ${CALLERID} should contain the caller ID, right? Nothing else special I need to do?

This
exten => s,n,NoOp( Inbound call ext:${EXTEN} CID:${CALLIERID} )
should be
exten => s,n,NoOp( Inbound call ext:${EXTEN} CID:${CALLERID]} )

Also ${CALLERID} is deprecated in * 1.4, try ${CALLERID(all)} or ${CALLERID(num)}.

Cheers.

Marco Bruni

…${CALLERID(name)} and ${CALLERID(ANI)} are also available.

I guess I better either get some glasses or increase the font size on my editor! Dumb typo ${CALLIERID} instead of CALLERID.

Also changed it to ${CALLERID(num)}

Thanks for the responses. All is working now.

Hi Team

Has anyone know how to get ride of [color=red]No start bit found in fsk data[/color] error

Please help… it happens to me too

Sam

It would be better if you started your own thread - instead of hijacking some else’s.

When you do start a new one - maybe you could explain where abouts you are getting this error etc.

cheers