1 .\" $NetBSD: isdntel.4,v 1.3 2003/04/06 18:20:09 wiz Exp $
3 .\" Copyright (c) 1997, 1999 Hellmuth Michaelis. All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 .\" $Id: isdntel.4,v 1.4 2004/10/04 19:12:52 rumble Exp $
30 .\" last edit-date: [Mon Dec 13 23:13:39 1999]
37 .Nd ISDN B-channel telephony interface driver
39 .Cd "pseudo-device isdntel" Ar count
43 driver provides an interface to the B-channel for telephony applications
44 and is currently used by the
46 for answering machine support. The driver is part of the isdn4bsd package.
48 The lower six bits of the driver's minor number are used to specify a
49 unit number, whereas the upper two bits specify a functionality.
51 Functionality zero is the usual telephony data stream i/o driver.
53 Functionality one is used to enable commands to dial out and hang up and
54 receive responses about the state of the dial out progress and status.
55 This commands may change in the future, for details see the file
56 .Pa /usr/include/netisdn/i4b_tel_ioctl.h
61 The telephony data stream comes out of the line in a bit-reversed format,
64 driver does the bit-reversion process in any case.
66 Additionally, the user can specify to do A-law to mu-law, mu-law to A-law
67 or no conversion at all in the
73 The driver is able to process several ioctl's:
75 .Bl -tag -width Ds -compact -offset indent
76 .It Ar I4B_TEL_GETAUDIOFMT
77 get currently used audio format conversion.
78 .It Ar I4B_TEL_SETAUDIOFMT
79 set currently used audio format conversion.
80 .It Ar I4B_TEL_EMPTYINPUTQUEUE
81 clear the input queue.
84 For the I4B_TEL_GETAUDIOFMT and I4B_TEL_SETAUDIOFMT, the following
85 parameters are available:
87 .Bl -tag -width Ds -compact -offset indent
89 do no A-law/mu-law audio format conversion. The conversion path looks like
92 USER \*[Lt]--\*[Gt] bitreversing \*[Lt]--\*[Gt] ISDN-line
95 set audio format conversion to do an audio conversion from A-law
96 (on the ISDN line) to mu-law (in the userland).
99 conversion path looks like this:
101 USER \*[Lt]-- mu-law/A-law \*[Lt]-- bitreversing \*[Lt]-- ISDN-line
105 conversion path looks like this:
107 USER --\*[Gt] mu-law/A-law --\*[Gt] bitreversing --\*[Gt] ISDN-line
110 set audio format conversion to do an audio conversion from mu-law
111 (on the ISDN line) to A-law (in the userland).
114 conversion path looks like this:
116 USER \*[Lt]-- A-law/mu-law \*[Lt]-- bitreversing \*[Lt]-- ISDN-line
120 conversion path looks like this:
122 USER --\*[Gt] A-law/mu-law --\*[Gt] bitreversing --\*[Gt] ISDN-line
131 A-law and mu-law are specified in ITU Recommendation G.711.
135 device driver and this man page were written by
136 .An Hellmuth Michaelis Aq hm@kts.org .