MFC r1.12 (HEAD):
[dragonfly.git] / usr.sbin / i4b / man / i4btel.4
blobe62f2f213611229e970c3fe8cd93c0d8c75a5541
1 .\"
2 .\" Copyright (c) 1997, 1999 Hellmuth Michaelis. All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\"
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 .\" SUCH DAMAGE.
24 .\"
25 .\"     $Id: i4btel.4,v 1.9 1999/12/13 22:11:55 hm Exp $
26 .\"
27 .\" $FreeBSD: src/usr.sbin/i4b/man/i4btel.4,v 1.8.2.6 2003/03/13 03:10:59 trhodes Exp $
28 .\" $DragonFly: src/usr.sbin/i4b/man/i4btel.4,v 1.7 2007/08/08 01:43:37 swildner Exp $
29 .\"
30 .\"     last edit-date: [Mon Dec 13 23:13:39 1999]
31 .\"
32 .Dd April 21, 1999
33 .Dt I4BTEL 4
34 .Os
35 .Sh NAME
36 .Nm i4btel
37 .Nd isdn4bsd ISDN B-channel telephony interface driver
38 .Sh SYNOPSIS
39 .Cd pseudo-device \&"i4btel\&" Op count
40 .Sh DESCRIPTION
41 The
42 .Nm
43 driver provides an interface to the B-channel for telephony applications
44 and is currently used by the
45 .Xr isdnd 8
46 for answering machine support. The driver is part of the isdn4bsd package.
47 .Pp
48 The lower six bits of the drivers's minor number is used to specify a
49 unit number, whereas the upper two bits specify a functionality.
50 .Pp
51 Functionality zero is the usual telephony data stream i/o driver.
52 .Pp
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 .In i4b_machine/i4b_tel_ioctl.h
57 and the
58 .Xr isdnphone 8
59 utility.
60 .Pp
61 The telephony data stream comes out of the line in a bit-reversed format,
62 so the
63 .Nm
64 driver does the bit-reversion process in any case.
65 .Pp
66 Additionally, the user can specify to do A-law to u-law, u-law to A-law
67 or no conversion at all in the i4btel driver by using the
68 .Xr isdntelctl 8
69 utility.
70 .Pp
71 The driver is able to process several ioctl's:
72 .Pp
73 .Bl -tag -width Ds -compact -offset indent
74 .It Ar I4B_TEL_GETAUDIOFMT
75 get currently used audio format conversion.
76 .It Ar I4B_TEL_SETAUDIOFMT
77 set currently used audio format conversion.
78 .It Ar I4B_TEL_EMPTYINPUTQUEUE
79 clear the input queue.
80 .El
81 .Pp
82 For the I4B_TEL_GETAUDIOFMT and I4B_TEL_SETAUDIOFMT, the following
83 parameters are available:
84 .Pp
85 .Bl -tag -width Ds -compact -offset indent
86 .It Ar CVT_NONE
87 do no A-law/u-law audio format conversion.
88 The conversion path looks like this:
89 .Pp
90 USER <--> bitreversing <--> ISDN-line
91 .Pp
92 .It Ar CVT_ALAW2ULAW
93 set set audio format conversion to do an audio conversion from A-law
94 (on the ISDN line) to u-law (in the userland).
95 The
96 .Xr read 2
97 conversion path looks like this:
98 .Pp
99 USER <-- u-law/A-law <-- bitreversing <-- ISDN-line
101 and the
102 .Xr write 2
103 conversion path looks like this:
105 USER --> u-law/A-law --> bitreversing --> ISDN-line
107 .It Ar CVT_ULAW2ALAW
108 set set audio format conversion to do an audio conversion from u-law
109 (on the ISDN line) to A-law (in the userland).
111 .Xr read 2
112 conversion path looks like this:
114 USER <-- A-law/u-law <-- bitreversing <-- ISDN-line
116 and the
117 .Xr write 2
118 conversion path looks like this:
120 USER --> A-law/u-law --> bitreversing --> ISDN-line
122 .Sh SEE ALSO
123 .Xr g711conv 1 ,
124 .Xr isdnd.rc 5 ,
125 .Xr isdnd 8 ,
126 .Xr isdnphone 8 ,
127 .Xr isdntelctl 8
128 .Sh STANDARDS
129 A-Law and u-Law are specified in ITU Recommendation G.711.
130 .Sh AUTHORS
133 device driver and this manpage were written by
134 .An Hellmuth Michaelis Aq hm@FreeBSD.org .