Difference between revisions of "Install Dahdi"
(Created page with '= What is DAHDI = DAHDI is the new name for 'Zaptel' as of May 19th 2008. More information can be found [http://www.voip-info.org/wiki/view/DAHDI here]') |
|||
(11 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
More information can be found [http://www.voip-info.org/wiki/view/DAHDI here] | More information can be found [http://www.voip-info.org/wiki/view/DAHDI here] | ||
= 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. | |||
= 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.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 | |||
= 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 | |||
= 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 [http://svn.ohnosec.org/svn/projects/allstar/astsrc-1.4.23-pre/trunk/asterisk/Zaptel-to-DAHDI.txt] |
Latest revision as of 08:31, 26 March 2015
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)
or
yum -y install kernel-PAE-devel
if PAE kernel is used on machine.
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.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
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
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]