Setup Asterisk 1.6 with DAHDI on Debian Etch

Asterisk Installation Guide
This tutorial refers to:
Asterisk version

tested on the GNU/Linux Debian Etch 4.0 distribution.

First follow the tutorial Basic Net Installation.(time approx. 20 minutes)

Let’s get started…
Here are the steps…

  • Satisfying Asterisk dependencies
  • apt-get install linux-headers-$(uname -r) bison openssl libssl-dev libeditline0 libeditline-dev libedit-dev gcc make g++ mc php5-cli

  • Downloading and extracting Asterisk
  • mkdir /usr/src/asterisk
    cd /usr/src/asterisk


    tar zxvf asterisk-
    tar zxvf asterisk-addons-1.6.0.tar.gz
    tar zxvf dahdi-linux-complete-current.tar.gz

  • Compiling and installing of DAHDI (ZAPTEL replacement) for timing
  • cd dahdi-linux-complete-2.0.0+2.0.0
    make all
    make install
    make config

    after edit
    nano /etc/dahdi/modules
    comment out all modules unless you need them!
    modprobe dahdi_dummy

    if you get interrupt problems, you might need to add acpi=off at boot time.
    Here is how,
    nano /boot/grub/menu.lst
    add acpi=off to the end of the line that starts with “kernel” in the section of the bootup you use.
    Then reboot system.

  • Compiling and installing of Asterisk 1.6
  • cd /usr/src/asterisk/asterisk-
    make menuselect

    Choose the appropriate language packages
    make install
    make samples
    make config

  • Compiling and installing of Asterisk-addons
  • cd /usr/src/asterisk/asterisk-addons-1.6.0
    make install
    make samples

  • Reboot and verify
  • reboot
    asterisk -r

    You should get:
    This is free software, with components licensed under the GNU General Public
    License version 2 and other licenses; you are welcome to redistribute it under
    certain conditions. Type ‘core show license’ for details.
    Connected to Asterisk currently running on asterisk1 (pid = 2022)

    To exit CLI type exit
    To see if DAHDI is ok… run this command:
    and you should see

    To remove AEL support, just edit /etc/asterisk/modules.conf and add
    noload => at the end of the file then restart Asterisk /etc/init.d/asterisk restart
    See this free book for more details and happy PBX.

O’Reilly Media’s latest book, Asterisk: The Future of Telephony, written by Jim Van Meggelen, Jared Smith, and Leif Madsen is the most complete book on the Asterisk PBX system to date. The new book, announced at Astricon 2005 covers many of the new features of Asterisk 1.2. In the spirit of open source, O’Reilly has licensed the book under the creative commons license making it free to download and distribute. If you are looking for the ultimate Asterisk book, you can now download the entire book as a PDF file!

This entry was posted in node. Bookmark the permalink.

One Response to Setup Asterisk 1.6 with DAHDI on Debian Etch

  1. Zachary Ryan says:

    Hi, I am very new to Elastix (my boss gave me a handout and told me to try and figure this out.) The file I need to edit is /etc/asterisk/dahdi-channels.conf this breaks down into a 2 part question, how do I know which channel to edit and how do I edit it?

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>