This document provides a step-by-step guide to set up an Asterisk server with a DAHDI-compatible PCI card. It covers the entire process from installing the PCI board to configuring drivers, firmware, and necessary software components, as well as troubleshooting tips.
sudo timedatectl set-timezone <your-timezone>
The recommended kernel is 5.4.x. Confirm it by running:
uname -r
sudo apt-get install linux-image-5.4.0-xx-generic linux-headers-5.4.0-xx-generic
uname -r
Install necessary packages for building DAHDI:
sudo apt-get install -y build-essential gcc g++ make libncurses5-dev libtool autoconf automake pkg-config m4 linux-headers-$(uname -r)
cd /usr/src
sudo wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
sudo tar -xvzf dahdi-linux-complete-current.tar.gz
cd /usr/src/dahdi-linux-complete-<version>/linux
sudo make
sudo make install
sudo modprobe dahdi
cd /usr/src/dahdi-linux-complete-<version>/tools
sudo autoreconf -i
sudo ./configure
sudo make
sudo make install
sudo make config
sudo dahdi_cfg -vv
sudo wget https://ftp.sangoma.com/linux/current_wanpipe/wanpipe-<latest>.tgz
sudo tar -xvzf wanpipe-<latest>.tgz
cd wanpipe-<latest>
sudo ./Setup install
Follow the prompts to configure WANPIPE for DAHDI.
Run the following to confirm hardware is detected:
sudo dahdi_hardware
Generate the configuration files:
sudo dahdi_genconf
Start the DAHDI service:
sudo /etc/init.d/dahdi start
Check the DAHDI configuration:
sudo dahdi_cfg -vv
sudo apt-get install linux-headers-$(uname -r)
dmesg | grep dahdi
cd /usr/src/dahdi-linux-complete-<version>/