# Asterisk Project : Building and Installing DAHDI

Added by malcolmd , edited by mdavenport on Feb 20, 2013

Let's install DAHDI! On Linux, we will use the DAHDI-linux-complete tarball, which contains both the DAHDI Linux drivers as well as the DAHDI tools. Again, we're assuming that you've untarred the tarball in the /usr/local/src directory, and that you'll replace X and Y with the appropriate version numbers.

LibPRI 1.4.13 and later source code depends on DAHDI include files. So, as a change from older versions, one must install DAHDI before installing libPRI.

## With Internet Access

    [root@server src]# cd dahdi-linux-complete-2.X.Y+2.X.Y

    [root@server dahdi-linux-complete-2.X.Y+2.X.Y]# make

    [root@server dahdi-linux-complete-2.X.Y+2.X.Y]# make install

    [root@server dahdi-linux-complete-2.X.Y+2.X.Y]# make config

## Without Internet Access

When installing on a system without internet access, there are a few additional steps that are required to build DAHDI.
The firmware files for the various VPM modules will need to be downloaded and extracted in the source directory. The file specific links provided below are the current versions as of this writing. Please check the link below for the full list of versions.

http://downloads.digium.com/pub/telephony/firmware/releases/

On a system with internet access, download the following files:

    wget http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-hx8-2.06.tar.gz

    wget http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-oct6114-064-1.05.01.tar.gz

    wget http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-oct6114-128-1.05.01.tar.gz

    wget http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-vpmoct032-1.8.0.tar.gz

    wget http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fw-tc400m-MR6.12.tar.gz

    wget http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fwload-vpmadt032-1.25.0.tar.gz

Now send these to the Asterisk system and store them in

    /usr/local/src/dahdi-linux-complete-2.X.Y+2.X.Y/linux/drivers/dahdi/firmware/

Now we can continue the installation on the Asterisk system using the steps below.

    [root@server src]# cd dahdi-linux-complete-2.X.Y+2.X.Y

    [root@server dahdi-linux-complete-2.X.Y+2.X.Y]# cd linux/drivers/dahdi/firmware

    [root@server firmware]# for tarball in $(ls dahdi-fw-*.tar.gz); do tar -zxf $tarball; done;

    [root@server firmware]# cd -

    [root@server dahdi-linux-complete-2.X.Y+2.X.Y]# make

    [root@server dahdi-linux-complete-2.X.Y+2.X.Y]# make install

    [root@server dahdi-linux-complete-2.X.Y+2.X.Y]# make config