Thursday, August 24, 2006

Asterisk Installation on Debian Sarge 3.1

Asterisk Installation on Debian Sarge:
Linux rbast 2.6.8-2-386 #1 Tue Aug 16 12:46:35 UTC 2005 i686 GNU/Linux

After several days of trying to have a Linux box with a recompiled kernel (and failed every time) I gave up and just do the basic/minimum and no packages installation of debian netinstall. After that I started the Asterisk installation.


Here are the steps. They worked for me, I picked them up from several sites.

cd /usr/src/
apt-get install kernel-headers-2.6.8-2-386

apt-get install cvs
apt-get install libssl-dev
apt-get install zlib1g-dev
apt-get install libnewt-dev
apt-get install bison
apt-get install ncurses-dev
apt-get install libssl-dev
apt-get install initrd-tools
apt-get install procps


mkdir asterisk
cd asterisk

wget http://ftp.digium.com/pub/asterisk/asterisk-1.2.4.tar.gz
wget http://ftp.digium.com/pub/zaptel/zaptel-1.2-current.tar.gz
wget http://ftp.digium.com/pub/libpri/libpri-1.2-current.tar.gz
wget http://ftp.digium.com/pub/libiax/iax-0.2.2.tar.gz
wget http://ftp.digium.com/pub/asterisk/asterisk-1.2-current.tar.gz
wget http://ftp.digium.com/pub/asterisk/asterisk-addons-1.2-current.tar. gz

tar xvfz libpri-1.2-current.tar.gz
cd libpri-1.2.3/
make clean
make
make install

cd ..
tar xvfz zaptel-1.2-current.tar.gz
cd zaptel-1.2.8/
make clean
make linux26)
make install
modprobe zaptel
modprobe wcfxo
ztcfg
(from goods2world where I bout the cheap/clone x100p. => Also, this commands need to get executed whenever
you restart the system. Make sure to add it to init.d loading scripts. Stupid installation manual can be found
here http://www.goods2world.com/downloads/X100PG2W.pdf)


cd ..
tar xvfz asterisk-1.2-current.tar.gz
cd asterisk-1.2.11/
make
make install
make samples

(don't know why I put this notes here)
wget http://ftp.digium.com/pub/asterisk/g729/linux/32-bit/i386/codec_g72 9a.so
wget http://ftp.digium.com/pub/asterisk/g729/register_utility/glibc2.3.5 /x86/register
wget http://ftp.digium.com/pub/asterisk/releases/asterisk-sounds-1.2.1.t ar.gz

cd ..
tar xvfz asterisk-sounds-1.2.1.tar.gz
cd asterisk-sounds-1.2.1
make clean
make install

cd ..
cd asterisk-addons-1.2.4/
make clean
make
make install


cd..
modprobe ztdummy


From Asterisk TFOT
Let’s look at some examples. To start Asterisk and connect to the CLI with a verbos-
ity level of 3, use the following command:
# /usr/sbin/asterisk –cvvv
If the Asterisk process is already running (for example, if you started Asterisk with
/usr/sbin/asterisk), instead use the reconnect switch, like so:
# /usr/sbin/asterisk –vvvr

Get a sipphone and install it. Try to connect to the ip of the server and dial any number.
The examples installation prepared the system to accept any incoming call and play a menu so
anything you dial will work. If you hear the menu. You are ready for phase II (now what!!!)

Next step. READ THE MANUALS!!!!

No comments: