2011-09-09 20:04:34 +08:00
|
|
|
.TH "DAHDI_MONITOR" "8" "9 Sep 2011" "" ""
|
2010-08-18 21:49:24 +08:00
|
|
|
|
|
|
|
.SH NAME
|
2011-09-09 20:04:34 +08:00
|
|
|
dahdi_monitor \- checks the Rx/Tx levels of a DAHDI channels
|
2010-08-18 21:49:24 +08:00
|
|
|
.SH SYNOPSIS
|
|
|
|
|
2011-09-09 20:04:34 +08:00
|
|
|
.B dahdi_monitor \fInum\fB [\-v[v]]
|
|
|
|
.B dahdi_monitor \fInum\fB [\-o] [<\-f|\-F> \fIFILE\fB]
|
|
|
|
.B dahdi_monitor \fInum\fB [[<\-r|\-R> \fIFILE\fB]] [[<\-t|\-T> \fIFILE\fB]]
|
2010-08-18 21:49:24 +08:00
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
|
2011-09-09 20:04:34 +08:00
|
|
|
dahdi_monitor monitors a Dahdi channel. It can record the output to a
|
|
|
|
file, play it to the speaker, or visualize the audio levels on the
|
|
|
|
terminal.
|
|
|
|
|
|
|
|
Recorded audio files are by default raw signed linear PCM. If the file
|
|
|
|
name ends with ".wav", the recorded file will be a WAV file.
|
|
|
|
|
|
|
|
The visual display shows the current audio level at both the Rx
|
|
|
|
(audio Received by Asterisk) and
|
|
|
|
Tx (audio Transmitted by Asterisk)
|
|
|
|
|
|
|
|
To exit the program, press Ctrl-C.
|
2010-08-18 21:49:24 +08:00
|
|
|
|
|
|
|
.SH OPTIONS
|
|
|
|
The first (mandatory) parameter is the number of the channel
|
|
|
|
to monitor.
|
|
|
|
|
2011-09-09 20:04:34 +08:00
|
|
|
.B \-m
|
|
|
|
.RS
|
|
|
|
Multiple channels. Don't multiplex both Rx and Tx in a single channel.
|
|
|
|
Normally there's a different option that you need that implies it.
|
|
|
|
.RE
|
|
|
|
|
|
|
|
.B \-o
|
|
|
|
.RS
|
2014-01-28 02:27:09 +08:00
|
|
|
Plays the output to OSS (/dev/dsp). Requires \-m not to be used.
|
2011-09-09 20:04:34 +08:00
|
|
|
.RE
|
|
|
|
|
2010-08-18 21:49:24 +08:00
|
|
|
.B \-v
|
|
|
|
.RS
|
2011-09-09 20:04:34 +08:00
|
|
|
Display Visual audio levels. With two v-s, Verbose mode is enabled, that
|
|
|
|
shows the actual levels as numbers. Note that this requires a terminal
|
|
|
|
wider than 80 columns to be properly displayed.
|
|
|
|
|
2014-01-28 02:27:09 +08:00
|
|
|
Implies \-m.
|
2010-08-18 21:49:24 +08:00
|
|
|
.RE
|
|
|
|
|
|
|
|
.B \-f \fIFILE
|
|
|
|
.RS
|
2011-09-09 20:04:34 +08:00
|
|
|
Record the content of the channel (Tx + Rx) to a file.
|
|
|
|
.RE
|
|
|
|
|
|
|
|
.B \-F \fIFILE
|
|
|
|
.RS
|
|
|
|
Record the content of the channel (Tx + Rx) before the echo canceler
|
|
|
|
to a file.
|
|
|
|
.RE
|
|
|
|
|
|
|
|
.B \-r \fIFILE
|
|
|
|
.RS
|
|
|
|
Record the content of the Rx channel to a file.
|
|
|
|
|
2014-01-28 02:27:09 +08:00
|
|
|
Implies \-m.
|
2011-09-09 20:04:34 +08:00
|
|
|
.RE
|
|
|
|
|
|
|
|
.B \-R \fIFILE
|
|
|
|
.RS
|
|
|
|
Record the content of the R channel before the echo canceler to a file.
|
|
|
|
|
2014-01-28 02:27:09 +08:00
|
|
|
Implies \-m.
|
2011-09-09 20:04:34 +08:00
|
|
|
.RE
|
|
|
|
|
|
|
|
.B \-s \fIFILE
|
|
|
|
.RS
|
|
|
|
Record the content of the Tx and Rx of the channel to a file.
|
|
|
|
.RE
|
|
|
|
|
|
|
|
.B \-S \fIFILE
|
|
|
|
.RS
|
|
|
|
Records a stereo of both Tx and Rx of the channel before the echo
|
|
|
|
canceler to a file.
|
2010-08-18 21:49:24 +08:00
|
|
|
.RE
|
|
|
|
|
2011-09-09 20:04:34 +08:00
|
|
|
.B \-t \fIFILE
|
|
|
|
.RS
|
|
|
|
Record the content of the Tx channel to a file.
|
|
|
|
|
2014-01-28 02:27:09 +08:00
|
|
|
Implies \-m.
|
2011-09-09 20:04:34 +08:00
|
|
|
.RE
|
|
|
|
|
|
|
|
.B \-T \fIFILE
|
|
|
|
.RS
|
|
|
|
Record the content of the Tx channel before the echo canceler to a file.
|
|
|
|
|
2014-01-28 02:27:09 +08:00
|
|
|
Implies \-m.
|
2011-09-09 20:04:34 +08:00
|
|
|
.RE
|
|
|
|
|
|
|
|
.SH EXAMPLES
|
|
|
|
|
|
|
|
Visualize audio levels on DAHDI channel 2:
|
|
|
|
|
2014-01-28 02:27:09 +08:00
|
|
|
dahdi_monitor 2 \-v
|
2011-09-09 20:04:34 +08:00
|
|
|
|
|
|
|
|
|
|
|
Record channel 3 to a file:
|
|
|
|
|
2014-01-28 02:27:09 +08:00
|
|
|
dahdi_monitor 3 \-f output.raw
|
2011-09-09 20:04:34 +08:00
|
|
|
|
|
|
|
This will create a raw PCM file (signed-linear, 8kHz, mono, 16 bits per
|
|
|
|
sample). Both the Tx and Rx will be multiplexed in a single channel.
|
|
|
|
It can be converted to a WAV file using e.g.:
|
|
|
|
|
2014-01-28 02:27:09 +08:00
|
|
|
sox \-s \-c1 \-2 \-r8000 output.raw output.wav
|
2011-09-09 20:04:34 +08:00
|
|
|
|
|
|
|
|
|
|
|
Record Tx and Rx of channel 5 to separate files. This time directly to
|
|
|
|
WAV files:
|
|
|
|
|
2014-01-28 02:27:09 +08:00
|
|
|
dahdi_monitor 5 \-r output_rx.wav \-t output_tx.wav
|
2011-09-09 20:04:34 +08:00
|
|
|
|
|
|
|
|
|
|
|
Record channel 8 to a stereo file (Tx and Rx on its two channels):
|
|
|
|
|
2014-01-28 02:27:09 +08:00
|
|
|
dahdi_monitor 8 \-s output.raw
|
2011-09-09 20:04:34 +08:00
|
|
|
|
|
|
|
Converting it to a WAV file:
|
|
|
|
|
2014-01-28 02:27:09 +08:00
|
|
|
sox \-s \-c2 \-2 \-r8000 output.raw output.wav
|
2011-09-09 20:04:34 +08:00
|
|
|
|
|
|
|
|
2010-08-18 21:49:24 +08:00
|
|
|
|
|
|
|
.SH SEE ALSO
|
|
|
|
.PP
|
2011-09-09 20:04:34 +08:00
|
|
|
dahdi_tool(8), dahdi_cfg(8).
|
2010-08-18 21:49:24 +08:00
|
|
|
|
|
|
|
.SH AUTHOR
|
|
|
|
.PP
|
|
|
|
This manual page was written by Santiago Ruano Rinc\['o]n
|
|
|
|
<santiago@unicauca.edu.co> for
|
|
|
|
the Debian system (but may be used by others). Permission is
|
|
|
|
granted to copy, distribute and/or modify this document under
|
|
|
|
the terms of the GNU General Public License, Version 2 any
|
|
|
|
later version published by the Free Software Foundation.
|