How to configure the Digium PRI cards in Asterisk

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

/usr/src
wget https://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-2.10.0+2.10.0.tar.gz
make all && make install && make config
Go to : /etc/modprobe.d/dahdi.conf
And enter below line at last ,save and exit
options wcte13xp default_linemode=e1

Step 2:
Run the below command as root
# modprobe wcte13xp default_linemode=e1

#dahdi_genconf -v
#dahdi_cfg -v (make sure the ouput should show 31 channels)

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

Add this line to extensions.conf
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()

WhatsApp chat