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