Install Dahdi

From Kolmisoft Wiki
Jump to navigationJump to search

What is DAHDI

DAHDI is the new name for 'Zaptel' as of May 19th 2008.

More information can be found here

Install your kernel devel package

yum -y install kernel-devel-$(uname -r)

Download DAHDI

This manual assumes that you already have MOR billing installed!

cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux/dahdi-linux-current.tar.gz

Unpack sources

tar xvfz dahdi-linux-current.tar.gz

Download DAHDI tools

cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/dahdi-tools/dahdi-tools-current.tar.gz

Unpack sources

tar xvfz dahdi-tools-current.tar.gz

Build DAHDI linux

cd /usr/src/dahdi-linux-2.5.0.1
make clean

make 
make install

Build DAHDI tools

cd /usr/src/dahdi-tools-2.5.0.1

./configure
make
make install
make config

Alternative setup

Download the complete Dahdi package which includes both the DAHDI module and tools. If you need to influence the installation

of both the DAHDI linux and tools use above steps

wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-2.5.0.1+2.5.0.1.tar.gz
tar xvfz dahdi-linux-complete-2.5.0.1+2.5.0.1.tar.gz
cd dahdi-linux-complete-2.5.0.1
make all 
make install
make config

Recompile Asterisk for DAHDI support

cd /usr/src/ASTERISKLOCATIONFOLDER
./configure

make
make menuconfig

Go to "Channel Drivers" and check "chan_dahdi".

make install
make config