Asterisk Popular Open Source PBX on Debian

Asterisk Installation Guide
This tutorial refers to:
Asterisk version 1.4.11
asterisk-addons-1.4.2
libpri-1.4.2
zaptel-1.4.5.1

tested on the GNU/Linux Debian Etch 4.0 release 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.4.20.1.tar....
    wget http://downloads.digium.com/pub/asterisk/releases/asterisk-addons-1.4.6....
    wget http://downloads.digium.com/pub/libpri/releases/libpri-1.4.4.tar.gz
    wget http://downloads.digium.com/pub/zaptel/releases/zaptel-1.4.10.1.tar.gz
    tar zxvf asterisk-1.4.20.1.tar.gz
    tar zxvf asterisk-addons-1.4.6.tar.gz
    tar zxvf libpri-1.4.4.tar.gz
    tar zxvf zaptel-1.4.10.1.tar.gz

  • Compiling and installing of Zaptel
  • cd zaptel-1.4.10.1
    ./configure
    make menuselect

    Choose the hardware you want to configure. In our case we only choose ztdummy for timing
    make
    make install
    make config

    after edit
    nano /etc/default/zaptel
    comment out all modules but ztdummy
    modprobe zaptel
    modprobe ztdummy
    nano /etc/zaptel.conf

    add these lines and save:
    loadzone = us
    defaultzone = us

  • Compiling and installing of libpri
  • cd ..;cd libpri-1.4.4
    make
    make install

  • Compiling and installing of Asterisk
  • cd ..;cd asterisk-1.4.20.1
    ./configure
    make
    make install
    make samples
    make config

  • Compiling and installing of Asterisk-addons
  • cd ..;cd asterisk-addons-1.4.6
    ./configure
    make
    make install
    make samples

  • Autostart of zaptel on boot
  • Follow the Linux autoexec.bat and add this command: /etc/init.d/zaptel start

  • 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.4.20.1 currently running on asterisk1 (pid = 2022)
    Verbosity is at least 3
    -- Remote UNIX connection
    asterisk1*CLI>

    To exit CLI type exit
    To see if Zaptel is ok... run this command:
    lsmod|more
    and you should see
    [...]
    ztdummy__________5000________0
    zaptel____________181924______1__ztdummy
    crc_ccitt___________2240________1__zaptel
    [...]

    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://voipspeak.net/images/stories/orielly/AsteriskTFOT.zip