dahdi_registration(8) - Linux man page

Name

dahdi_registration - Handle registration of Xorcom XPD modules in dahdi.

Synopsis

dahdi_registration [-s sortorder] [on|off]

Description

Without parameters, show all connected XPDs sorted by physical connector order. Each one is show to be unregistered (off), or registered to a specific dahdi span (the span number is shown).

All registerations/deregisterations are sorted by physical connector string.

Span registration should generally always succeed. Span unregistration may fail if channels from the span are in use by e.g. asterisk. In such a case you'll also see those channels as '(In use)' in the output of lsdahdi(8).

Parameters

off -- deregisters all XPD 's from dahdi.

on -- registers all XPD 's to dahdi.

Options

-s sort_order
The sort order to use.
If the option is not used, the sort order is taken from the environment variable XBUS_SORT and failing that: the hard-coded default of SORT_CONNECTOR .

The available sorting orders are documented in Dahdi::Xpp manual.

Sample Output

An example of the output of dahdi_registration for some registered Astribanks:
$ dahdi_registration -s type
XBUS-01         usb:0000153     usb-0000:00:10.4-2
        XBUS-01/XPD-00: on Span 1
        XBUS-01/XPD-01: on Span 2
XBUS-00         usb:0000157     usb-0000:00:10.4-4
        XBUS-00/XPD-00: on Span 3
        XBUS-00/XPD-01: on Span 4
        XBUS-00/XPD-02: on Span 5
        XBUS-00/XPD-03: on Span 6
        XBUS-00/XPD-04: on Span 7
        XBUS-00/XPD-05: on Span 8
        XBUS-00/XPD-06: on Span 9
        XBUS-00/XPD-07: on Span 10
XBUS-02                 usb-0000:00:10.4-1
        XBUS-02/XPD-00: on Span 11
        XBUS-02/XPD-10: on Span 12
# Sorted: type

Files

/proc/xpp/XBUS-nn/XPD-mm/dahdi_registration

Reading from this file shows if if the if the specific XPD is registered. Writing to it 0 or 1 registers / unregisters the device.

This should allow you to register / unregister a specific XPD rather than all of them.