Install Dahdi

From Kolmisoft Wiki

Jump to: navigation, search


[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)


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

Unpack sources

tar xvfz dahdi-linux-current.tar.gz

[edit] Download DAHDI tools

cd /usr/src

Unpack sources

tar xvfz dahdi-tools-current.tar.gz

[edit] Build DAHDI linux

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

make install

[edit] Build DAHDI tools

cd /usr/src/dahdi-tools-

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

tar xvfz dahdi-linux-complete-
cd dahdi-linux-complete-
make all 
make install
make config

[edit] Recompile Asterisk for DAHDI support


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


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

Source [1]

Personal tools


Try M2