1DAHDI_MONITOR(8) DAHDI_MONITOR(8)
2
3
4
6 dahdi_monitor - checks the Rx/Tx levels of a DAHDI channels
7
9 dahdi_monitor num [-v[v]] dahdi_monitor num [-o] [<-f|-F> FILE]
10 dahdi_monitor num [[<-r|-R> FILE]] [[<-t|-T> FILE]]
11
12
14 dahdi_monitor monitors a Dahdi channel. It can record the output to a
15 file, play it to the speaker, or visualize the audio levels on the ter‐
16 minal.
17
18 Recorded audio files are by default raw signed linear PCM. If the file
19 name ends with ".wav", the recorded file will be a WAV file.
20
21 The visual display shows the current audio level at both the Rx (audio
22 Received by Asterisk) and Tx (audio Transmitted by Asterisk)
23
24 To exit the program, press Ctrl-C.
25
26
28 The first (mandatory) parameter is the number of the channel to moni‐
29 tor.
30
31 -m
32 Multiple channels. Don't multiplex both Rx and Tx in a single
33 channel. Normally there's a different option that you need that
34 implies it.
35
36 -o
37 Plays the output to OSS (/dev/dsp). Requires -m not to be used.
38
39 -v
40 Display Visual audio levels. With two v-s, Verbose mode is
41 enabled, that shows the actual levels as numbers. Note that this
42 requires a terminal wider than 80 columns to be properly dis‐
43 played.
44
45 Implies -m.
46
47 -f FILE
48 Record the content of the channel (Tx + Rx) to a file.
49
50 -F FILE
51 Record the content of the channel (Tx + Rx) before the echo can‐
52 celer to a file.
53
54 -r FILE
55 Record the content of the Rx channel to a file.
56
57 Implies -m.
58
59 -R FILE
60 Record the content of the R channel before the echo canceler to
61 a file.
62
63 Implies -m.
64
65 -s FILE
66 Record the content of the Tx and Rx of the channel to a file.
67
68 -S FILE
69 Records a stereo of both Tx and Rx of the channel before the
70 echo canceler to a file.
71
72 -t FILE
73 Record the content of the Tx channel to a file.
74
75 Implies -m.
76
77 -T FILE
78 Record the content of the Tx channel before the echo canceler to
79 a file.
80
81 Implies -m.
82
83
85 Visualize audio levels on DAHDI channel 2:
86
87 dahdi_monitor 2 -v
88
89
90 Record channel 3 to a file:
91
92 dahdi_monitor 3 -f output.raw
93
94 This will create a raw PCM file (signed-linear, 8kHz, mono, 16 bits per
95 sample). Both the Tx and Rx will be multiplexed in a single channel.
96 It can be converted to a WAV file using e.g.:
97
98 sox -s -c1 -2 -r8000 output.raw output.wav
99
100
101 Record Tx and Rx of channel 5 to separate files. This time directly to
102 WAV files:
103
104 dahdi_monitor 5 -r output_rx.wav -t output_tx.wav
105
106
107 Record channel 8 to a stereo file (Tx and Rx on its two channels):
108
109 dahdi_monitor 8 -s output.raw
110
111 Converting it to a WAV file:
112
113 sox -s -c2 -2 -r8000 output.raw output.wav
114
115
116
117
119 dahdi_tool(8), dahdi_cfg(8).
120
121
123 This manual page was written by Santiago Ruano Rincón <santiago@uni‐
124 cauca.edu.co> for the Debian system (but may be used by others). Per‐
125 mission is granted to copy, distribute and/or modify this document
126 under the terms of the GNU General Public License, Version 2 any later
127 version published by the Free Software Foundation.
128
129
130
131 9 Sep 2011 DAHDI_MONITOR(8)