Installing asterisk on debian

Hi everyone!

I’m trying to install asterisk on a machine running debian sarge 3.1 and did follow theses steps…below .When install is complete, can not connect to asteriks via asterisk -r command. and asterisk does not start at boot. can anyone help?

here aer my steps

apt-get install ntpdate

Installer SSH

apt-get install ssh

Upgrader le Kernel

apt-get install kernel-image-2.6.8-2-686-smp kernel-headers-2.6.8-2-smp

Mettre une addresse Static a la machine

vi /etc/network/interfaces

The primary network interface

auto eth0
iface eth0 inet static

Installer le compilateur C++ et les outils de configuration de source.

apt-get install g++ make m4 automake flex bison zlib1g-dev libssl-dev

Installer Subversion

apt-get install subversion

Installer VIM

apt-get install vim

Creer un symlink des headers du noyeau vers le repertoire linux

cd /usr/src
ln -s kernel-headers-2.6.8-2-686-smp linux

Telecharger les sources de Asterisk

cd /usr/src

svn checkout asterisk

svn checkout zaptel

svn checkout libpri

Compiler LibPRI

cd /usr/src/libpri
make install

Compiler Zaptel avec ZTDUMMY !!!

cd /usr/src/zaptel
vi Makefile

MODULES:=zaptel tor2 torisa wcusb wcfxo wctdm wctdm24xxp
ztdynamic ztd-eth wct1xxp wct4xxp wcte11xp pciradio
ztd-loc ztdummy

make install

Inserer ZtDummy dans le noyeau

modprobe ztdummy

Compiler asterisk

cd /usr/src/asterisk
make install
make samples

Faire en sorte que Asterisk parte au demarrage de la machine

cp /usr/src/asterisk/contrib/init.d/rc.debian.asterisk /etc/init.d/asterisk
update-rc.d asterisk defaults

--------------- Faire la configuration de asterisk

Installer Apache 2, PHP4 et MySQL

apt-get install apache2 libapache2-mod-php4 mysql-server-4.1 php4-mysql
apt-get install php4-cli


Asterisk must be running to connect with the -r option.
Did you check whether Asterisk starts on console level?

asterisk -c

If it does not start in the console, it won’t start from init.d either.