<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>Problem with ISDN Dialin via CAPI</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2 FACE="Arial">Hello List,</FONT>
<BR><FONT SIZE=2 FACE="Arial">because this is my first post to this list, i'd like to introduce myself.</FONT>
<BR><FONT SIZE=2 FACE="Arial">My name is Thorsten Müller, 26 years old and live near Frankfurt/Main in germany.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Okay, now to the reason for this posting:</FONT>
<BR><FONT SIZE=2 FACE="Arial">I just installed my first asterisk server (Debian 2.2 Kernel 2.4.18-686) with AVM ISDN Fritz PCI card (passive).</FONT>
<BR><FONT SIZE=2 FACE="Arial">I followed the configuration on <A HREF="http://voip-info.org" TARGET="_blank">http://voip-info.org</A> and the Voice-Over-IP telephony between two PC's with SJPhone works perfectly.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">But connecting this machine to the ISDN line drives me crazy.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I installed the capi driver from the AVM website and installed chan_capi without bigger problems.</FONT>
<BR><FONT SIZE=2 FACE="Arial">Followed these instructions: <A HREF="http://voip-info.org/tiki-index.php?page=Asterisk+How+to+connect+with+CAPI" TARGET="_blank">http://voip-info.org/tiki-index.php?page=Asterisk+How+to+connect+with+CAPI</A></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">After entering the asterisk console i tried</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">*CLI> capi info</FONT>
<BR><FONT SIZE=2 FACE="Arial">Contr1: 2 B channels total, 2 B channels free. </FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">(looks good)</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">*CLI> capi debug</FONT>
<BR><FONT SIZE=2 FACE="Arial">CAPI Debugging Enabled </FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">When i call my msn with a normal phone i see the following content:</FONT>
<BR><FONT SIZE=2 FACE="Arial">=================================================</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"> -- CONNECT_IND ID=001 #0x0020 LEN=0047</FONT>
<BR><FONT SIZE=2 FACE="Arial"> Controller/PLCI/NCCI = 0x101</FONT>
<BR><FONT SIZE=2 FACE="Arial"> CIPValue = 0x10</FONT>
<BR><FONT SIZE=2 FACE="Arial"> CalledPartyNumber = <c1>523065</FONT>
<BR><FONT SIZE=2 FACE="Arial"> CallingPartyNumber = <21 81>6101806124</FONT>
<BR><FONT SIZE=2 FACE="Arial"> CalledPartySubaddress = default</FONT>
<BR><FONT SIZE=2 FACE="Arial"> CallingPartySubaddress = default</FONT>
<BR><FONT SIZE=2 FACE="Arial"> BC = <80 90 a3></FONT>
<BR><FONT SIZE=2 FACE="Arial"> LLC = default</FONT>
<BR><FONT SIZE=2 FACE="Arial"> HLC = <91 81></FONT>
<BR><FONT SIZE=2 FACE="Arial"> AdditionalInfo = default</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Feb 21 11:32:30 NOTICE[384]: chan_capi.c:1932 capi_handle_msg: CONNECT_IND ID=001 #0x0020 LEN=0047</FONT>
<BR><FONT SIZE=2 FACE="Arial"> Controller/PLCI/NCCI = 0x101</FONT>
<BR><FONT SIZE=2 FACE="Arial"> CIPValue = 0x10</FONT>
<BR><FONT SIZE=2 FACE="Arial"> CalledPartyNumber = <c1>523065</FONT>
<BR><FONT SIZE=2 FACE="Arial"> CallingPartyNumber = <21 81>6101806124</FONT>
<BR><FONT SIZE=2 FACE="Arial"> CalledPartySubaddress = default</FONT>
<BR><FONT SIZE=2 FACE="Arial"> CallingPartySubaddress = default</FONT>
<BR><FONT SIZE=2 FACE="Arial"> BC = <80 90 a3></FONT>
<BR><FONT SIZE=2 FACE="Arial"> LLC = default</FONT>
<BR><FONT SIZE=2 FACE="Arial"> HLC = <91 81></FONT>
<BR><FONT SIZE=2 FACE="Arial"> AdditionalInfo = default</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"> == CONNECT_IND (PLCI=0x101,DID=523065,CID=6101806124,CIP=0x10,CONTROLLER=0x1)</FONT>
<BR><FONT SIZE=2 FACE="Arial">Feb 21 11:32:30 ERROR[384]: chan_capi.c:2051 capi_handle_msg: did not find device for msn = 523065</FONT>
<BR><FONT SIZE=2 FACE="Arial"> -- INFO_IND ID=001 #0x0021 LEN=0022</FONT>
<BR><FONT SIZE=2 FACE="Arial"> Controller/PLCI/NCCI = 0x101</FONT>
<BR><FONT SIZE=2 FACE="Arial"> InfoNumber = 0x70</FONT>
<BR><FONT SIZE=2 FACE="Arial"> InfoElement = <c1>523065</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Feb 21 11:32:30 ERROR[384]: chan_capi.c:1198 find_pipe: unable to find a pipe for PLCI = 0x101 MN = 0x21</FONT>
<BR><FONT SIZE=2 FACE="Arial">Feb 21 11:32:30 NOTICE[384]: chan_capi.c:1302 pipe_msg: INFO_IND ID=001 #0x0021</FONT>
<BR><FONT SIZE=2 FACE="Arial">LEN=0022</FONT>
<BR><FONT SIZE=2 FACE="Arial"> Controller/PLCI/NCCI = 0x101</FONT>
<BR><FONT SIZE=2 FACE="Arial"> InfoNumber = 0x70</FONT>
<BR><FONT SIZE=2 FACE="Arial"> InfoElement = <c1>523065</FONT>
<BR><FONT SIZE=2 FACE="Arial"> -- INFO_IND ID=001 #0x0022 LEN=0016</FONT>
<BR><FONT SIZE=2 FACE="Arial"> Controller/PLCI/NCCI = 0x101</FONT>
<BR><FONT SIZE=2 FACE="Arial"> InfoNumber = 0x18</FONT>
<BR><FONT SIZE=2 FACE="Arial"> InfoElement = <89></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Feb 21 11:32:30 ERROR[384]: chan_capi.c:1198 find_pipe: unable to find a pipe for PLCI = 0x101 MN = 0x22</FONT>
<BR><FONT SIZE=2 FACE="Arial">Feb 21 11:32:30 NOTICE[384]: chan_capi.c:1302 pipe_msg: INFO_IND ID=001 #0x0022</FONT>
<BR><FONT SIZE=2 FACE="Arial">LEN=0016</FONT>
<BR><FONT SIZE=2 FACE="Arial"> Controller/PLCI/NCCI = 0x101</FONT>
<BR><FONT SIZE=2 FACE="Arial"> InfoNumber = 0x18</FONT>
<BR><FONT SIZE=2 FACE="Arial"> InfoElement = <89></FONT>
<BR><FONT SIZE=2 FACE="Arial"> -- DISCONNECT_IND ID=001 #0x0023 LEN=0014</FONT>
<BR><FONT SIZE=2 FACE="Arial"> Controller/PLCI/NCCI = 0x101</FONT>
<BR><FONT SIZE=2 FACE="Arial"> Reason = 0x0</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"> == DISCONNECT_IND PLCI=0x101 REASON=0</FONT>
<BR><FONT SIZE=2 FACE="Arial">Feb 21 11:32:30 ERROR[384]: chan_capi.c:1198 find_pipe: unable to find a pipe for PLCI = 0x101 MN = 0x23 </FONT></P>
<BR>
<P><FONT SIZE=2 FACE="Arial">Afterwards i did a search with google (and google groups) about: did not find device for msn but i wasn't really succesfull.</FONT></P>
<BR>
<P><FONT SIZE=2 FACE="Arial">Here are my entries of /etc/asterisk/capi.conf:</FONT>
<BR><FONT SIZE=2 FACE="Arial">=================================</FONT>
<BR><FONT SIZE=2 FACE="Arial">; CAPI config</FONT>
<BR><FONT SIZE=2 FACE="Arial">;</FONT>
<BR><FONT SIZE=2 FACE="Arial">[general]</FONT>
<BR><FONT SIZE=2 FACE="Arial">nationalprefix=0</FONT>
<BR><FONT SIZE=2 FACE="Arial">internationalprefix=00</FONT>
<BR><FONT SIZE=2 FACE="Arial">rxgain=0.8</FONT>
<BR><FONT SIZE=2 FACE="Arial">txgain=0.8</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">[interfaces]</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">msn=523065</FONT>
<BR><FONT SIZE=2 FACE="Arial">incomingmsn=523065</FONT>
<BR><FONT SIZE=2 FACE="Arial">controller=1</FONT>
<BR><FONT SIZE=2 FACE="Arial">softdtmf=1</FONT>
<BR><FONT SIZE=2 FACE="Arial">accountcode=</FONT>
<BR><FONT SIZE=2 FACE="Arial">context=demo</FONT>
<BR><FONT SIZE=2 FACE="Arial">;echosquelch=1</FONT>
<BR><FONT SIZE=2 FACE="Arial">;echocancel=yes</FONT>
<BR><FONT SIZE=2 FACE="Arial">;echotail=64</FONT>
<BR><FONT SIZE=2 FACE="Arial">;callgroup=1</FONT>
<BR><FONT SIZE=2 FACE="Arial">;deflect=12345678</FONT>
<BR><FONT SIZE=2 FACE="Arial">devices=2 </FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">Here are the entries of /etc/asterisk/extensions.conf</FONT>
<BR><FONT SIZE=2 FACE="Arial">======================================</FONT>
<BR><FONT SIZE=2 FACE="Arial">s,1,Dial,CAPI/523065:b${EXTEN}|30</FONT>
<BR><FONT SIZE=2 FACE="Arial">s,1,Dial,CAPI/523065:${EXTEN}|30|r </FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">Here's my /etc/isdn/capi.conf</FONT>
<BR><FONT SIZE=2 FACE="Arial">=====================</FONT>
<BR><FONT SIZE=2 FACE="Arial"># card file proto io irq mem cardnr options</FONT>
<BR><FONT SIZE=2 FACE="Arial">#b1isa b1.t4 DSS1 0x150 7 - - P2P</FONT>
<BR><FONT SIZE=2 FACE="Arial">b1pci b1.t4 DSS1 - - - -</FONT>
<BR><FONT SIZE=2 FACE="Arial">c4 c4.bin DSS1 - - - -</FONT>
<BR><FONT SIZE=2 FACE="Arial">c4 - DSS1 - - - -</FONT>
<BR><FONT SIZE=2 FACE="Arial">c4 - DSS1 - - - - P2P</FONT>
<BR><FONT SIZE=2 FACE="Arial">c4 - DSS1 - - - - P2P</FONT>
<BR><FONT SIZE=2 FACE="Arial">#c2 c2.bin DSS1 - - - -</FONT>
<BR><FONT SIZE=2 FACE="Arial">#c2 - DSS1 - - - -</FONT>
<BR><FONT SIZE=2 FACE="Arial">#t1isa t1.t4 DSS1 0x340 9 - 0</FONT>
<BR><FONT SIZE=2 FACE="Arial">#t1pci t1.t4 DSS1 - - - -</FONT>
<BR><FONT SIZE=2 FACE="Arial">#fcpci - - - - - -</FONT>
<BR><FONT SIZE=2 FACE="Arial">#fcclassic - - 0x150 10 - - </FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">Sorry, for the long posting, but i want to add a little debug output.</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">Can someone please point me to the right direction.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Thanks a lot</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Thorsten</FONT>
</P>
</BODY>
</HTML>