Setup Asterisk 1.6 with DAHDI on Debian Etch

Asterisk Installation Guide
This tutorial refers to:
Asterisk version 1.6.0.1
asterisk-addons-1.6.0
DAHDI-linux-complete-2.0.0+2.0.0

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

    wget http://downloads.digium.com/pub/asterisk/releases/asterisk-1.6.0.1.tar.g…
    wget http://downloads.digium.com/pub/asterisk/releases/asterisk-addons-1.6.0….
    wget http://downloads.digium.com/pub/telephony/dahdi-linux-complete/dahdi-lin…

    tar zxvf asterisk-1.6.0.1.tar.gz
    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-1.6.0.1
    ./configure
    make menuselect

    Choose the appropriate language packages
    make
    make install
    make samples
    make config

  • Compiling and installing of Asterisk-addons
  • cd /usr/src/asterisk/asterisk-addons-1.6.0
    ./configure
    make
    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 1.6.0.1 currently running on asterisk1 (pid = 2022)
    server*CLI>

    To exit CLI type exit
    To see if DAHDI is ok… run this command:
    lsmod|more
    and you should see
    [...]
    dahdi____________186216______3__dahdi_dummy
    crc_ccitt___________2240________1__dahdi
    [...]

    To remove AEL support, just edit /etc/asterisk/modules.conf and add
    noload => pbx_ael.so 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!
http://asterisk.stablehosting.net/AsteriskTFOT.zip

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>