0% found this document useful (0 votes)
574 views

How To Install Asterisk 11 in RHEL - CentOS - Fedora and Ubuntu - Debian - Linux Mint

Asterisk is an Open Source software PBX (Private Branch Exchange) It allows you to make calls to one another which may have connected to other PSTN (Public Switched Telephone Network) and Voice over Internet Protocol (VoIP) It runs on Linux, BSD, MacOSX and others. Having builtin features like voicemail, conferencing, IVR, queuing etc.

Uploaded by

Helena Barrera
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
574 views

How To Install Asterisk 11 in RHEL - CentOS - Fedora and Ubuntu - Debian - Linux Mint

Asterisk is an Open Source software PBX (Private Branch Exchange) It allows you to make calls to one another which may have connected to other PSTN (Public Switched Telephone Network) and Voice over Internet Protocol (VoIP) It runs on Linux, BSD, MacOSX and others. Having builtin features like voicemail, conferencing, IVR, queuing etc.

Uploaded by

Helena Barrera
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

13/12/13

How to Install Asterisk 11 in RHEL/CentOS/Fedora and Ubuntu/Debian/Linux Mint

Advertise Linux Services About Archives Contact Us


Search

Ad muted. Undo
We'll do our best to show you more relevant ads in the future. Help us show you better ads by updating your ads settings.

Home Linux Distros Interview Questions Shell Scripting Free Linux eBooks Linux Commands
Select Language
Pow ered by

Translate

Did You Know? Write For Us! and Earn $$$s

Red Hat has announced the official release of "Red Hat Enterprise Linux 6.5"

How to Install Asterisk 11 in RHEL/CentOS/Fedora and Ubuntu/Debian/Linux Mint


By Ravi Saive Under: Open Source On: April 2, 2013
Install Asterisk Centos Linux

Download Your Free eBook NOW - The GNU/Linux Advanced Administration Asterisk is an Open Source software PBX (Private Branch Exchange ), developed by Mark Specer of Digium. It allows you to make calls to one another which may have connected to other PSTN (Public Switched Telephone Network) and Voice over Internet Protocol (VoIP). Asterisk runs on Linux, BSD, MacOSX and others. Having builtin features like voicemail, conferencing, IVR, queuing etc. In this article, we are going to see a basic installation and working of Asterisk 11 in RHEL 6.4/6.3/6.2/6.1/6.0, CentOS 6.4/6.3/6.2/6.1/6.0, Fedora 18,17,16, Ubuntu 12.10/12.04/11.10, Linux Mint 14/13 and Debian Linux Operating Systems.

1. Preparation for Installation


First, you make sure that your system is up-to-date , if not try to update the system and then install dependencies packages using yum command and apt-get command, before installing Asterisk on your system.
On RHEL/CentOS/Fedora #y u myu p d a t e #y u mi n s t a l lym a k ew g e to p e n s s l d e v e ln c u r s e s d e v e ln e w t d e v e ll i b x m l 2 d e v e lk e r n e l d e v e lg c cg c c c + +s q l i t e d e v e l

Turn Off SELinux by changing the line enforcing to disabled in /etc/selinux/config file.
S E L I N U X = d i s a b l e d

Once you disabled SELinux, you need to reboot the system.


r e b o o t On Ubuntu / Linux Mint / Debian #s ur o o t #a p t g e tu p d a t e& &a p t g e tu p g r a d ey& &r e b o o t #a p t g e ti n s t a l lb u i l d e s s e n t i a lw g e tl i b s s l d e vl i b n c u r s e s 5 d e vl i b n e w t d e v l i b x m l 2 d e vl i n u x h e a d e r s $ ( u n a m er )l i b s q l i t e 3 d e v

2. Downloading DAHDI, LibPRI and Asterisk Tarballs


Download the source tarballs, these following commands will download current release of DAHDI 2.6, LibPRI 1.4 and Asterisk 11.
#c d/ u s r / s r c / #w g e th t t p : / / d o w n l o a d s . a s t e r i s k . o r g / p u b / t e l e p h o n y / l i b p r i / l i b p r i 1 . 4 c u r r e n t . t a r . g z #w g e th t t p : / / d o w n l o a d s . a s t e r i s k . o r g / p u b / t e l e p h o n y / d a h d i l i n u x c o m p l e t e / d a h d i l i n u x c o m p l e t e c u r r e n t . t a r . g z #w g e th t t p : / / d o w n l o a d s . a s t e r i s k . o r g / p u b / t e l e p h o n y / a s t e r i s k / a s t e r i s k 1 1 c u r r e n t . t a r . g z

www.tecmint.com/how-to-install-asterisk-11-in-linux-distributions/

1/7

13/12/13

How to Install Asterisk 11 in RHEL/CentOS/Fedora and Ubuntu/Debian/Linux Mint

Next, extract the files from source tarballs using tar command as shown below.
#t a rz x v fd a h d i l i n u x c o m p l e t e c u r r e n t . t a r . g z #t a rz x v fl i b p r i 1 . 4 c u r r e n t . t a r . g z #t a rz x v fa s t e r i s k 1 1 c u r r e n t . t a r . g z

3. Configuring, Compiling And Installing


Go to the each directory from where you have downloaded and extracted the packages and start running the following commands to install DAHDI, LibPRI and Asterisk.
Installing DAHDI. #c d/ u s r / s r c / d a h d i l i n u x c o m p l e t e 2 . 6 . 2 + 2 . 6 . 2 / #m a k e& &m a k ei n s t a l l& &m a k ec o n f i g Installing LibPRI #c d/ u s r / s r c / l i b p r i 1 . 4 . 1 4 / #m a k e& &m a k ei n s t a l l Installing Asterisk

Next, run the configure script will vary depending upon whether your system is 32-bit or 64-bit. In the middle, when menuselect command executes, select your desired options and then hit Save and Exit option and the installation will continuous. Run this command if youre installing Asterisk on a 32-bit OS.
#c d/ u s r / s r c / a s t e r i s k 1 1 . 3 . 0 / #. / c o n f i g u r e& &m a k em e n u s e l e c t& &m a k e& &m a k ei n s t a l l& &m a k es a m p l e s& &m a k ec o n f i g

Run this command if youre installing Asterisk on a 64-bit OS.


#c d/ u s r / s r c / a s t e r i s k 1 1 . 3 . 0 / #. / c o n f i g u r el i b d i r = / u s r / l i b 6 4& &m a k em e n u s e l e c t& &m a k e& &m a k ei n s t a l l& &m a k es a m p l e s& &m a k ec o n f i g

Following are the some Asterisk configuration files and their locations. 1. /etc/asterisk/ configuration files. 2. /var/lib/asterisk/ contains images, firmware, keys, sounds sample files. 3. /usr/lib/asterisk/modules/ contains all loadable modules.

4. Starting DAHDI and Asterisk Services


Enable the DAHDI and Asterisk services at system boot time.
#c h k c o n f i gd a h d io n #c h k c o n f i ga s t e r i s ko n

Start the DAHDI and Asterisk.


#s e r v i c ed a h d is t a r t #s e r v i c ea s t e r i s ks t a r t

5. Connecting to Asterisk CLI


Run the following command to connect to the Asterisk CLI.
#a s t e r i s kr v v v v v A s t e r i s k1 1 . 3 . 0 ,C o p y r i g h t( C )1 9 9 9-2 0 1 2D i g i u m ,I n c .a n do t h e r s . C r e a t e db yM a r kS p e n c e r< m a r k s t e r @ d i g i u m . c o m > A s t e r i s kc o m e sw i t hA B S O L U T E L YN OW A R R A N T Y ;t y p e' c o r es h o ww a r r a n t y 'f o rd e t a i l s . T h i si sf r e es o f t w a r e ,w i t hc o m p o n e n t sl i c e n s e du n d e rt h eG N UG e n e r a lP u b l i c L i c e n s ev e r s i o n2a n do t h e rl i c e n s e s ;y o ua r ew e l c o m et or e d i s t r i b u t ei tu n d e r c e r t a i nc o n d i t i o n s .T y p e' c o r es h o wl i c e n s e 'f o rd e t a i l s . = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = C o n n e c t e dt oA s t e r i s k1 1 . 3 . 0c u r r e n t l yr u n n i n go nt e c m i n t( p i d=1 8 2 0 ) t e c m i n t * C L I >

6. Asterisk Console Commands


Its similar to IOS. From Asterisk terminal anytime you can use Tab key or type ? for help or command auto complete.
t e c m i n t * C L I > ! c a l e n d a r c d r c o n s o l e d a t a e v e n t f e a t u r e s i a x 2 a c l c c c e l c o r e d a t a b a s e f a x f i l e i n d i c a t i o n a e l c h a n n e l d e v s t a t e g r o u p a g e n t c l i d i a l p l a n h a n g u p a g i c o n f b r i d g e d n s m g r h e l p a o c c o n f i g d u n d i h t t p

www.tecmint.com/how-to-install-asterisk-11-in-linux-distributions/

2/7

13/12/13
l o c a l m o d u l e n o q u e u e r e l o a d s t u n u d p t l l o g g e r m o h o r i g i n a t e r e a l t i m e r t c p t i m i n g u l i m i t m a n a g e r

How to Install Asterisk 11 in RHEL/CentOS/Fedora and Ubuntu/Debian/Linux Mint


m g c p p h o n e p r o v s a y v o i c e m a i l m i n i v m m i x m o n i t o r

p a r k e d c a l l s r t p u n i s t i m

p r e s e n c e s t a t e p r i s i p s k i n n y

7. Useful Commands from Asterisk CLI


1. 2. 3. 4. 5. 6. 7. restart gracefully Restart Asterisk gracefully. restart now Restart immediately. restart when convenient Restart Asterisk when call is empty. reload Configuration reload. stop gracefully Gracefully Asterisk shutdown. stop now Shutdown immediately. stop when convenient Shutdown Asterisk when call is empty.

8. Command Line Parameters


Following are the available command line parameters of Asterisk.

h:H e l p .R u n' / s b i n / a s t e r i s kh 't og e tal i s to ft h ea v a i l a b l ec o m m a n dl i n ep a r a m e t e r s . C< c o n f i g f i l e > :S t a r t sA s t e r i s kw i t had i f f e r e n tc o n f i g u r a t i o nf i l et h a nt h ed e f a u l t/ e t c / a s t e r i s k / a s t e r i s k . c o n f . f:F o r e g r o u n d .S t a r t sA s t e r i s kb u td o e sn o tf o r ka sab a c k g r o u n dd a e m o n . c:E n a b l e sc o n s o l em o d e .S t a r t sA s t e r i s ki nt h ef o r e g r o u n d( i m p l i e sf ) ,w i t hac o n s o l ec o m m a n dl i n ei n t e r f a c e( C L I )t h a tc a nb eu s e dt oi s s u e r:R e m o t ec o n s o l e .S t a r t saC L Ic o n s o l ew h i c hc o n n e c t st oa ni n s t a n c eo fA s t e r i s ka l r e a d yr u n n i n go nt h i sm a c h i n ea sab a c k g r o u n dd a e m o n . R:R e m o t ec o n s o l e .S t a r t saC L Ic o n s o l ew h i c hc o n n e c t st oa ni n s t a n c eo fA s t e r i s ka l r e a d yr u n n i n go nt h i sm a c h i n ea sab a c k g r o u n dd a e m o na n da t t:R e c o r ds o u n d f i l e si n/ v a r / t m pa n dm o v et h e mw h e r et h e yb e l o n ga f t e rt h e ya r ed o n e . T:D i s p l a yt h et i m ei n" M m md dh h : m m : s s "f o r m a tf o re a c hl i n eo fo u t p u tt ot h eC L I . n:D i s a b l ec o n s o l ec o l o r i z a t i o n( f o ru s ew i t hco rr ) i :P r o m p tf o rc r y p t o g r a p h i ci n i t i a l i z a t i o np a s s c o d e sa ts t a r t u p . p:R u na sp s e u d o r e a l t i m et h r e a d .R u nw i t har e a l t i m ep r i o r i t y .( W h a t e v e rt h a tm e a n s . ) q:Q u i e tm o d e( s u p r e s so u t p u t ) v:I n c r e a s ev e r b o s i t y( m u l t i p l ev ' s=m o r ev e r b o s e ) V:D i s p l a yv e r s i o nn u m b e ra n de x i t . d:E n a b l ee x t r ad e b u g g i n ga c r o s sa l lm o d u l e s . g:M a k e sA s t e r i s kd u m pc o r ei nt h ec a s eo fas e g m e n t a t i o nv i o l a t i o n . G< g r o u p >:R u na sag r o u po t h e rt h a nt h ec a l l e r . U< u s e r >:R u na sau s e ro t h e rt h a nt h ec a l l e r x< c m d >:E x e c u t ec o m m a n d< c m d >( o n l yv a l i dw i t hr )

9. Reference Link
1. http://www.asterisk.org/
Bio Latest Posts

Ravi Saive
Owner at TecM int.com

Simple Word a Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux.

Centos

For Linux

Linux Help

Ubuntu

Linux Services & Free WordPress Setup

Our post is simply DIY aka Do It Yourself, still you may find difficulties and want us to help you out. We offer wide range of Linux and Web Hosting Solutions at fair minimum rates. Please submit your orders by Clicking Here. 8
Tw eet

89
Me gusta

www.tecmint.com/how-to-install-asterisk-11-in-linux-distributions/

3/7

13/12/13
10

How to Install Asterisk 11 in RHEL/CentOS/Fedora and Ubuntu/Debian/Linux Mint

2
Share

3 comments
Command Auto Free ebook pdf Macromedia flash player free download How to install metal roofing

How to install hardwood floors

Previous Post PlayOnLinux Run Windows Applications and Games on Linux Next Post Setup and Run Your Own Online SMS Portal With PointSMS on RHEL/CentOS/Fedora

Related Post(s):
1. 2. 3. 4. 5. 6. Install Memcached (Caching Server) on RHEL/CentOS 6.3/5.8 and Fedora 17-12 QBittorrent 3.1.0 Released Install on Debian/Ubuntu/Linux Mint and Fedora PAC Manager: A Remote SSH/FTP/Telnet Session Management Tool Basic Guide on IPTables (Linux Firewall) Tips / Commands TeamViewer 9 Released Install on RHEL/CentOS/Fedora and Debian/Ubuntu Install YouTube-DL A Command Line Video Download Tool for Linux

3 Responses

1.

johnt says: April 3, 2013 at 4:52 pm Better to use yum on centos/fedora seeing as the repo is available for these distros. Reply

2.

cochtansays: May 11, 2013 at 5:01 pm one important thing is missing PERL, so before reboot step use also this command: yum install perl Good luck to all Asterisk people ;-) Reply

3.

Rajendrasays: October 25, 2013 at 8:55 am want to know about Asterisk-Polycom Reply

Leave a Reply
Name (Required) Mail (will not be published) (Required) Website

www.tecmint.com/how-to-install-asterisk-11-in-linux-distributions/

4/7

13/12/13

How to Install Asterisk 11 in RHEL/CentOS/Fedora and Ubuntu/Debian/Linux Mint

Submit Comment

Twitter 1192 Twitter Facebook 20006 Facebook Google+ 1341 Google+ RSS 2167 Subscribers Become A TecMint Subscriber to receive latest Updates.
Enter Your Email Address :)Signup!

Popular Latest Comments Tags

Install Apache 2.2.15, MySQL 5.5.34 & PHP 5.5.4 on RHEL/CentOS 6.4/5.9 & Fedora 19-12 126 Comments

CentOS 6.4 Step by Step Installation Guide with Screenshots 123 Comments

Wine 1.7.3 Released Install in RHEL, CentOS and Fedora 122 Comments

Install Cacti (Network Monitoring) on RHEL/CentOS 6.3/5.8 and Fedora 17-12 110 Comments

CentOS 6.3 Step by Step Installation Guide with Screenshots 88 Comments

Google Chrome 29 Released Install on RHEL/CentOS 6 and Fedora 19/15 76 Comments

:: Advertise ::

www.tecmint.com/how-to-install-asterisk-11-in-linux-distributions/

5/7

13/12/13

How to Install Asterisk 11 in RHEL/CentOS/Fedora and Ubuntu/Debian/Linux Mint

:: Download Free Linux eBooks ::

:: Follow Us ::

TecMint.com
google.com/+Tecmint Tecmint: Linux Howtos, Tutorials & Guides Follow + 1,489 +1

:: About ::
TecMint.com is a website that publishes practical and useful out-of-the-box articles for aspirant like you and me. We seek to present exceptional, remarkable tips, tutorials, and resources that the modern web professional will appreciate.
www.tecmint.com/how-to-install-asterisk-11-in-linux-distributions/ 6/7

13/12/13

How to Install Asterisk 11 in RHEL/CentOS/Fedora and Ubuntu/Debian/Linux Mint

:: Our Services ::
We offer wide range of Linux Web Hosting and Management Services includes Linux hosting, WordPress hosting, Joomla Hosting, CMS hosting, Website migration and Custom solutions, making us a one-stop destination for all your possible hosting needs at fair minimum rates. Know More

:: Advertise ::
TecMint.com is visited by tens of thousands of Linux users and has a excellent reputation in the search engine ranking. Most of the traffic comes from Google organic search (80%). Spread your messages or products to an engaged readers by advertising with us. Home | Privacy Policy | Copyright Policy 2012-2013 All Rights Reserved. 25 Hardening Security Tips for Linux Servers 60 Commands of Linux : A Guide from Newbies to System Administrator 15 Command Line Tools to Monitor Linux Performance 5 Best Practices to Secure and Protect SSH Server 18 Tar Command Examples in Linux 20 Linux YUM (Yellowdog Updater, Modified) Commands 25 Useful Basic Commands of APT-GET and APT-CACHE 20 Funny Commands of Linux or Linux is Fun in Terminal 35 Practical Examples of Linux Find Command 10 Linux Distributions and Their Targeted Users

Submit Order

Advertise Now

www.tecmint.com/how-to-install-asterisk-11-in-linux-distributions/

7/7

You might also like