Overview

Quick and easy guide to installing Asterisk 1.4.0 on Debian 4 (Etch).

Requirements

Boot from CD/DVD

boot.jpg

Language Selection

language.jpg language2.jpg keyboard.jpg

Network Configuration

network.jpg hostname.jpg domain.jpg

User Configuration

Enter the root password (something complex, but don't forget it) and user details to continue.

rootpass.jpg fullname.jpg username.jpg userpass.jpg

Disk Configuration

With a little preparation you could split your drive into multiple partitions, but for simplicity I used a single partition - the whole disk in this instance.

partition.jpg partition2.jpg partition3.jpg partition4.jpg partition5.jpg

Network Mirror Configuration

networkmirror.jpg networkmirror2.jpg networkmirror3.jpg

Software Selection

Selecting SQL database here installs PostgreSQL. You can just select Standard system if you prefer MySQL.

popularity.jpg software.jpg

Install Grub - Finish

Install Grub, Eject CD and reboot to finish installation.

grub.jpg finish.jpg

Asterisk Required Packages

I installed the packages listed here prior to compiling Asterisk. An easy way to do this is to use the program aptitude or apt-get. There are many tutorials on Debian package management so i'd suggest starting here: http://www.debian.org/doc/manuals/reference/ch-package.en.html
Don't forget to su to root first.

  • ntp
  • sudo
  • screen
  • openssh-server
  • postgresql-server-dev-8.1
  • linux-headers
  • autoconf
  • snmp
  • snmpd
  • sox
  • libsnmp9-dev
  • libnet-snmp-perl
  • festival
  • minicom
  • doxygen
  • gnutls-bin
  • libgnutls-dev
  • libneon26-gnutls-dev
  • libiksemel-dev
  • libiksemel-utils
  • libosp-dev

When you have installed those pacakges you need to get the dependencies required to build Asterisk 1.4.0 by running the command:

voip:~# apt-get build-dep asterisk

Installing Zaptel

Zaptel provides an interface to the Digium range of telephony cards and also includes tools to improve timing.

voip:~# wget http://ftp.digium.com/pub/zaptel/releases/zaptel-1.4.0.tar.gz
voip:~# tar -zxvf zaptel-1.4.0.tar.gz
voip:~# cd zaptel-1.4.0
voip:~# ./configure
voip:~# make menuselect
voip:~# make
voip:~# make install
voip:~# vi /etc/zaptel.conf
voip:~# reboot

Installing Asterisk

Installing Asterisk is as simple as:

voip:~# wget http://ftp.digium.com/pub/asterisk/releases/asterisk-1.4.0.tar.gz
voip:~# tar -zxvf asterisk-1.4.0.tar.gz
voip:~# cd asterisk-1.4.0
voip:~# ./configure
voip:~# make menuselect
voip:~# make
voip:~# make install
voip:~# make samples

Installing Asterisk Addons

If you intend to use MySQL for your CDR logging you will need this. It will not hurt to install it anyway.

voip:~# wget http://ftp.digium.com/pub/asterisk/releases/asterisk-addons-1.4.0.tar.gz
voip:~# tar -zxvf asterisk-addons-1.4.0.tar.gz
voip:~# cd asterisk-addons-1.4.0
voip:~# ./configure
voip:~# make menuselect
voip:~# make
voip:~# make install
voip:~# make samples

Reconfigure Exim to allow outgoing mail

One of the features of Asterisk is the ability to mail you voicemail. If you want to send mail to an external domain you are going to want to run:

voip:~# dpkg-reconfigure exim4-config

Finish

You now have Asterisk 1.4.0 installed and ready to be configured. You can find commented sample configuration files in /etc/asterisk. I'd suggest you read the online manual if this is your first Asterisk installation, you can download it here http://www.asteriskdocs.org/modules/tinycontent/index.php?id=11


CategoryTutorial