<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2722" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=721003909-24082005><FONT face=Arial>Dear
All,</FONT></SPAN></DIV>
<DIV><SPAN class=721003909-24082005><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=721003909-24082005><FONT face=Arial>I've just joined this list
in the hope that one of you could help me. I'm secretary of a charity so we
don't have much money to spend on support or equipment - anyway Asterisk appears
to meet our requirements more than adequately.</FONT></SPAN></DIV>
<DIV><SPAN class=721003909-24082005><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=721003909-24082005><FONT face=Arial>I'm trying get both Caller
ID and distinctive ring detection running on a BT line without any luck at all.
For the time being, I've abandoned trying to detect distinctive ring and am
concentrating on getting CID working, 'cos right now, it
ain't.</FONT></SPAN></DIV>
<DIV><SPAN class=721003909-24082005><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=721003909-24082005><FONT face=Arial>I'm using the latest CVS
head Zaptel and Asterisk with a Digium TDM400. I've got zaptel configured
correctly - at least it doesn't throw out any error
messages.</FONT></SPAN></DIV>
<DIV><SPAN class=721003909-24082005><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=721003909-24082005><FONT face=Arial>My zapata.conf is:
==============</FONT></SPAN></DIV>
<DIV><SPAN class=721003909-24082005><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=721003909-24082005>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN
style="mso-fareast-font-family: 'MS Mincho'"><FONT size=2><FONT
face="Courier New">[channels]<BR>language=en</FONT></FONT></SPAN></P><SPAN
style="mso-fareast-font-family: 'MS Mincho'"><FONT>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><BR><FONT face="Courier New"
size=2>context=incoming<BR>signalling=fxs_ks<BR>cidsignalling=v23<BR>cidstart=polarity<BR>usecallerid=yes<BR>channel
=> 4<BR><BR>group=2<BR>context=internal<BR>signalling=fxo_ks<BR>channel =>
1<BR>channel => 2</FONT></P>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN
class=721003909-24082005></SPAN><FONT face="Courier New"><FONT size=2>=<SPAN
class=721003909-24082005>=======================</SPAN><BR> <?xml:namespace
prefix = o ns = "urn:schemas-microsoft-com:office:office"
/><o:p></o:p></FONT></FONT></FONT></SPAN></P></SPAN></DIV>
<DIV><SPAN class=721003909-24082005><FONT face=Arial>The log file contains this
when I ring from my mobile telephone: ===========</FONT></SPAN></DIV><SPAN
class=721003909-24082005>
<P class=MsoPlainText style="MARGIN: 0cm 0cm 0pt"><SPAN
style="mso-fareast-font-family: 'MS Mincho'"><FONT face=Arial size=2>Aug 24
10:35:12 VERBOSE[27670] logger.c: Asterisk Ready.<BR><SPAN
style="mso-spacerun: yes"> </SPAN>== Starting post polarity CID detection
on channel 4<BR>Aug 24 10:35:12 VERBOSE[27670] logger.c:<SPAN
style="mso-spacerun: yes"> </SPAN>-- Starting simple
switch on 'Zap/4-1'<BR>Aug 24 10:35:15 NOTICE[27670] chan_zap.c: Got event 17
(Polarity Reversal)...<BR>Aug 24 10:35:15 DEBUG[27670] chan_zap.c: Exception on
16, channel 4<BR>Aug 24 10:35:15 DEBUG[27670] chan_zap.c: Got event
Ring/Answered(2) on channel 4 (index 0)<BR>Aug 24 10:35:15 DEBUG[27670]
chan_zap.c: Setting IDLE polarity due to ring. Old polarity was 1<BR>Aug 24
10:35:15 VERBOSE[27670] logger.c:<SPAN
style="mso-spacerun: yes"> </SPAN>-- Executing
NoOp("Zap/4-1", "") in new stack<BR></FONT></SPAN></P>
<DIV><FONT face=Arial>================</FONT></DIV>
<DIV><SPAN class=721003909-24082005><FONT face=Arial>NB. The mobile network does
pass CID - my house telephone, connected to this exchange line, shows the
calling number.</FONT></SPAN></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV></SPAN><SPAN class=721003909-24082005><FONT face=Arial>This is not always
consistent. Sometimes raher than the polarity reversal I get an Event 2
(Ring/Answer). However, there is always one event or another whilst processing
CID. Either way, looking at the code, I see that getting any kind of event
whilst looking for CID on the line, will always prematurely halt CID processing.
I was reading BT SIN 227 (<A
href="http://www1.btwebworld.com/sinet/227v3p4.pdf">http://www1.btwebworld.com/sinet/227v3p4.pdf</A>)
that mentions a kind of hand-shaking. There is a time-line for this on pages 9
and 30 of this document. There is some indication in this document, though this
isn't 100% clear to me, that if an ancknowledgement tone is not sent, the
exchange will not send CID. For the life of me, I cannot see anything that
appears to be such an acknowledgement in the asterisk source code. However, BT's
CID thingy is based on Bellcore CLASS signalling, so perhaps the support is
there already in Asterisk.</FONT></SPAN></DIV>
<DIV><SPAN class=721003909-24082005><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=721003909-24082005><FONT face=Arial>I'm an OK sort of
programmer (not a born hacker, tho'), but don't really understand POTS lines
(ISDN is another matter - I used to teach the subject): so I'm be OK following a
reasonably technical discussion.</FONT></SPAN></DIV>
<DIV><SPAN class=721003909-24082005><FONT face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=721003909-24082005><FONT face=Arial>I'd be very grateful to
anyone for any light they could shed on what's happening
here.</FONT></SPAN></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Nicole King</FONT></DIV>
<DIV><FONT face=Arial>Secretary, Inner Enigma</FONT></DIV></BODY></HTML>