From owner-freebsd-isdn@FreeBSD.ORG Tue May 4 00:12:22 2004 Return-Path: Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD5BB16A4CE for ; Tue, 4 May 2004 00:12:22 -0700 (PDT) Received: from im3.intermute.com (im3.intermute.com [209.113.159.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5644043D41 for ; Tue, 4 May 2004 00:12:22 -0700 (PDT) (envelope-from "") Received: from ([195.40.203.143]) by im3.intermute.com (Merak 5.9.4) with SMTP id BIE37370 for ; Tue, 04 May 2004 03:12:21 -0400 Date: Tue, 04 May 2004 03:12:21 -0400 From: AdSubtract Sales To: Message-Id: <816060810@im3.intermute.com> Subject: Re: Failure X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 May 2004 07:12:22 -0000 You are receiving this email because you replied to a non-monitored email address. If you need assistance with your product, please visit our support site at: http://www.intermute.com/support.html Here you may review our "Frequently Asked Questions" for immediate answers to your questions. If you do not find the answer(s) to your question you may complete the "Online Support Form" for personal assistance. From owner-freebsd-isdn@FreeBSD.ORG Thu May 6 09:35:54 2004 Return-Path: Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4D7916A4CE for ; Thu, 6 May 2004 09:35:54 -0700 (PDT) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD62943D5E for ; Thu, 6 May 2004 09:35:52 -0700 (PDT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (uucp@gwyn [127.0.0.1]) i46GZoOg030660 for ; Thu, 6 May 2004 18:35:50 +0200 Received: from saturn.kn-bremen.de (uucp@localhost)i46GZoPA030658 for freebsd-isdn@freebsd.org; Thu, 6 May 2004 18:35:50 +0200 Received: (from nox@localhost) by saturn.kn-bremen.de (8.11.4/8.8.5) id i46GdUM40243 for freebsd-isdn@freebsd.org; Thu, 6 May 2004 18:39:30 +0200 (CEST) From: Juergen Lock Date: Thu, 6 May 2004 18:39:23 +0200 To: freebsd-isdn@freebsd.org Message-ID: <20040506183919.A39741@saturn.kn-bremen.de> References: <20040427183104.A72883@saturn.kn-bremen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <20040427183104.A72883@saturn.kn-bremen.de> Subject: Re: default MSN X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2004 16:35:55 -0000 On Tue, Apr 27, 2004 at 06:31:05PM +0200, nox wrote: > Hi! I'm having trouble dialing out on a pbx where the msn is unknown > (userland ppp, FreeBSD 5.2.1), as expected (isdntrace) i get > > Q931: pd=Q.931/I.451, cr=0x2a (from destination), message=RELEASE COMPLETE: > [cause: 1: Unallocated (unassigned) number (Q.850) > (location=private network serving local user, std=CCITT)] > > An existing Win98 box dials out on the same line without problems but > a quick look on it didnt reveal a msn (avm fritzcard, no msn setting > in the menus...) > > On the previous installation (office has moved) suse linux 8.1 > was able to dial out with a `msn' of 0 (1&1 usb device using a patched > fritz x usb driver called fxusb_CZ), but trying that with i4b > (passive isa avm a1) doesnt work with the above result. Now the > question for the isdn gurus: is this (accepting 0 as meaning > `use default msn') a feature of the pbx (which may have changed > with the move) or of linux' isdn stack... [Answering myself, for the archives:] I since looked at the linux source and found it does indeed special-case the 0 as msn in the kernel when dialing out: it simply doesnt send a msn in that case. Looking at i4b's i4b_l3_tx_setup() i see it already has a check for the source msn being empty, in which case it doesnt send one (IEI_CALLINGPN), that code path was just never taken because isdnd insists on getting a source msn configured (local-phone-dialout). So, i special-cased the 0 as in linux, --- /usr/src/sys/i4b/layer3/i4b_l2if.c.orig Wed Jun 11 01:59:33 2003 +++ /usr/src/sys/i4b/layer3/i4b_l2if.c Wed Apr 28 19:57:27 2004 @@ -423,6 +423,13 @@ int dslen = strlen(cd->dst_subaddr); int klen = strlen(cd->keypad); +#if 1 + /* src msn "0" -> don't send one (tells other end to use default) */ + if (!strcmp(cd->src_telno, "0")) + slen = 0; + printf("i4b_l3_tx_setup: src_telno = \"%s\", slen = %d\n", + cd->src_telno, slen); +#endif /* * there is one additional octet if cd->bprot == BPROT_NONE * NOTE: the selection of a bearer capability by a B L1 and, now i can indeed dial out! I'll leave it to others to decide if this is the way it should be done (capi then still needs to be patched similarly) or if isdnd should be changed instead to simply accept no local-phone-dialout configured... At least this should help the next person trying to dial out without knowing what to put in for the local msn. Greetings, Juergen From owner-freebsd-isdn@FreeBSD.ORG Thu May 6 10:48:44 2004 Return-Path: Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36A3F16A4CE for ; Thu, 6 May 2004 10:48:44 -0700 (PDT) Received: from gw02.mail.saunalahti.fi (gw02.mail.saunalahti.fi [195.197.172.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3ED3043D5C for ; Thu, 6 May 2004 10:48:43 -0700 (PDT) (envelope-from jml@cubical.fi) Received: from snafu.koti2.net (62-142-249-176.pp.jippii.fi [62.142.249.176]) by gw02.mail.saunalahti.fi (Postfix) with ESMTP id 8FDF1F38AA6; Thu, 6 May 2004 20:48:41 +0300 (EEST) Received: (from root@localhost) by snafu.koti2.net (8.12.9p2/8.12.9) id i46HmcQE041543; Thu, 6 May 2004 20:48:38 +0300 (EEST) (envelope-from jml@cubical.fi) Received: from [192.168.2.252] (wazoo.koti2.net [192.168.2.252]) i46HmVnB041531; Thu, 6 May 2004 20:48:32 +0300 (EEST) (envelope-from jml@cubical.fi) In-Reply-To: <20040506183919.A39741@saturn.kn-bremen.de> References: <20040427183104.A72883@saturn.kn-bremen.de> <20040506183919.A39741@saturn.kn-bremen.de> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-2-331886690" Message-Id: From: Juha-Matti Liukkonen Date: Thu, 6 May 2004 20:49:45 +0300 To: Juergen Lock Content-Transfer-Encoding: 7bit X-Pgp-Agent: GPGMail d36 X-Mailer: Apple Mail (2.613) X-Virus-Scanned: by AMaViS perl-11 X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: freebsd-isdn@freebsd.org Subject: Re: default MSN X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2004 17:48:44 -0000 --Apple-Mail-2-331886690 Content-Type: multipart/signed; micalg=sha1; boundary=Apple-Mail-1-331886672; protocol="application/pkcs7-signature" --Apple-Mail-1-331886672 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Hi, giving MSN 0 via local-phone-dialout makes at least the AVM CAPI adapters (B1 BRI, T1 PRI) default properly when CONNECT_REQ is sent (the callee sees the base number of the interface's number space with PRI, or the primary number with BRI). This behaviour is _not_ defined in the CAPI 2.0 specification, though (Calling Party Number struct, p.81, and CONNECT_REQ, p.27, in COMMON-ISDN-API Version 2.0, Part I, 4th Edition), and may thus be only an AVM feature. Definitely worth a check if/when other manufacturers' CAPI adapters become supported. Br, Jussi On May 6, 2004, at 19:39, Juergen Lock wrote: > I'll leave it to others to decide if this is the way it > should be done (capi then still needs to be patched similarly) > or if isdnd should be changed instead to simply accept no > local-phone-dialout configured... At least this should help > the next person trying to dial out without knowing what to > put in for the local msn. > -- Juha-Matti Liukkonen, Cubical Solutions Ltd Phone: +358(0)405280142 Email: jml@cubical.fi --Apple-Mail-1-331886672-- --Apple-Mail-2-331886690 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFAmnq5KDUn3bh7M9gRAosUAJ9x79lj7gnxLm4DIUCQDb0U0zN4ZACgyGPt WIM0F/vUXkpfXp3OVUhP/E0= =7SuZ -----END PGP SIGNATURE----- --Apple-Mail-2-331886690-- From owner-freebsd-isdn@FreeBSD.ORG Fri May 7 13:22:43 2004 Return-Path: Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E6A816A4CE for ; Fri, 7 May 2004 13:22:43 -0700 (PDT) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9950E43D2F for ; Fri, 7 May 2004 13:22:40 -0700 (PDT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (uucp@gwyn [127.0.0.1]) i47KMTOg019829; Fri, 7 May 2004 22:22:29 +0200 Received: from saturn.kn-bremen.de (uucp@localhost)i47KMTbE019827; Fri, 7 May 2004 22:22:29 +0200 Received: (from nox@localhost) by saturn.kn-bremen.de (8.11.4/8.8.5) id i47KUKT74263; Fri, 7 May 2004 22:30:20 +0200 (CEST) From: Juergen Lock Date: Fri, 7 May 2004 22:30:19 +0200 To: Juha-Matti Liukkonen Message-ID: <20040507223018.A73746@saturn.kn-bremen.de> References: <20040427183104.A72883@saturn.kn-bremen.de> <20040506183919.A39741@saturn.kn-bremen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: cc: freebsd-isdn@freebsd.org Subject: Re: default MSN X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 May 2004 20:22:43 -0000 On Thu, May 06, 2004 at 08:49:45PM +0300, Juha-Matti Liukkonen wrote: > Hi, > > giving MSN 0 via local-phone-dialout makes at least the AVM CAPI > adapters (B1 BRI, T1 PRI) default properly when CONNECT_REQ is sent > (the callee sees the base number of the interface's number space with > PRI, or the primary number with BRI). > Ahaa! So capi already does it, this i didn't know. > This behaviour is _not_ defined in the CAPI 2.0 specification, though > (Calling Party Number struct, p.81, and CONNECT_REQ, p.27, in > COMMON-ISDN-API Version 2.0, Part I, 4th Edition), and may thus be only > an AVM feature. Definitely worth a check if/when other manufacturers' > CAPI adapters become supported. > I guess it comes from Linux, there the passive drivers (hisax) do this too (which is where i looked). Does the capi spec require a Calling Party Number be sent, or can it also be empty? > Br, > Jussi Greetings, Juergen From owner-freebsd-isdn@FreeBSD.ORG Fri May 7 16:40:13 2004 Return-Path: Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5790216A4CE for ; Fri, 7 May 2004 16:40:13 -0700 (PDT) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2655D43D3F for ; Fri, 7 May 2004 16:40:12 -0700 (PDT) (envelope-from jml@cubical.fi) Received: from snafu.koti2.net (62-142-249-176.pp.jippii.fi [62.142.249.176]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id A47151141B10; Sat, 8 May 2004 02:40:10 +0300 (EEST) Received: (from root@localhost) by snafu.koti2.net (8.12.9p2/8.12.9) id i47Ne9aA044229; Sat, 8 May 2004 02:40:09 +0300 (EEST) (envelope-from jml@cubical.fi) Received: from [192.168.2.252] (wazoo.koti2.net [192.168.2.252]) i47Ne6nB044221; Sat, 8 May 2004 02:40:06 +0300 (EEST) (envelope-from jml@cubical.fi) In-Reply-To: <20040507223018.A73746@saturn.kn-bremen.de> References: <20040427183104.A72883@saturn.kn-bremen.de> <20040506183919.A39741@saturn.kn-bremen.de> <20040507223018.A73746@saturn.kn-bremen.de> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <09D542F1-A080-11D8-9BFB-000393BE8F02@cubical.fi> Content-Transfer-Encoding: 7bit From: Juha-Matti Liukkonen Date: Sat, 8 May 2004 02:41:18 +0300 To: Juergen Lock X-Pgp-Agent: GPGMail d36 X-Mailer: Apple Mail (2.613) X-Virus-Scanned: by AMaViS perl-11 cc: freebsd-isdn@freebsd.org Subject: Re: default MSN X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 May 2004 23:40:13 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On May 7, 2004, at 23:30, Juergen Lock wrote: >> This behaviour is _not_ defined in the CAPI 2.0 specification, though >> (Calling Party Number struct, p.81, and CONNECT_REQ, p.27, in >> COMMON-ISDN-API Version 2.0, Part I, 4th Edition), and may thus be >> only >> an AVM feature. Definitely worth a check if/when other manufacturers' >> CAPI adapters become supported. >> > I guess it comes from Linux, there the passive drivers (hisax) > do this too (which is where i looked). Actually, for i4b, it comes from the keyboard of the undersigned - we needed a mechanism to ship boxes so that the out-of-the-box default configuration would work anywhere as shipped. And this turned out to work, so there it is :-) I did need to fish out some AVM hardware initialization parameters from the linux drivers, though, as the available AVM programming documentation was somewhat lacking in places, and AVM recommended their linux driver as reference material. You can see some of the linux-derived register access horrors still lurking in the iavc (Isdn AVm Chipset/Controller, the CAPI link layer driver for the AVMs) header files... > Does the capi spec require a Calling Party Number be sent, or can > it also be empty? It can also be encoded as an empty structure. It was just more convenient to use "0" as the default local number in isdnd configuration and handle it like any other number in isdnd and the driver. Br, Jussi - -- Juha-Matti Liukkonen, Cubical Solutions Ltd Phone: +358(0)405280142 Email: jml@cubical.fi -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFAnB6fKDUn3bh7M9gRAguvAKC555pzeA0Oi53tgSKal7qa6Zp9rACfR4LC aA8Lz1pTiOnr00iC4+fedK4= =/oeO -----END PGP SIGNATURE-----