dahdi-tools/pinned-spans.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

57 lines
1.7 KiB
Plaintext

#
# /etc/dahdi/pinned-spans.conf:
#
# This file assigns span and channel numbers to dahdi devices
#
# Built as a table keyed by <id>:
# <id> <spanspec>....
#
# Where:
# * The <id> field may be either:
# hardware_id
# @location
# * Shell-style globbing is allowed for the <id> field
# * There may one or more of <spanspec>
# * Each <spanspec> is composed as:
# <local_spanno>:<assigned_spanno>:<base_channo>
#
# Examples:
# Astribank with two spans:
# FXS * 8 channels + 4 digital inputs 2 digital outputs
# FXO * 8 channels
#usb:QA-1 1:1:1
#usb:QA-1 2:2:15
# Same Astribank in one-liner
#usb:QA-1 1:1:1 2:2:15
# Astribank with 4*PRI spans and 3*FXS*8 spans
# Note that channels are NOT globally contigous
# each span get its own 50 numbers. Also, skip
# Channel number 250...
#usb:INT03165 1:1:1 # E1
#usb:INT03165 2:2:51 # E1
#usb:INT03165 3:3:151 # E1
#usb:INT03165 4:4:201 # E1
#usb:INT03165 5:5:301 # FXS * 8 channels
#usb:INT03165 6:6:351 # FXS * 8 channels
#usb:INT03165 7:7:401 # FXS * 8 channels
# Alternatively -- all in one-line
#usb:INT03165 1:1:1 2:2:51 3:3:151 4:4:201 5:5:301 6:6:351 7:7:401
# Astribank with 4*BRI without hardware_id :-(
# We use the location on the bus (ie: where it is physically
# located). Note the '@' prefix that indicate the location key.
#@pci0000:00/0000:00:03.3/usb1/1-6/xbus-01/astribanks:xbus-01 1:1:50
#@pci0000:00/0000:00:03.3/usb1/1-6/xbus-01/astribanks:xbus-01 2:2:100
#@pci0000:00/0000:00:03.3/usb1/1-6/xbus-01/astribanks:xbus-01 3:3:150
#@pci0000:00/0000:00:03.3/usb1/1-6/xbus-01/astribanks:xbus-01 4:4:200
# Same configuration with globbing:
#@*/usb1/1-6/* 1:1:50
#@*/usb1/1-6/* 2:2:100
#@*/usb1/1-6/* 3:3:150
#@*/usb1/1-6/* 4:4:200