I am starting to work with Asterisk which is a Linux VoIP PBX, that lets you even send your minutes traffic, to VoIP gateways, and therefore one more time Linux is helping us lower the costs of maintaining an office.
As a first thing I tried to install it from repositories both on Debian and CentOS.
Let's start with Debian.
Once you have installed Debian
Just enter as root:
apt-get install asterisk
Then configure your sip.conf and extensions.conf as minimum, then edit the file:
/etc/default/asterisk
and change the option to start asterisk at boot from "no" to "yes"
Now on CentOS
First install CentOS
Then create this file
/etc/yum.repos.d/atrpms.repo
with this content on it.
[atrpms] name=CentOS $releasever - $basearch - ATrpms baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms gpgcheck=1
Once that is done enter:
yum install asterisk
You will this output:
Loading "installonlyn" plugin Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package asterisk.i386 1:1.4.9-43.el5 set to be updated --> Running transaction check --> Processing Dependency: libpq.so.4 for package: asterisk --> Processing Dependency: libtonezone.so.1.0 for package: asterisk --> Processing Dependency: libspeex.so.1 for package: asterisk --> Processing Dependency: libodbc.so.1 for package: asterisk --> Processing Dependency: libpri.so.1.0 for package: asterisk --> Restarting Dependency Resolution with new changes. --> Populating transaction set with selected packages. Please wait. ---> Package unixODBC.i386 0:2.2.11-7.1 set to be updated ---> Package zaptel.i386 1:1.4.4-37.el5 set to be updated ---> Package postgresql-libs.i386 0:8.1.9-1.el5 set to be updated ---> Package libpri1.i386 1:1.4.1-17.el5 set to be updated ---> Package speex.i386 0:1.0.5-4 set to be updated --> Running transaction check Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: asterisk i386 1:1.4.9-43.el5 atrpms 10 M Installing for dependencies: libpri1 i386 1:1.4.1-17.el5 atrpms 57 k postgresql-libs i386 8.1.9-1.el5 updates 196 k speex i386 1.0.5-4 base 206 k unixODBC i386 2.2.11-7.1 base 832 k zaptel i386 1:1.4.4-37.el5 atrpms 2.0 M Transaction Summary ============================================================================= Install 6 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 13 M Is this ok [y/N]: y Downloading Packages: (1/6): unixODBC-2.2.11-7. 100% |=========================| 832 kB 00:23 (2/6): zaptel-1.4.4-37.el 100% |=========================| 2.0 MB 01:01 (3/6): postgresql-libs-8. 100% |=========================| 196 kB 00:06 (4/6): libpri1-1.4.1-17.e 100% |=========================| 57 kB 00:03 (5/6): asterisk-1.4.9-43. 100% |=========================| 10 MB 04:19 (6/6): speex-1.0.5-4.i386 100% |=========================| 206 kB 00:07 Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: speex ######################### [1/6] Installing: libpri1 ######################### [2/6] Installing: postgresql-libs ######################### [3/6] Installing: zaptel ######################### [4/6] Installing: unixODBC ######################### [5/6] Installing: asterisk ######################### [6/6] Installed: asterisk.i386 1:1.4.9-43.el5 Dependency Installed: libpri1.i386 1:1.4.1-17.el5 postgresql-libs.i386 0:8.1.9-1.el5 speex.i386 0:1.0.5-4 unixODBC.i386 0:2.2.11-7.1 zaptel.i386 1:1.4.4-37.el5 Complete!
In this case you just need to configure
/etc/asterisk/sip.conf
and
/etc/asterisk/extensions.conf
according to your needs, and you are done.
On both systems you can start or stop asterisk with
/etc/init.d/asterisk [start, stop, restart]







Hi,
I'd be grateful if you could let me know which flavour of Linux if best in terms of performance and voice quality for Asterisk that is to support between 20-50 users?
Thanks.
Hi,
My favorite distro for any server related application is Debian, but with asterisk it depends, if you plan to install it yourself or compile, yes Debian is a god point to start, if you want something out of the box, maybe CentOS actually trixbox, which is an ISO that comes with ASterisk and freepbx installed over a CentOS distro, which is a real good distro for server applications.
Hope this answers your question.
Hi and thanks for a quick reply,
I have experience with Fedora and want to install the OS and Asterisk myself. Asterisk is going to support uo to 50 users. What I need is a reliable system that gives good voice quality. Taking into account that I have a lot of experience with Fedora and the number of users that system needs to handle, is Debian going to offer a better platform of should I stick to Fedora?
If you are experienced with Fedora, you can stick with it, the only problem I may find is the upgrade each 6 months or one year, you may go to CentOS which is very similar to Fedora, and you will still be able to manage it without needing to learn "all" again.
I like Fedora and CentOS a lot, they were my most used distros until FC6, and my servers were always CentOS while my Desktops Fedora, but it is you choice, anyway Debian I think will offer you nothing more than CentOS, I just do not like Fedora, Ubuntu or any too fast upgrade cycle Linux for a production server, I prefer to stick with long cycle releases Distros for that task, like CentOS, Debian or Ubuntu LTS, but that is just me.
try
rpm --import http://atrpms.net/RPM-GPG-KEY.atrpms
i got trouble when i installed this.
error message was :
warning: rpmts_HdrFromFdno: Header V4 DSA signature: NOKEY, key ID 66534c2b
GPG key parsing failed: can't set attribute
can you help me
Are you installing it on Debian?
it seems like you do not have the key for the repository, can you give us more details?
Guillermo Garron
I took the asterisk bootcamp and the first thing they said is to get the files from the asterisk.org website as the versions in the repositories are often out of date. Furthermore, don't forget the config-samples, sounds (very funny), and if you have the hardware, libpri and the zapata stuff.
you have to load the hardware modules before you install asterisk.
~Ben
I dont know why Centos developers does not keep asterisk in default centos repo, asterisk is not included even in centos 5.
Compiling asterisk will result heartbreak sometimes except gentoo and BSD systems.
All distros include asterisk in their package system. Neither openser nor asterisk are included in centos official repos.
On Debian it works great, but is not the latest version.
Guillermo Garron