PRI card configuration¶
Verifications¶
Verify that the correct module is configured in /etc/dahdi/modules
depending on the card you installed in your server.
If it wasn’t, do again the step Load the correct DAHDI modules
Warning
TE13x, TE23x, TE43x cards :
- these cards need a specific dahdi module configuration. See TE13x, TE23x, TE43x: E1/T1 selection paragraph,
- you MUST install the correct echo-canceller firmware to be able to use these cards. See Hardware Echo-cancellation paragraph.
Generate DAHDI configuration¶
Issue the command:
dahdi_genconf
Warning
it will erase all existing configuration in /etc/dahdi/system.conf
and /etc/asterisk/dahdi-channels.conf
files !
Configure¶
DAHDI system.conf configuration¶
First step is to check /etc/dahdi/system.conf
file:
- check the span numbering,
- if needed change the clock source,
- usually (at least in France) you should remove the
crc4
See detailed explanations of this file in the /etc/dahdi/system.conf section.
Below is an example for a typical french PRI line span:
# Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" CCS/HDB3/CRC4 RED
span=1,1,0,ccs,hdb3
# termtype: te
bchan=1-15,17-31
dchan=16
echocanceller=mg2,1-15,17-31
Asterisk dahdi-channels.conf configuration¶
Then you have to modify the /etc/asterisk/dahdi-channels.conf
file:
remove the unused lines like:
context = default group = 63
change the
context
lines if needed,the
signalling
should be one of:pri_net
pri_cpe
Below is an example for a typical french PRI line span:
; Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" CCS/HDB3/CRC4 RED
group = 0,11 ; belongs to group 0 and 11
context = from-extern ; incoming call to this span will be sent in 'from-extern' context
switchtype = euroisdn
signalling = pri_cpe ; use 'pri_cpe' signalling
channel => 1-15,17-31 ; the above configuration applies to channels 1 to 15 and 17 to 31
Next step¶
Now that you have configured your PRI card:
- you must check if you need to follow one of the Specific configuration sections below,
- then, if you have another type of card to configure, you can go back to the configure your card section,
- if you have configured all your card you have to configure the DAHDI interconnections in the web interface.
Specific configuration¶
Multiple PRI cards and sync cable¶
If you have several PRI cards in your server you should link them with a synchronization cable to share the exact same clock.
To do this, you need to:
- use the coding wheel on the Digium cards to give them an order of recognition in DAHDI/Asterisk (see Digium_telephony_cards_support),
- daisy-chain the cards with a sync cable (see Digium_telephony_cards_support),
- load the DAHDI module with the
timingcable=1
option.
Create /etc/modprobe.d/xivo-timingcable.conf
file and insert the line:
options DAHDI_MODULE_NAME timingcable=1
Where DAHDI_MODULE_NAME
is the DAHDI module name of your card (e.g. wct4xxp for a TE205P).