~ubuntu-branches/ubuntu/vivid/dahdi-tools/vivid

« back to all changes in this revision

Viewing changes to assigned-spans.conf.sample

  • Committer: Package Import Robot
  • Author(s): Stefan Bader
  • Date: 2014-12-10 15:23:10 UTC
  • mfrom: (2.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20141210152310-6qv78czvvxpye2v3
Tags: 1:2.10.0.1-1ubuntu1
* Merge from Debian. Remaining changes:
  - debian/control: Depend on (dahdi-dkms | dahdi-source) and gawk
* Dropped changes:
  - debian/dahdi.postinst: Upstream init script does not fail if no
    dahdi modules are present, so no use for the error handler in the
    postinst file.
  - debian/rules: For the same reason no need to set an error handler
    in the rules file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# /etc/dahdi/assigned-spans.conf:
 
3
#
 
4
# This file assigns span and channel numbers to dahdi devices
 
5
#
 
6
# Built as a table keyed by <id>:
 
7
#  <id>    <spanspec>....
 
8
#
 
9
# Where:
 
10
#  * The <id> field may be either:
 
11
#         hardware_id
 
12
#         @location
 
13
#         devpath (in sysfs)
 
14
#  * Shell-style globbing is allowed for the <id> field
 
15
#  * There may one or more of <spanspec>
 
16
#  * Each <spanspec> is composed as:
 
17
#    <local_spanno>:<assigned_spanno>:<base_channo>
 
18
#
 
19
# Examples:
 
20
 
 
21
# Astribank with two spans:
 
22
#    FXS * 8 channels + 4 digital inputs 2 digital outputs
 
23
#    FXO * 8 channels
 
24
#usb:QA-1               1:1:1
 
25
#usb:QA-1               2:2:15
 
26
 
 
27
# Same Astribank in one-liner
 
28
#usb:QA-1               1:1:1 2:2:15
 
29
 
 
30
# Astribank with 4*PRI spans and 3*FXS*8 spans
 
31
# Note that channels are NOT globally contigous
 
32
# each span get its own 50 numbers. Also, skip
 
33
# Channel number 250...
 
34
#usb:INT03165           1:1:1   # E1
 
35
#usb:INT03165           2:2:51  # E1
 
36
#usb:INT03165           3:3:151 # E1
 
37
#usb:INT03165           4:4:201 # E1
 
38
#usb:INT03165           5:5:301 # FXS * 8 channels
 
39
#usb:INT03165           6:6:351 # FXS * 8 channels
 
40
#usb:INT03165           7:7:401 # FXS * 8 channels
 
41
 
 
42
# Alternatively -- all in one-line
 
43
#usb:INT03165           1:1:1 2:2:51 3:3:151 4:4:201 5:5:301 6:6:351 7:7:401
 
44
 
 
45
# Astribank with 4*BRI without hardware_id :-(
 
46
# We use the location on the bus (ie: where it is physically
 
47
# located). Note the '@' prefix that indicate the location key.
 
48
#@usb-0000:00:1d.7-3    1:1:50
 
49
#@usb-0000:00:1d.7-3    2:2:100
 
50
#@usb-0000:00:1d.7-3    3:3:150
 
51
#@usb-0000:00:1d.7-3    4:4:200
 
52
 
 
53
# Same configuration with globbing:
 
54
#/sys/*/usb1/1-6/*      1:1:50
 
55
#/sys/*/usb1/1-6/*      2:2:100
 
56
#/sys/*/usb1/1-6/*      3:3:150
 
57
#/sys/*/usb1/1-6/*      4:4:200