How to Install Asterisk with Yum


This is just my own project to use asterisk as SIP Gateway in order to communicate with my neighbors (I wish there was a neighbor girls), because I realized that I’m just someone who has an empty pocket, oh crap!

Alright, let’s begin…in this case, I’m using Asterisk 1.6.2.21 on CentOS-5.5 and here is step by step  installation for asterisk:

1. Create a new file named: centos-asterisk.repo in the /etc/yum.repos.d/
[root@gembul ~]# vi /etc/yum.repos.d/centos-asterisk.repo

add this line:
[asterisk-tested]
name=CentOS-$releasever - Asterisk - Tested
baseurl=http://packages.asterisk.org/centos/$releasever/tested/$basearch/
enabled=0
gpgcheck=0
#gpgkey=http://packages.asterisk.org/RPM-GPG-KEY-Digium
[asterisk-current]
name=CentOS-$releasever - Asterisk - Current
baseurl=http://packages.asterisk.org/centos/$releasever/current/$basearch/
enabled=1
gpgcheck=0
#gpgkey=http://packages.asterisk.org/RPM-GPG-KEY-Digium


2. Create another file named: centos-diginium.repo in the same folder /etc/yum.repos.d/

add this line:
[digium-tested]
name=CentOS-$releasever - Digium - Tested
baseurl=http://packages.digium.com/centos/$releasever/tested/$basearch/
enabled=0
gpgcheck=0
#gpgkey=http://packages.digium.com/RPM-GPG-KEY-Digium
[digium-current]
name=CentOS-$releasever - Digium - Current
baseurl=http://packages.digium.com/centos/$releasever/current/$basearch/
enabled=1
gpgcheck=0
#gpgkey=http://packages.digium.com/RPM-GPG-KEY-Digium

3. Start the asterisk installation
[root@gembul ~]# yum install asterisk16 asterisk16-configs asterisk16-voicemail dahdi-linux

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.5ninesolutions.com
* updates: centos.cogentcloud.com
* addons: mirrors.kernel.org
* extras: mirrors.usc.edu
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package asterisk16.i386 0:1.6.0.15-1_centos5 set to be updated
--> Processing Dependency: asterisk16-voicemail = 1.6.0.15-1_centos5 for package: asterisk16
################################## skipped ##################################
--> Finished Dependency Resolution
Dependencies Resolved
=========================================================================================
Package Arch Version Size
=========================================================================================
Installing:
asterisk16 i386 1.6.0.15-1_centos5 4.0 k
Installing for dependencies:
asterisk-sounds-core-en-gsm noarch
################################## skipped ##################################
Transaction Summary
========================================================================================
Install 17 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 35 M
Is this ok [y/N]:
Type "y" for "Yes," press the Enter key and relax for a few minutes
Downloading Packages:
(1/17): dahdi-firmware-2.0.1-1_centos5.noarch.rpm | 1.9 kB 00:00
(2/17): dahdi-linux-2.2.0.2-1_centos5.i386.rpm | 3.3 kB 00:00
################################## skipped ##################################
(17/17): kernel-2.6.18-164.el5.i686.rpm | 16 MB 00:23
-------------------------------------------------------------------------------------
Total 283 kB/s | 35 MB
02:06
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
Importing GPG key 0xE8562897 "CentOS-5 Key (CentOS 5 Official Signing Key) " from
/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
Is this ok [y/N]:
Type the "y" key for "Yes" again, press the enter key, and wait just a few more minutes
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : kernel [ 1/17]
Installing : asterisk16-core [ 2/17]
Installing :
################################## skipped ##################################
Installing : asterisk16 [17/17]
Installed: asterisk16.i386 0:1.6.0.15-1_centos5
Dependency Installed: asterisk16-core.i386 0:1.6.0.15-1_centos5 ...
Complete!

4. Test your asterisk installation:
[root@gembul ~]# asterisk -vvvgci
Asterisk 1.6.2.21, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
== Parsing '/etc/asterisk/asterisk.conf': == Found
== Parsing '/etc/asterisk/extconfig.conf': == Found

to see the command list:
*CLI> core show help

source:
asterisk.org
voip-info.org
asteriskguru.com

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: