From owner-freebsd-isdn@FreeBSD.ORG Mon Jun 4 11:08:34 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 B168916A400 for ; Mon, 4 Jun 2007 11:08:34 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 887AF13C48A for ; Mon, 4 Jun 2007 11:08:34 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l54B8YQr037552 for ; Mon, 4 Jun 2007 11:08:34 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l54B8WDZ037547 for freebsd-isdn@FreeBSD.org; Mon, 4 Jun 2007 11:08:32 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 4 Jun 2007 11:08:32 GMT Message-Id: <200706041108.l54B8WDZ037547@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-isdn@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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: Mon, 04 Jun 2007 11:08:34 -0000 Current FreeBSD problem reports Critical problems Serious problems Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- s kern/79117 isdn [iavc] iavc(4) for AVM B1 PCI does not attach 1 problem total. From owner-freebsd-isdn@FreeBSD.ORG Tue Jun 5 21:01:15 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 26B8016A400 for ; Tue, 5 Jun 2007 21:01:15 +0000 (UTC) (envelope-from support@wanagain.net) Received: from mx1.wanagain.net (mx1.wanagain.net [62.244.101.75]) by mx1.freebsd.org (Postfix) with ESMTP id AB7A113C43E for ; Tue, 5 Jun 2007 21:01:14 +0000 (UTC) (envelope-from support@wanagain.net) Received: from localhost (localhost [127.0.0.1]) by mx1.wanagain.net (Postfix) with ESMTP id E69FB11F956 for ; Tue, 5 Jun 2007 22:43:42 +0200 (CEST) X-Virus-Scanned: amavisd-new at wanagain.net Received: from mx1-2.wanagain.net ([62.244.101.87]) by localhost (mx1.wanagain.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1rGCGE1Keo4g for ; Tue, 5 Jun 2007 22:43:40 +0200 (CEST) Received: from [192.168.0.10] (milo.giraya.net [88.169.21.92]) by mx1-2.wanagain.net (Postfix) with ESMTP id 0F02F11F949 for ; Tue, 5 Jun 2007 22:43:39 +0200 (CEST) Message-ID: <4665CAFA.3080801@wanagain.net> Date: Tue, 05 Jun 2007 22:43:38 +0200 From: Mikael Batard Organization: Wan Again User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070403 Thunderbird/1.5.0.10 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: freebsd-isdn@freebsd.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: 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: Tue, 05 Jun 2007 21:01:15 -0000 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 = 0xb410d161, .sub = 0xb410d161); The card is detected with pciconf : $ pciconf -vl ihfc0@pci6:1:0: class=0x020400 card=0xb410d161 chip=0xb410d161 rev=0x01 hdr=0x00 class = network subclass = ISDN and isdnconfig : $ isdnconfig controller 8 = { 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 : -- TE->NT - unit:09 frame:000409 - time:05.06 22:30:17.013265 - length:8 ----- L2 00 FC 111111-- SAPI = 63 (Layer 2 Management) ------0- C/R = Command -------0 Extension Bit = 0 (with extension, octet follows) L2 01 FF 1111111- TEI = 127 = 0x7f (Broadcast TEI) -------1 Extension Bit = 1 (no extension, final octet) L2 02 03 000-0011 U-Frame: UI (Unnumbered Information) ---0---- P/F, Poll = No Immediate Response Required L2 03 0F 00001111 MEI (Management Entity Identifier) L2 04 AD 10101101 Ri = 0xad57 (Reference number high) L2 05 57 01010111 Ri (Reference Number low) L2 06 01 00000001 TEI Identity message = REQUEST (0x01) L2 07 FF 1111111- Ai = 127 (Action Indicator = ) -------1 Extension Bit = 1 (no extension, final octet) 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). $ ztcfg -vv Keyword: [fxsks], Value: [3-4] Keyword: [loadzone], Value: [fr] Keyword: [defaultzone], Value: [fr] Zaptel Version: 1.4.0-BSD Echo Canceller: MG2 Configuration ====================== Channel map: Channel 03: FXS Kewlstart (Default) (Slaves: 03) Channel 04: FXS Kewlstart (Default) (Slaves: 04) 2 channels configured. $ pciconf -vl ihfc1@pci6:2:0: class=0x028000 card=0x2bd01397 chip=0x2bd01397 rev=0x02 hdr=0x00 vendor = 'Cologne Chip Designs GmbH' device = 'HFC-S PCI A ISDN 2BDS0 ISDN HDLC FIFO Controller' class = network SIP phones can call through Passive ISDN BRI card with no problem, but if I try to make a call through the Digium b410p, i've got a tone (from asterisk) and after 20 seconds it fails with "all circuit are busy". Can somebody help me with this ? I didn't find nothing on the web about digium b410p on freebsd. Thanks. Regards, -- Mikael Batard Wan Again 12 Route de l'Isle 84510 Caumont sur Durance Tel: +33 (0)4 90 01 26 86 Fax: +33 (0)4 90 23 10 58 http://www.wanagain.fr/ 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 From owner-freebsd-isdn@FreeBSD.ORG Wed Jun 6 09:26:46 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 8AA4F16A421 for ; Wed, 6 Jun 2007 09:26:46 +0000 (UTC) (envelope-from support@wanagain.net) Received: from mx1.wanagain.net (mx1.wanagain.net [62.244.101.75]) by mx1.freebsd.org (Postfix) with ESMTP id 46E2313C483 for ; Wed, 6 Jun 2007 09:26:46 +0000 (UTC) (envelope-from support@wanagain.net) Received: from localhost (localhost [127.0.0.1]) by mx1.wanagain.net (Postfix) with ESMTP id 3DB9F11F964 for ; Wed, 6 Jun 2007 11:26:45 +0200 (CEST) X-Virus-Scanned: amavisd-new at wanagain.net Received: from mx1-2.wanagain.net ([62.244.101.87]) by localhost (mx1.wanagain.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tLyaKhDlNlZg for ; Wed, 6 Jun 2007 11:26:45 +0200 (CEST) Received: from [192.168.199.13] (newton.wanagain.net [62.244.101.4]) by mx1-2.wanagain.net (Postfix) with ESMTP id F230E11F94B for ; Wed, 6 Jun 2007 11:26:44 +0200 (CEST) Message-ID: <46667DD4.3010609@wanagain.net> Date: Wed, 06 Jun 2007 11:26:44 +0200 From: Mikael Batard Organization: Wan Again User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.4.666 MIME-Version: 1.0 To: freebsd-isdn@freebsd.org References: <4665CAFA.3080801@wanagain.net> <200706060916.48120.hselasky@c2i.net> In-Reply-To: <200706060916.48120.hselasky@c2i.net> X-Enigmail-Version: 0.95.0 OpenPGP: id=DB9FAEE8 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit 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 09:26:46 -0000 On 06.06.2007 09:16, Hans Petter Selasky wrote : > Thanks for the ID, I've added it to the SVN repo. Maybe you want to do a "svn > revert trunk/i4b/src/sys/i4b/layer1/ihfc2/i4b_hfc4s8s.h" then "svn update". Thanks. Done ! :) > This entry should be under "double_clock" = 0. OK, why ? > First you must ensure that you have set the correct protocol > using "isdnconfig". For example: > > isdnconfig -u 8 -p DRVR_DSS1_TE Yes I've already done that. > Then according to "man isdnconfig" it is also required to set "pcm_master" > mode before the card will operate. That is printed out in the "dmesg". This > is to avoid problems when you connect your HFC-4S to another clock source. > > From "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 Already done too :) >> 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 > ISDN cards detected under Asterisk. Also I4B has a new Fast Fourier Transform > Based Acoustic Echo Canceller. Did you try that? Didn't try yet, how does it work ? In fact I'm already using chan_capi from svn repo with capi.conf. Zaptel is only used for the TDM400p card (2 FXO). My capi.conf (ISDN1 = Passive ISDN BRI, ISDN2 = Digium B410P): [general] nationalprefix=0 internationalprefix=00 rxgain=0.8 txgain=0.8 alaw=yes [ISDN1] isdnmode=msn incomingmsn=* controller=0 group=1 softdtmf=1 relaxdtmf=on accountcode= context=capi-in holdtype=local echocancel=yes echosquelch=no devices=2 dtmf_generate=yes [ISDN2] isdnmode=MSN incomingmsn=* controller=8 group=1 softdtmf=0 relaxdtmf=off accountcode= context=capi-in holdtype=local echocancel=yes echosquelch=no devices=2 Regards, -- Mikael Batard Wan Again 12 Route de l'Isle 84510 Caumont sur Durance Tel: +33 (0)4 90 01 26 86 Fax: +33 (0)4 90 23 58 05 http://www.wanagain.fr/ From owner-freebsd-isdn@FreeBSD.ORG Wed Jun 6 09:43:56 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 B31B816A468 for ; Wed, 6 Jun 2007 09:43:56 +0000 (UTC) (envelope-from support@wanagain.net) Received: from mx1.wanagain.net (mx1.wanagain.net [62.244.101.75]) by mx1.freebsd.org (Postfix) with ESMTP id 6F6B413C45A for ; Wed, 6 Jun 2007 09:43:56 +0000 (UTC) (envelope-from support@wanagain.net) Received: from localhost (localhost [127.0.0.1]) by mx1.wanagain.net (Postfix) with ESMTP id AE0EC11F881 for ; Wed, 6 Jun 2007 11:43:55 +0200 (CEST) X-Virus-Scanned: amavisd-new at wanagain.net Received: from mx1-2.wanagain.net ([62.244.101.87]) by localhost (mx1.wanagain.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O2eDYaNHVRSc for ; Wed, 6 Jun 2007 11:43:55 +0200 (CEST) Received: from [192.168.199.13] (newton.wanagain.net [62.244.101.4]) by mx1-2.wanagain.net (Postfix) with ESMTP id 2446211F85E for ; Wed, 6 Jun 2007 11:43:54 +0200 (CEST) Message-ID: <466681DA.2090005@wanagain.net> Date: Wed, 06 Jun 2007 11:43:54 +0200 From: Mikael Batard Organization: Wan Again User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.4.666 MIME-Version: 1.0 To: freebsd-isdn@freebsd.org References: <4665CAFA.3080801@wanagain.net> <200706060916.48120.hselasky@c2i.net> In-Reply-To: <200706060916.48120.hselasky@c2i.net> X-Enigmail-Version: 0.95.0 OpenPGP: id=DB9FAEE8 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit 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 09:43:56 -0000 On 06.06.2007 09:16, Hans Petter Selasky wrote : > Thanks for the ID, I've added it to the SVN repo. Maybe you want to do a "svn > revert trunk/i4b/src/sys/i4b/layer1/ihfc2/i4b_hfc4s8s.h" then "svn update". > > This entry should be under "double_clock" = 0. By the way, I've forgot to tell you that it works now with you modification (under "double_clock" = 0) ! Thanks for you help on this. Regards -- Mikael Batard Wan Again 12 Route de l'Isle 84510 Caumont sur Durance Tel: +33 (0)4 90 01 26 86 Fax: +33 (0)4 90 23 58 05 http://www.wanagain.fr/ From owner-freebsd-isdn@FreeBSD.ORG Wed Jun 6 12:55:30 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 4ADB616A41F for ; Wed, 6 Jun 2007 12:55:30 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.freebsd.org (Postfix) with ESMTP id ACA7613C4BA for ; Wed, 6 Jun 2007 12:55:29 +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 mailfe05.swip.net (CommuniGate Pro SMTP 5.1.9) with ESMTPA id 412582005; Wed, 06 Jun 2007 14:55:28 +0200 From: Hans Petter Selasky To: freebsd-isdn@freebsd.org Date: Wed, 6 Jun 2007 14:55:21 +0200 User-Agent: KMail/1.9.5 References: <4665CAFA.3080801@wanagain.net> <200706060916.48120.hselasky@c2i.net> <46667DD4.3010609@wanagain.net> In-Reply-To: <46667DD4.3010609@wanagain.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706061455.21425.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 12:55:30 -0000 On Wednesday 06 June 2007 11:26, Mikael Batard wrote: > On 06.06.2007 09:16, Hans Petter Selasky wrote : > > Thanks for the ID, I've added it to the SVN repo. Maybe you want to do a > > "svn revert trunk/i4b/src/sys/i4b/layer1/ihfc2/i4b_hfc4s8s.h" then "svn > > update". > > Thanks. Done ! :) > > > This entry should be under "double_clock" = 0. > > OK, why ? It related to the X-tal used with the chip. > > > First you must ensure that you have set the correct protocol > > using "isdnconfig". For example: > > > > isdnconfig -u 8 -p DRVR_DSS1_TE > > Yes I've already done that. > > > Then according to "man isdnconfig" it is also required to set > > "pcm_master" mode before the card will operate. That is printed out in > > the "dmesg". This is to avoid problems when you connect your HFC-4S to > > another clock source. > > > > From "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 > > Already done too :) > > >> 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 ISDN cards detected under Asterisk. Also I4B has a new Fast Fourier > > Transform Based Acoustic Echo Canceller. Did you try that? > > Didn't try yet, how does it work ? > > In fact I'm already using chan_capi from svn repo with capi.conf. > Zaptel is only used for the TDM400p card (2 FXO). In the file: /usr/src/sys/i4b/include/i4b_global.h You can set: #define I4B_ECHO_CANCEL_P_COMPLEX (9) to 10, to cancel more of the far echo. After changing this variable you have to recompile the kernel. Use "isdnconfig -u 8 -c 1 dump_ec" and "isdnconfig -u 8 -c 2 dump_ec" to dump the Echo Cancel FIR filter directly to Matlab or Octave. > > My capi.conf (ISDN1 = Passive ISDN BRI, ISDN2 = Digium B410P): > > [general] > > nationalprefix=0 > internationalprefix=00 > rxgain=0.8 > txgain=0.8 > alaw=yes > > [ISDN1] > > isdnmode=msn > incomingmsn=* > controller=0 > group=1 > softdtmf=1 > relaxdtmf=on > accountcode= > context=capi-in > holdtype=local > echocancel=yes > echosquelch=no > devices=2 > dtmf_generate=yes > > > [ISDN2] > > isdnmode=MSN > incomingmsn=* > controller=8 > group=1 > softdtmf=0 > relaxdtmf=off > accountcode= > context=capi-in > holdtype=local > echocancel=yes > echosquelch=no > devices=2 > Config looks OK. You might want to use "bridge=yes" if you want that calls should be bridged in hardware on the HFC-4S. --HPS From owner-freebsd-isdn@FreeBSD.ORG Wed Jun 6 13:20:46 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 358C716A400 for ; Wed, 6 Jun 2007 13:20:46 +0000 (UTC) (envelope-from support@wanagain.net) Received: from mx1.wanagain.net (mx1.wanagain.net [62.244.101.75]) by mx1.freebsd.org (Postfix) with ESMTP id DB5B813C458 for ; Wed, 6 Jun 2007 13:20:45 +0000 (UTC) (envelope-from support@wanagain.net) Received: from localhost (localhost [127.0.0.1]) by mx1.wanagain.net (Postfix) with ESMTP id C546211F95A for ; Wed, 6 Jun 2007 15:20:44 +0200 (CEST) X-Virus-Scanned: amavisd-new at wanagain.net Received: from mx1-2.wanagain.net ([62.244.101.87]) by localhost (mx1.wanagain.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Y3vHnymRLRud for ; Wed, 6 Jun 2007 15:20:44 +0200 (CEST) Received: from [192.168.199.13] (newton.wanagain.net [62.244.101.4]) by mx1-2.wanagain.net (Postfix) with ESMTP id 890D111F881 for ; Wed, 6 Jun 2007 15:20:44 +0200 (CEST) Message-ID: <4666B4AB.4090908@wanagain.net> Date: Wed, 06 Jun 2007 15:20:43 +0200 From: Mikael Batard Organization: Wan Again User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.4.666 MIME-Version: 1.0 To: freebsd-isdn@freebsd.org References: <4665CAFA.3080801@wanagain.net> <200706060916.48120.hselasky@c2i.net> <46667DD4.3010609@wanagain.net> <200706061455.21425.hselasky@c2i.net> In-Reply-To: <200706061455.21425.hselasky@c2i.net> X-Enigmail-Version: 0.95.0 OpenPGP: id=DB9FAEE8 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit 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 13:20:46 -0000 On 06.06.2007 14:55, Hans Petter Selasky wrote : > On Wednesday 06 June 2007 11:26, Mikael Batard wrote: >> On 06.06.2007 09:16, Hans Petter Selasky wrote : >>> This entry should be under "double_clock" = 0. >> OK, why ? > > It related to the X-tal used with the chip. OK >>> You need to use "chan_capi" from the SVN repo, and not "zaptel", to get >>> the ISDN cards detected under Asterisk. Also I4B has a new Fast Fourier >>> Transform Based Acoustic Echo Canceller. Did you try that? >> Didn't try yet, how does it work ? > > In the file: > > /usr/src/sys/i4b/include/i4b_global.h > > You can set: > > #define I4B_ECHO_CANCEL_P_COMPLEX (9) > > to 10, to cancel more of the far echo. After changing this variable you have > to recompile the kernel. > > Use "isdnconfig -u 8 -c 1 dump_ec" and "isdnconfig -u 8 -c 2 dump_ec" to dump > the Echo Cancel FIR filter directly to Matlab or Octave. OK, I'm gonna try this later, but not on the Digium b410p, because this card has an hardware echo cancellation. So I'll enable this on the cheap Passive ISDN BRI card. >> My capi.conf (ISDN1 = Passive ISDN BRI, ISDN2 = Digium B410P): >> >> [general] >> >> nationalprefix=0 >> internationalprefix=00 >> rxgain=0.8 >> txgain=0.8 >> alaw=yes >> >> [ISDN1] >> >> isdnmode=msn >> incomingmsn=* >> controller=0 >> group=1 >> softdtmf=1 >> relaxdtmf=on >> accountcode= >> context=capi-in >> holdtype=local >> echocancel=yes >> echosquelch=no >> devices=2 >> dtmf_generate=yes >> >> >> [ISDN2] >> >> isdnmode=MSN >> incomingmsn=* >> controller=8 >> group=1 >> softdtmf=0 >> relaxdtmf=off >> accountcode= >> context=capi-in >> holdtype=local >> echocancel=yes >> echosquelch=no >> devices=2 >> > > Config looks OK. > > You might want to use "bridge=yes" if you want that calls should be bridged in > hardware on the HFC-4S. OK thanks. Regards, -- Mikael Batard Wan Again 12 Route de l'Isle 84510 Caumont sur Durance Tel: +33 (0)4 90 01 26 86 Fax: +33 (0)4 90 23 58 05 http://www.wanagain.fr/