Menu

dahdi_monitor

Eugene Blanchard

NAME
dahdi_monitor - checks the rx/tx levels of DAHDI channels

SYNOPSIS
dahdi_monitor channel number [-v] [-f FILE]

DESCRIPTION
dahdi_monitor monitors a DAHDI channel. It gives you a visual represen-
tation of the sound strengths and makes it easy to see if the received
or transmitted signals are too high or out of balance

OPTIONS
The first (mandatory) parameter is the number of the channel to moni-
tor.

   -v
          Display visual audio levels.

   -f FILE
          Write output to FILE

   Some extra, yet undocumented, options.

SEE ALSO
dahdi_tool(8), dahdi_cfg(8), asterisk(8).

AUTHOR
This manual page was written by Santiago Ruano Rincón <santiago@uni-
cauca.edu.co> for the Debian system (but may be used by others). Per-
mission 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.

Allows you to record audio from it.

Usage: dahdi_monitor <channel num=""> -v -m -o -p -l limit -f FILE -s FILE -r FILE1 -t FILE2 -F FILE -S FILE -R FILE1 -T FILE2 </channel>

example :- dahdi_monitor 1 -vv

note: extremly usefull, but otherwise not mentioned, that the raw format output is 8Khz 16bit signed. Use sox to convert to a wav. sox -r 8000 -s -w rx.raw rx.wav

Usage: dahdi_monitor <channel num=""> [-v[v]] [-m] [-o] [-l limit] [-f FILE | -s FILE | -r FILE1 -t FILE2] [-F FILE | -S FILE | -R FILE1 -T FILE2]
Options:
-v: Visual mode. Implies -m.
-vv: Visual/Verbose mode. Implies -m.
-l LIMIT: Stop after reading LIMIT bytes
-m: Separate rx/tx streams.
-o: Output audio via OSS. Note: Only 'normal' combined rx/tx streams are output via OSS.
-f FILE: Save combined rx/tx stream to mono FILE. Cannot be used with -m.
-r FILE: Save rx stream to FILE. Implies -m.
-t FILE: Save tx stream to FILE. Implies -m.
-s FILE: Save stereo rx/tx stream to FILE. Implies -m.
-F FILE: Save combined pre-echocanceled rx/tx stream to FILE. Cannot be used with -m.
-R FILE: Save pre-echocanceled rx stream to FILE. Implies -m.
-T FILE: Save pre-echocanceled tx stream to FILE. Implies -m.
-S FILE: Save pre-echocanceled stereo rx/tx stream to FILE. Implies -m.
Examples:
Save a stream to a file
dahdi_monitor 1 -f stream.raw
Visualize an rx/tx stream and save them to separate files.
dahdi_monitor 1 -v -r streamrx.raw -t streamtx.raw
Play a combined rx/tx stream via OSS and save it to a file
dahdi_monitor 1 -o -f stream.raw
Save a combined normal rx/tx stream and a combined 'preecho' rx/tx stream to files
dahdi_monitor 1 -f stream.raw -F streampreecho.raw
Save a normal rx/tx stream and a 'preecho' rx/tx stream to separate files
dahdi_monitor 1 -m -r streamrx.raw -t streamtx.raw -R streampreechorx.raw -T streampreechotx.raw</channel>


Related

Wiki: Linux Command Line Tools

MongoDB Logo MongoDB