How to install Asterisk 1.6.2 on Debian Lenny
This tutorial I am going to go through the basic installation of the most famous open source PBX Asterisk on the Debian Lenny linux distribution. I assume here that you have already a basic installation of Debian Lenny up and running.
Installing Dependencies:
# apt-get install linux-headers-`uname -r` libc6-dev zlib1g-dev bison openssl libssl-dev libasound2 libasound2-dev casino online libslang2-dev libnewt-dev libncurses5-dev binutils cpp-4.1 gcc-4.1 libstdc 6-4.1-dev g make libpq5 libapr1 libexpat1 libaprutil1 libxml2 fxload libusb-dev libiksemel-dev zlib-bin libc6-dev libbluetooth2-dev libxml2-dev
Downloading necessary packages: LIBPRI, DAHDI, AND ASTERISK
cd /usr/src
wget http://www.asterisk.org/downloads/asterisk/releases/asterisk-1.6.2-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/libpri/releases/libpri-1.4.11.3.tar.gz
Libpri Installation
tar -xvzf libpri-1.4.11.3.tar.gz
cd libpri-1.4.11.3
make
make install
Dahdi Installation
cd /usr/src
tar -xvzf dahdi-linux-complete-2.3.0.1 2.3.0.tar.gz
cd dahdi-linux-complete-2.3.0.1 2.3.0
make
make install
make config
Asterisk Installation
cd /usr/src
tar -xvzf asterisk-1.6.2-current.tar.gz
cd asterisk-1.6.2.11/
make clean
./configure
make
make install
make samples
make config
At this point you have the basic asterisk system installed on your system and in order to start it just type:
# asterisk