From owner-freebsd-isdn@FreeBSD.ORG Fri May 13 11:34:50 2005 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 4D33716A4CE for ; Fri, 13 May 2005 11:34:50 +0000 (GMT) Received: from mail.turbocat.net (mail.turbocat.net [213.133.116.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6B8F43D41 for ; Fri, 13 May 2005 11:34:49 +0000 (GMT) (envelope-from dave@turbocat.de) Received: by mail.turbocat.net (Postfix, from userid 1002) id 78804422ECAC; Fri, 13 May 2005 13:34:46 +0200 (CEST) Received: from alice.turbocat.de (p54BCCE27.dip.t-dialin.net [84.188.206.39]) by mail.turbocat.net (Postfix) with ESMTP id 4D1B8422EC99 for ; Fri, 13 May 2005 13:34:45 +0200 (CEST) Received: from testhost (alice [10.1.0.1]) by alice.turbocat.de (Postfix) with ESMTP id EF9AF1EAE27C for ; Fri, 13 May 2005 13:34:45 +0200 (CEST) X-Mailer: TCMail 2.0 http://www.turbocat.de (NetBSD) From: David Wetzel Date: Fri, 13 May 2005 13:34:45 +0200 To: freebsd-isdn@freebsd.org X-Originating-IP: [62.245.84.166] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-TCMailFlags: 001 Message-Id: <20050513113445.EF9AF1EAE27C@alice.turbocat.de> Subject: answering calls 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, 13 May 2005 11:34:50 -0000 hi folks, I try to create a lib to wrap the i4b telephony stuff in a way that makes it easy to use from external programs. I do this as a first step to add i4b support to Asterisk. I do not intent to run the isdnd. Imagine there are N different ISDN cards in the system. Some may be Fritz with 2 channels some may have a PRI with 30 channels. If I understand the documentation right, all signaling and accept/reject control is made via /dev/isdn and the real voice data will flow via /dev/isdntel* On an incoming call, I get the stuct msg_connect_ind_t which contains controller and channel number. The driver's int number I seem to get via lookup_l4_driver() from rc_config.c. But how to get the driver_unit? How do I know which /dev/isdntel* to use? Can i4b find the right driver/unit based on the cdid? Thanks! dave --- _ _ _(_)(_)_ David Wetzel, Turbocat's Development, (_) __ (_) Buchhorster Strasse 23, D-16567 Muehlenbeck/Berlin, FRG, _/ \_ Fax +49 33056 82835 Phone +49 33056 82834 (______) http://www.turbocat.de/