The following tutorial walks you through the process of installing Asterisk 10 on Debian 6 (Squeeze), the install method uses source directly from asterisk.org not the Debian packages via APT. I recommend installing Asterisk on a dedicated server running a minimal Debian 6 system with nothing else installed apart from SSH and always keep your base system up to date.
Make sure Debian is up to date with:
1
|
|
Apt will now pull down and install any updates.
Install Debian Asterisk 10 dependencies and the required build tools with:
1
|
|
Create a build directory in /usr/src for Asterisk:
1
|
|
Change into the directory:
1
|
|
Download Asterisk 10 and the DAHDI tools using wget:
1 2 |
|
Extract Asterisk 10 & DAHDI tools tar.gz archives:
1
|
|
Next we must build DAHDI tools on Debian, this must be done first before building Asterisk 10, enter the following:
1
|
|
Build DAHDI tools with:
1 2 3 |
|
Start DAHDI tools on Debian with:
1
|
|
Build Asterisk 10 on Debian 6
It’s time to compile Asterisk 10 on Debian 6 with the following:
1
|
|
Build Asterisk 10:
1 2 |
|
When this finishes you should get the funky Asterisk ASCII text logo:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
To customize your Asterisk build use menuselect, you can add additional codecs and other features:
1
|
|
Make Asterisk 10:
1 2 |
|
Make Asterisk 10 samples, do not do this if you are upgrading or already have Asterisk config files in /etc/asterisk
1 2 |
|
Start Asterisk console with, this is for testing only:
1
|
|
To start the Asterisk service on Debian:
1
|
|
You should now have a working Debian Asterisk server with a set of default config files installed, each config has examples for configuration. I recommend setting up your internal extensions first and then your internal / external trunks.
Debian with a source install of Asterisk is my prefered choice, make sure you note down that asterisk is installed from source and keep it up to date, I would recommend joining their mailing list.
If you found this Asterisk 10 Debian 6 install tutorial helpful, please share it below.