Install Dahdi

From Kolmisoft Wiki

Jump to: navigation, search

Contents

[edit] What is DAHDI

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

More information can be found here

[edit] Install your kernel devel package

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

or

yum -y install kernel-PAE-devel

if PAE kernel is used on machine.

[edit] 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

[edit] 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

[edit] Build DAHDI linux

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

make 
make install

[edit] Build DAHDI tools

cd /usr/src/dahdi-tools-2.5.0.1

./configure
make
make install
make config

[edit] 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.6.1+2.6.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

[edit] Recompile Asterisk for DAHDI support

cd /usr/src/ASTERISKLOCATIONFOLDER
./configure

make
make menuconfig

Go to "Channel Drivers" and make sure that "chan_dahdi" is checked.

make install
make config

[edit] How to use Zap instead of DAHDI

As ZAPTEL is now not used in Asterisk, systems that are still using ZAP channels can be configured to use Dahdi.

Edit /etc/asterisk/asterisk.conf file and add this line:

dahdichanname = no

Adding this entry solves a few issues:

All CLI commands that begin with 'zap' are now available as 'dahdi' commands as well; the 'zap' variants will report that they are deprecated the first time you use each one in an Asterisk instance, but they will otherwise operate just as they did in previous versions

Channel configurations will be read from

/etc/asterisk/zapata.conf

So if you use "dahdichanname = no" - make sure to enter channel configuration in that file.

Source [1]

Personal tools

Try MOR

Try M2