Thursday, November 8, 2012

Install Asterisk 11 on Debian 6 / Debian Squeeze

Asterisk 11 - Debian Squeeze


1. You need to install the dependencies.
apt-get install build-essential linux-headers-2.6.32-5-686 libxml2-dev libncurses5-dev libgtk2.0-dev libnewt0.52 libnewt-dev

2. Download the asterisk 11 package. I usually download it in the "/usr/src/" directory.
cd /usr/src

3. Extract the asterisk 11 source.
tar -zxvf asterisk-11-current.tar.gz

4. Go to the extracted directory.
cd /usr/src/asterisk-11-current

5. Configure and compile asterisk 11
make menuselect

Depending on your needs, you can enable some add-ons like format_mp3. Go to Add-ons and enable "format_mp3".

For this to work, you need to install subversion and get the mp3 source.

apt-get install subversion


make all
make install
make samples
make config
make install-logrotate

6. Run asterisk in verbose mode to check if it was installed properly.
asterisk -vvvvvvvvvvc

7. Automate asterisk service to run on startup.
update-rc.d asterisk defaults

8. You're done! Enjoy!


  1. Hi! Good job, One thing, the seven point is innecesary, make config make this. Sorry for my english.

  2. @David you're right! There are also some add-ons that I might include later on. The installation of DAHDI and Libpri. If you have other things that you recommend to pose just let me know. Soon i might include a "how to install asterisk realtime" and webrtc.

  3. On Debian 7 I also needed to install libssl-dev, openssl and uuid-dev packages to make SIP and RTP modules working

  4. hey i wnt to know in which os and how can we install it on perticular os step by step