dahdi-tools/spantype.conf
Oron Peled 79fff3e278 basic user-space for pinned-spans
handle_device is the basic script intended to be called from udev.

It will call span_types on the span to apply optional
/etc/dahdi/spantype.conf onfiguration settings that need to be applied
before assignment (currently "pri" port types: E1/T1/J1).

Next it assigns span numbers to spans: if configured in
/etc/dahdi/pinned-spans.conf - use those settings. If not: by the order
of loading.

span_types and span_assignments can also be used to report the settings
they are used to configure.

Signed-off-by: Oron Peled <oron.peled@xorcom.com>
Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
Signed-off-by: Russ Meyerriecks <rmeyerriecks@digium.com>
2013-05-24 16:58:15 -05:00

28 lines
832 B
Plaintext

#
# /etc/dahdi/spantype.conf: Set E1/T1/J1 per-device
#
# Built as a table of two columns:
# <id> <local_spanno>:<type>
#
# Where:
# * The <id> field may be either:
# hardware_id
# @location
# * The <local_spanno> is the relative span number
# in the device (starting from 1)
# In this filed globbing rules apply. E.g:
# - * are all the spans in this device
# - [12] are the first two spans in this device
# * The <type> may be E1, T1 or J1
#
# Examples:
# Set the first two spans of a specific Astribank to T1
#usb:000156 [12]:T1
# Set all spans of another Astribank to T1
#usb:INT03165 *:E1
# Set the first two spans of an Astribank to T1. The
# Astribanks is specified by its location instead of hardware_id
#@pci0000:00/0000:00:03.3/usb1/1-5/xbus-01/astribanks:xbus-01 [12]:T1