From owner-freebsd-isdn@FreeBSD.ORG Tue Sep 11 14:56:21 2012 Return-Path: Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A8E710656A3 for ; Tue, 11 Sep 2012 14:56:21 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe09.c2i.net [212.247.155.2]) by mx1.freebsd.org (Postfix) with ESMTP id C56248FC16 for ; Tue, 11 Sep 2012 14:56:20 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.212.201] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe09.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 143957111; Tue, 11 Sep 2012 16:51:13 +0200 From: Hans Petter Selasky To: Andreas Longwitz Date: Tue, 11 Sep 2012 16:52:17 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <504E1B19.3020901@incore.de> <201209102033.54948.hselasky@c2i.net> <504F4383.2080503@incore.de> In-Reply-To: <504F4383.2080503@incore.de> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@ =?iso-8859-1?q?d2+AyewRX=7DmAm=3BYp=0A=09=7CU=5B?=@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y> =?iso-8859-1?q?Y=7Dk1C4TfysrsUI=0A=09-=25GU9V5=5DiUZF=26nRn9mJ=27=3F=26?=>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Message-Id: <201209111652.17974.hselasky@c2i.net> Cc: freebsd-isdn@freebsd.org Subject: Re: ISDN4BSD (HPS version) is going into ports 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, 11 Sep 2012 14:56:21 -0000 Hi, On Tuesday 11 September 2012 15:58:27 Andreas Longwitz wrote: > Hi Hans, thanks for reply ! >=20 > >> Problem 1: If I take up the receiver of a ISDN telephone I do not hear > >> the dial tone. I hear nothing. I can dial and that works. The phone > >=20 > >> sends a SETUP messagewant_s and asterisk/isdn4bsd answers with SETUP A= CK: > > You need to check the settings in capi.conf for chan_capi. It should te= ll > > I4B to provide a dialtone. >=20 > I have checked capi.conf and did not find something usefull for > dialtone, but your statement gives me the correct hint: >=20 > In struct i4b_controller is a bit called no_layer1_dialtone and this bit > is never initialized, therefore it is zero. In dss1_l3fsm.h the variable > want_dialtone gets value 1 and the call > dss1_l3_tx_setup_acknowledge(cd,NT_MODE(sc),want_dialtone) > therefore sets the flag L3_TX_PROGRESSI and the SETUP_ACK fram created > in dss1_l3_tx_message has the progress indicator included. Everything ok > so far. Then I found, that the creation of the dialtone is done by the > driver type DRVR_DIAL_GEN and therefore the i4b module i4btel is needed. > After make config and activate "Build TEL driver" dialtone works. >=20 > I think this option should be on as a default. Done. >=20 > >> Problem 2: I tried to get more information for problem 1 with the > >> analyze mode of isdndecode using the custom cable as decribed in > >> cable.txt. I connected my ISDN phone to an "ISDN Basisanschlu=DF" with= my > >> cable box between them (receiving side unit 8, sending side unit 9), > >> but after the commands > >>=20 > >> cat /dev/ihfc8.X > /dev/null 2>&1 & (X=3D0,1,2) > >> cat /dev/ihfc9.X > /dev/null 2>&1 & > >> isdndecode -a -b -R 8 -T 9 -i -x > >>=20 > >> I can only see D-channel data from the NT-side, nothing from the phone > >> and no information from any B-channel, but the phone works correct. > >>=20 > >> The hardware jumpers on my HFC-4S card of unit 8 and 9 are set to TE > >> and I have > >>=20 > >> isdnconfig -u 8 intr_mode pcm_64 pcm_map 0 1 end pcm_master \ > >> =20 > >> te_mode -p DRVR_DSS1_TE \ > >> -u 9 intr_mode pcm_64 pcm_map 0 1 end pcm_master > >> nt_mode -p DRVR_DSS1_NT >=20 > For clarification I add that of course I first give the isdnconfig > commands and then the cat's and isdndecode. >=20 > > This might have something to do with the default protocol selected. The= re > > has been some changes in this area. Can you check the manpage of > > isdndebug, and the protocol options available? You will need to set the > > default protocol before opening the device nodes. >=20 > The concept of a "default protocol" is not clear to me. Please can you > describe the difference between > isdnconfig -u 9 -p DRVR_DSS1_NT > and > isdndebug -u 9 -p DRVR_DSS1_NT ? > If I try the latter, the command "cat /dev/ihfc9.0" returns with "device > not configured". You need to run something like this first: isdndebug -u 9 -b 0 -p P_HDLC -b 1 P_HDLC -b 2 P_TRANSPARENT If it doesn't work, I will check later. A bit busy right now. =2D-HPS