lspci
sudo yum -y install pciutils
yum -y install kernel-devel kernel-headers
cd /usr/src/
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux/dahdi-linux-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/dahdi-tools/dahdi-tools-current.tar.gz
tar -zxvf dahdi-linux-current.tar.gz
tar -zxvf dahdi-tools-current.tar.gz
cd dahdi-linux-*
make
make install
cd /usr/src/dahdi-tools-*
./bootstrap.sh
./configure
If ./bootstrap.sh
generates the error "Generating the configure script ...
configure.ac:82: error: possibly undefined macro: AC_PROG_LIBTOOL"
means that you need to install the libtool
package and run the ./bootstrap.sh
command again
yum -y install libtool
libtoolize
aclocal
automake --add-missing
autoconf
After successfully executing ./bootstrap.sh
and ./configure
make all
make install
make install-config
If everything went without errors, we can now use a whole set of commands, such as: dahdi_cfg, dahdi_genconf, dahdi_hardware, dahdi_maint, dahdi_monitor, dahdi_registration, dahdi_scan, dahdi_span_assignments, dahdi_span_types, dahdi_speed, dahdi_test, dahdi_tools and dahdi_waitfor_span.
Then recompile Asterisk and chan_dahdi.so
cd /usr/src/asterisk-*
./configure --libdir=/usr/lib64 --with-pjproject-bundled --with-jansson-bundled
make menuselect
(there make sure under Channel Drivers – You have chan_dahdi checked)
make
make install
make samples
make config
Then: reboot