f55a25590750f9db9703505177a4d3f9b9578f40
[dragonfly.git] / usr.sbin / i4b / isdntelctl / isdntelctl.8
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: isdntelctl.8,v 1.9 1999/12/13 22:11:55 hm Exp $
26 .\"
27 .\" $FreeBSD: src/usr.sbin/i4b/isdntelctl/isdntelctl.8,v 1.8.2.5 2003/03/11 21:13:49 trhodes Exp $
28 .\" $DragonFly: src/usr.sbin/i4b/isdntelctl/isdntelctl.8,v 1.2 2003/06/17 04:29:55 dillon Exp $
29 .\"
30 .\"     last edit-date: [Mon Dec 13 23:06:45 1999]
31 .\"
32 .Dd April 21, 1999
33 .Dt ISDNTELCTL 8
34 .Os
35 .Sh NAME
36 .Nm isdntelctl
37 .Nd control isdn4bsd telephone sound format conversion
38 .Sh SYNOPSIS
39 .Nm
40 .Op Fl c
41 .Op Fl g
42 .Op Fl u Ar unit
43 .Op Fl A
44 .Op Fl U
45 .Op Fl N
46 .Sh DESCRIPTION
47 The
48 .Nm
49 utility
50 is part of the isdn4bsd package and is used to configure the sound format
51 conversion facilities of the /dev/i4btel interfaces.
52 .Pp
53 The following options are available:
54 .Bl -tag -width Ds
55 .It Fl c
56 Clear the telephone input queue.
57 .It Fl g
58 Get the sound format currently in use.
59 .It Fl u
60 Set the /dev/i4btel unit number. The default value is zero to access
61 device /dev/i4btel0.
62 .It Fl A
63 Do A-law (ISDN line) -> u-law (userland) conversion.
64 .It Fl U
65 Do u-law (ISDN line) -> A-law (userland) conversion.
66 .It Fl N
67 Set sound conversion to do no format conversion.
68 .El
69 .Pp
70 The telephony data stream comes out of the line in a bit-reversed format,
71 so the
72 .Xr i4btel 4
73 driver does the bit-reversion process in any case.
74 .Pp
75 Additionally, the user can specify to do A-law to u-law, u-law to A-law
76 or no conversion at all in the i4btel driver by using the
77 .Nm
78 utility.
79 .Sh FILES
80 /dev/i4btel<n>
81 .Sh STANDARDS
82 A-Law and u-Law are specified in ITU Recommendation G.711.
83 .Sh EXAMPLES
84 The command:
85 .Bd -literal -offset indent
86 isdntelctl -g
87 .Ed
88 .Pp
89 displays the currently used sound format for device /dev/i4btel0.
90 .Sh SEE ALSO
91 .Xr g711conv 1 ,
92 .Xr i4btel 4 ,
93 .Xr isdnd.rc 5 ,
94 .Xr isdnd 8
95 .Sh AUTHORS
96 The
97 .Nm
98 utility and this manpage were written by
99 .An Hellmuth Michaelis Aq hm@kts.org .