dahdi_scan (8) Linux Manual Page
dahdi_scan — Print Configuration of DAHDI Spans
Synopsis
dahdi_scan [spans]
Description
dahdi_scan prints information about DAHDI spans in the system. For analog spans it also provides a list of channels. By default it prints information about all the spans in the system. However if parameters are provided, they will be considered to be a list of span numbers and information will be printed for them. Output is printed to the standard output. The format is that of an Asterisk configuration file (similar to a "ini" configuration file), where the name of the section is the number of the span. Note that the specifically for analog spans some keys may appear more than once, and hence you can not use a parser for an "ini" format and assume you have a dictionary.
Examples
Printing information for spans 1, 2 and 4:
[1]
active=yes
alarms=RED
description=T2XXP (PCI) Card 0 Span 1
name=TE2/0/1
manufacturer=Digium
devicetype=Wildcard TE205P (4th Gen)
location=Board ID Switch 0
basechan=1
totchans=24
irq=193
type=digital-T1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI
framing_opts=ESF,D4
coding=B8ZS
framing=ESF
The "type" field may contain: "analog", "digital-T1", "digital-E1", "digital-J1" or "digital-BRI".
Files
Requires read access to /dev/zap/ctl .
See Also
Bugs
The program still does not do everything described in the man page. It also assumes that spans don’t skip channel numbers, and that their channel numbers are "running". This is anyway almost always the case. And always the case in a normal boot process.
Author
This manual page was written by Tzafrir Cohen <tzafrir.cohen [at] xorcom.com> 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.
