<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>How is DAHDI-1 set up in users.conf?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>You need something like this<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>; Span 2: WCTDM/4 &quot;Wildcard TDM400P
REV I Board 5&quot;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>[4001]<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>fullname = &nbsp;Line 1<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>cid_number = 5551212<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Arun Sasidhar<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, December 30, 2009
8:56 AM<br>
<b><span style='font-weight:bold'>To:</span></b>
asterisk-users@lists.digium.com<br>
<b><span style='font-weight:bold'>Subject:</span></b> [asterisk-users] CID not
working.</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Hi,<br>
<br>
&nbsp;&nbsp;&nbsp; I am using asterisk 1.4.28 with freepbx and Wildcard TDM410P
card. Everything is working fine except the caller ID of incoming call from
PSTN line. The phone display is showing &quot;Unknown&quot; when there is an
incoming call.<br>
<br>
<b><span style='font-weight:bold'>My log file showing this while an incoming
call on PSTN line:</span></b><br>
tail -f /var/log/asterisk/full<br>
<br>
[Dec 30 06:36:16] DEBUG[2559] dsp.c: dsp busy pattern set to 0,0<br>
[Dec 30 06:36:16] VERBOSE[2715] logger.c:&nbsp;&nbsp;&nbsp;&nbsp; -- Starting
simple switch on 'DAHDI/1-1'<br>
[Dec 30 06:36:16] VERBOSE[2715] logger.c:&nbsp;&nbsp;&nbsp;&nbsp; -- Executing
[s@from-pstn:1] Set(&quot;DAHDI/1-1&quot;, &quot;__FROM_DID=s&quot;) in new
stack<br>
[Dec 30 06:36:16] VERBOSE[2715] logger.c:&nbsp;&nbsp;&nbsp;&nbsp; -- Executing
[s@from-pstn:2] Gosub(&quot;DAHDI/1-1&quot;,
&quot;app-blacklist-check|s|1&quot;) in new stack<br>
[Dec 30 06:36:16] VERBOSE[2715] logger.c:&nbsp;&nbsp;&nbsp;&nbsp; -- Executing
[s@app-blacklist-check:1] LookupBlacklist(&quot;DAHDI/1-1&quot;, &quot;&quot;)
in new stack<br>
[Dec 30 06:36:16] VERBOSE[2715] logger.c:&nbsp;&nbsp;&nbsp;&nbsp; -- Executing
[s@app-blacklist-check:2] GotoIf(&quot;DAHDI/1-1&quot;,
&quot;0?blacklisted&quot;) in new stack<br>
[Dec 30 06:36:16] VERBOSE[2715] logger.c:&nbsp;&nbsp;&nbsp;&nbsp; -- Executing
[s@app-blacklist-check:3] Set(&quot;DAHDI/1-1&quot;,
&quot;CALLED_BLACKLIST=1&quot;) in new stack<br>
[Dec 30 06:36:16] VERBOSE[2715] logger.c:&nbsp;&nbsp;&nbsp;&nbsp; -- Executing
[s@app-blacklist-check:4] Return(&quot;DAHDI/1-1&quot;, &quot;&quot;) in new
stack<br>
[Dec 30 06:36:16] VERBOSE[2715] logger.c:&nbsp;&nbsp;&nbsp;&nbsp; -- Executing
[s@from-pstn:3] ExecIf(&quot;DAHDI/1-1&quot;, &quot;1
|Set|CALLERID(name)=&quot;) in new stack<br>
[Dec 30 06:36:16] VERBOSE[2715] logger.c:&nbsp;&nbsp;&nbsp;&nbsp; -- Executing
[s@from-pstn:4] Set(&quot;DAHDI/1-1&quot;, &quot;FAX_RX=disabled&quot;) in new
stack<br>
[Dec 30 06:36:16] VERBOSE[2715] logger.c:&nbsp;&nbsp;&nbsp;&nbsp; -- Executing
[s@from-pstn:5] Set(&quot;DAHDI/1-1&quot;,
&quot;__CALLINGPRES_SV=allowed_not_screened&quot;) in new stack<br>
<br>
<br>
<b><span style='font-weight:bold'>My chan_dahdi.conf file is as like this.</span></b><br>
vim /etc/asterisk/chan_dahdi.conf<br>
<br>
[channels]<br>
language=en<br>
hanguponpolarityswitch=yes<br>
answeronpolarityswitch=yes<br>
busydetect=yes<br>
busycount=3<br>
callprogress=yes<br>
callerid=asreceived<br>
immediate=yes<br>
cidsignalling=dtmf<br>
cidstart=polarity<br>
;cidstart=ring<br>
useincomingcalleridonzaptransfer=yes<br>
;cidsignalling=bell<br>
; include dahdi extensions defined in FreePBX<br>
#include chan_dahdi_additional.conf<br>
<br>
; XTDM20B Port #1,2 plugged into PSTN<br>
;AMPLABEL:Channel %c - Button %n<br>
<br>
Please help me for fixing this issue. I am from <st1:country-region w:st="on"><st1:place
 w:st="on">India</st1:place></st1:country-region>.<br>
<br>
<br>
Regards,<br>
Aruns<br>
<br>
<br>
<br>
<br>
<o:p></o:p></span></font></p>

</div>

</body>

</html>