Hosted Vicidial server starts from $39 Contact Us Buy Now!

Digium cards Asterisk vicidial

Estimated read time: 3 min

  How to configure the Digium PRI cards in Asterisk or vicidial or Goautodial or vicidialnow or Freepbx

digium card asterisk


Below are the list of digium cards to which you need to follow this blog

1. TE 121, TE 101
2. TE 205, TE 210, TE 207 ,TE212
3. TE 405, TE 407, TE 410, TE412

For the latest cards like  TE 13X, TE23X , TE43X , TE 82X follow below links
TE 13X  ClickHere
TE 23X7 TE43X  ClickHere
TE 82X ClickHere

****************************
If you are using the precompiled iso of asteirsk software like ( trixbox , elastix , pbxinaflash , goautodial , vicibox,) then the Dhadi driver will be by default installed ,
If not follow the below link to install the dahdi driver
ClickHere
****************************

****************************
Step 1: E1/T1 mode
****************************
First you need to check whether card is in E1 or T1 mode. Take card outside and check for the E1/T1 changeover jumper in the card, if your PRI line is E1 then you need close the jumper , if T1 then it should be open. then insert the card into the server.

****************************
Step 2: Card detected by server
****************************
Make sure card is detected by server , type the following command in Linux shell
lspci

you should get the below output if the card is detected

0e:08.0 Ethernet controller: Digium, Inc. Wildcard TE121 single-span T1/E1/J1 card (PCI-Express) (rev 11) 

If not detected try in another slots 

****************************
Step 3: configuring the card
****************************
Once the card is detected type the below commands to autoconfigure the card

dahdi_genconf -v

the above command will show the below results

Default parameters from /etc/dahdi/genconf_parameters
Generating /etc/dahdi/system.conf 
Generating /etc/asterisk/dahdi-channels.conf

****************************
Step 4: enabling the channels 
****************************
you need to enable the dahdi-channels.conf in asterisk conf files.
open the file  /etc/asterisk/chan_dahdi.conf  using vi editor as shown below

vi /etc/asterisk/chan_dahdi.conf

go to last line  and press o  and then add the below line

#include dahdi-channels.conf

save it and exit  ie: :wq

****************************
Step 5:  Dahdi driver reloading
****************************
Run the below command in asterisk cli
to go to Asterisk cli type the below command
asterisk -vvvvvvr

and then type the blow commands in asterisk cli
module unload chan_dahdi.so
module load chan_dahdi.so

****************************
Step 6; config confirmation
****************************
To make sure all the configuration is perfect ,type the below command

type  dahdi_cfg -vv  in linux console

it should display below output
[root@localhost~]# dahdi_cfg -vvvv 
DAHDI Tools Version - 2.4.1 
DAHDI Version: 2.4.1.2 
Echo Canceller(s): MG2 
Configuration 
====================== 
SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) 
31 channels to configure. 
Channel 01: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 01) 
Channel 02: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 02) 
Channel 03: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 03) ...........................................................................................................
 Channel 30: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 30) 
Channel 31: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 31)

****************************
Step 6-a : card and line status
****************************
type the below command in asterisk cli to check the card and pri line status

dahdi show status
dahdi show channels
pri show spans

****************************
Step 7: Dialplan to dial via PRI
****************************
If you are using Vicidial or Goautodial use the below dialplan to dial via PRI

exten => _9X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9X.,2,Dial(DAHDI/g0/${EXTEN:1},,Tto)
exten => _9X.,3,Hangup()

If your using Freepbx/ elastix/ piaf/ asterisknow

Create a Dahdi trunk,  with channel name as  g0, and then create outbound routes

If your using Plain asterisk you can use the below dialplan

exten => _9X.,1,Dial(DAHDI/g0/${EXTEN:1})
exten => _9X.,2,Hangup

****************************
Troubleshooting
****************************
  • if you have CRC issue then enable or disable the crc from the below file
           vi /etc/dahdi/system.conf
           just remove  ,crc4   and save and then reload the asterisk
  • Make sure you have proper cable check the below link for the cable patching
           click here

1 comment

  1. second ago
    How to configure the Digium PRI cards in Asterisk or vicidial or Goautodial or vicidialnow or Freepbx
Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.