Enter your email address:

Delivered by FeedBurner

Install Asterisk on CentOS and Debian from repositories


StumbleUpon Toolbar

I am starting to work with Asterisk, so 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]

Trackback URL for this post:

http://www.go2linux.org/trackback/189
StumbleUpon Toolbar

 If you like this article, subscribe to our full rss

If this article was somehow useful for you, you can leave something in the tip's jar

Please post your question in our forum and use comments only to leave your comments about the article, thanks.

nice write up!

nice write up!

Thanks, I will continue,

Thanks, I will continue, first with the basic

sip.conf, and extensions.conf files to have a small home PBX.

Guillermo Garron

I dont know why Centos

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,

On Debian it works great, but is not the latest version.

Guillermo Garron

I took the asterisk bootcamp

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

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

This site is proudly hosted at Bluefur Hosting