From owner-freebsd-isdn@FreeBSD.ORG Wed Jun 6 07:16:57 2007 Return-Path: X-Original-To: freebsd-isdn@freebsd.org Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8653E16A421 for ; Wed, 6 Jun 2007 07:16:57 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.swip.net [212.247.154.1]) by mx1.freebsd.org (Postfix) with ESMTP id F0C4B13C4B8 for ; Wed, 6 Jun 2007 07:16:56 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [194.248.135.20] (account mc467741@c2i.net HELO laptop.lan) by mailfe01.swip.net (CommuniGate Pro SMTP 5.1.9) with ESMTPA id 492616522; Wed, 06 Jun 2007 09:16:55 +0200 From: Hans Petter Selasky To: freebsd-isdn@freebsd.org Date: Wed, 6 Jun 2007 09:16:48 +0200 User-Agent: KMail/1.9.5 References: <4665CAFA.3080801@wanagain.net> In-Reply-To: <4665CAFA.3080801@wanagain.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200706060916.48120.hselasky@c2i.net> Cc: Subject: Re: Digium b410p with i4b X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 07:16:57 -0000 On Tuesday 05 June 2007 22:43, Mikael Batard wrote: > Hi, > > i'm trying to get the Digium b410p card (quadbri) working with i4b (svn > trunk revision 510) on FreeBSD 6.2. > > I've added the vendor hardware code to the > i4b/trunk/i4b/src/sys/i4b/layer1/ihfc2/i4b_hfc4s8s.h file : > I4B_PCI_DRIVER(/* HFC-4S B410P */ > .vid =3D 0xb410d161, > .sub =3D 0xb410d161); Thanks for the ID, I've added it to the SVN repo. Maybe you want to do a "s= vn=20 revert trunk/i4b/src/sys/i4b/layer1/ihfc2/i4b_hfc4s8s.h" then "svn update". This entry should be under "double_clock" =3D 0. > > The card is detected with pciconf : > $ pciconf -vl > ihfc0@pci6:1:0: class=3D0x020400 card=3D0xb410d161 chip=3D0xb410d161 rev= =3D0x01 > hdr=3D0x00 > class =3D network > subclass =3D ISDN > > and isdnconfig : > $ isdnconfig > controller 8 =3D { > Layer 1: > description : HFC-4S PCI ISDN adapter > type : passive ISDN (Basic Rate, 2xB) > channels : 0x3 > serial : 0xabd5 > power_save : on > dialtone : enabled > attached : yes > PH-state : F3: Deactivated > Layer 2: > driver_type : DRVR_DSS1_TE > } > > If I insert the isdn cable in the card the PH-state change to this: > PH-state : F7: Activated > > But if I call my isdn number (which is sent through the cable to the > card), it doesn't work, i get no tone on my phone (which is external > from this isdn network). > > I've tried to do some tests with capitest and isdndecode, and I've got > lots of lines like this one : =46irst you must ensure that you have set the correct protocol=20 using "isdnconfig". For example: isdnconfig -u 8 -p DRVR_DSS1_TE Then according to "man isdnconfig" it is also required to set "pcm_master"= =20 mode before the card will operate. That is printed out in the "dmesg". This= =20 is to avoid problems when you connect your HFC-4S to another clock source. =46rom "man isdnconfig": isdnconfig -m 0 pcm_64 \ -m 1 pcm_64 \ -u 8 pcm_64 pcm_map 0 1 end pcm_master te_mode \ -p DRVR_DSS1_TE \ -u 9 pcm_64 pcm_map 0 1 end pcm_master nt_mode \ power_on -p DRVR_DSS1_NT > > Asterisk 1.2.17, zaptel 1.4.1, libpri 1.4.0 and libpri-bristuff 1.2.3 > are installed. > There are 2 other cards installed : 1 Digium TDM400p (with 2 FXO ports) > and 1 Passive ISDN BRI card (which works perfectly except for echo > cancellation). You need to use "chan_capi" from the SVN repo, and not "zaptel", to get the= =20 ISDN cards detected under Asterisk. Also I4B has a new Fast Fourier Transfo= rm=20 Based Acoustic Echo Canceller. Did you try that? Look at the "chan_capi/extensions.conf" and "chan_capi/capi.conf" example=20 files. =2D-HPS