How to Install Asterisk 11 on CentOS 6
Billy Chia November 5th, 2012
With the recent release of Asterisk 11 I thought I’d put together an install tutorial for Asterisk 11 and Centos 6. (Also check out this Asterisk install tutorial for Ubuntu 12.4 LTS) As an LTS release Asterisk 11 has been developed for stability and long life. Additionally, Asterisk 11 boasts many great new features including WebSocket transport for SIP, chan_motif, SIP NAT traversal via ICE, Named ACLs and more! For a full list of new features visit the Asterisk wiki. Watch the video for a screencast of my terminal session to see the install live where I explain each command step by step. The copy and paste commands can be found below.
VIDEO
For this install I am using Asterisk 11.0.0 and will be compiling from source on CentOS 6.3. This tutorial should also work on Fedora and RHEL (Red Hat Enterprise Linux) systems with little or no modification.
First, you will want to be sure that your server OS is up to date.
yum update -y
Disable SELinux by changing “enforcing” to “disabled” in /etc/selinux/config. Use a text editor or copy and paste this command.
sed -i s/SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config
After you update and disable SELinux, you’ll need to reboot.
reboot
Next, you will want to resolve basic dependencies. (More information on Asterisk dependencies.)
yum install -y make wget openssl-devel ncurses-devel newt-devel libxml2-devel kernel-devel gcc gcc-c++ sqlite-devel
Change into the /usr/src/ directory to store your source code.
cd /usr/src/
Download the source tarballs. These commands will get the current release of DAHDI 2.6, libpri 1.4 and Asterisk 11.
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz
Extract the files from the tarballs.
tar zxvf dahdi-linux-complete* tar zxvf libpri* tar zxvf asterisk*
For the next set of commands it is important to follow the proper order: DAHDI first, then libpri, then Asterisk.
Install DAHDI.
cd /usr/src/dahdi-linux-complete* make && make install && make config
Install libpri.
cd /usr/src/libpri* make && make install
Change to the Asterisk directory.
cd /usr/src/asterisk*
In the next step, running the “configure” script will vary depending on whether your system is 32-bit or 64-bit. (Watch the video for more details.) When the menuselect command runs, select your options, then choose “Save and Exit” and the install will continue.
Use this command if you are installing Asterisk on 32bit CentOS.
./configure && make menuselect && make && make install
Use this command if you are installing Asterisk on 64bit CentOS.
./configure --libdir=/usr/lib64 && make menuselect && make && make install
Optional: If you ran into errors you will want to clean the install directory before recompiling.
make clean && make distclean
Once you have an error-free install, copy the sample files from the configs subdirectory into /etc/asterisk.
make samples
Then add the Asterisk start script to the /etc/init.d/ directory
make config
Start DAHDI.
service dahdi start
Start Asterisk.
service asterisk start
Connect to the Asterisk CLI.
asterisk -rvvv
And now you have Asterisk 11 running on CentOS 6! If you’d like to continue configuring Asterisk you can check out this guide to setting up basic pbx functionality or leave a comment to share your thoughts below! You can also check out some of our training and certification options.





















Hey im having issues with dhadi on centos 6.2 i get a error stating i do not have the kernal source however its not available as package
Mathew –
Be sure to follow the steps in order, there are a few possibilities for the problem you are experiencing.
Perhaps, you forgot to reboot after `yum update -y`. If you don’t reboot, then you will install the kernel headers for the old kernel. Be sure to update your system and then reboot.
After the reboot, be sure to use yum to install the “kernel-devel” package This is the name of the package on redhat-based systems. If you try to install a different package name then it may not be found. `yum install kernel-devel -y`
On the output of the kernel-devel package install should show something like:
“Package kernel-devel-2.6.32-279.11.1.el6.x86_64 already installed and latest version”
Look at the kernel version – note that mine is
“2.6.32-279.11.1.el6.x86_64″
Then run `uname -a`
The output should show the same kernel name:
[root@CentOS ~]# uname -a
Linux CentOS 2.6.32-279.11.1.el6.x86_64 #1 SMP Tue Oct 16 15:57:10 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
You should now be able to navigate into the dahdi source directory.
run `make clean && make distclean`
Then try the dahdi complication process again.
Good luck!
Good post & video. Thanks!
Here are the steps that I recently used to install Asterisk 11.0.1 on Ubuntu Server LTS 12.04.1. It was in a virtual environment, so I didn’t install DAHDI.
sudo apt-get update
sudo apt-get dist-upgrade
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz
tar zxvf asterisk-11-current.tar.gz
cd asterisk-11.0.1/
sudo apt-get install build-essential libxml2-dev libssl-dev libncurses-dev libsqlite3-dev
./configure
make menuconfig
make
sudo make install
sudo make samples
sudo asterisk -cvvvf
[...] I explain each command step by step. The copy and paste commands can be found below. Read more http://blogs.digium.com/2012/11/05/how-to-install-asterisk-11-on-centos-6/ How to Install Asterisk 11 on CentOS [...]
Here’s how to install in debian 6 or debian squeeze.
http://asteriskopensourcev2.blogspot.com/2012/11/install-asterisk-11-on-debian-6-debian.html
Hey Billy,
I did a yum update to the NSS CentOS Server and it crashed the PBX. Scott and Scott had to come out back out then re-install their Asterisk version.
My question is why. I only updated the OS not the compiled PBX code. Has anyone else had this issue?
Sam
Great post. Was wondering if anybody had a tutorial on how to install on a VM within a XenServer. Found some documentation on Open Vswitch just wondering if there was anything else special that needs to be enabled…
Hi, Billy.
I’ve installed as you described. but after i’ve got 2 problems:
1) DTMF doesn’t work
2) voice messages duration always 0
some information about my system:
1) VMware 7
2) [root@pbx asterisk]# uname -a
Linux pbx.tbm.ru 2.6.32-279.14.1.el6.i686 #1 SMP Tue Nov 6 21:05:14 UTC 2012 i686 i686 i386 GNU/Linux
3) [root@pbx asterisk]# asterisk -v
Asterisk 11.0.1, Copyright (C) 1999 – 2012 Digium, Inc. and others.
Created by Mark Spencer
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.
=========================================================================
Asterisk already running on /var/run/asterisk/asterisk.ctl. Use ‘asterisk -r’ to connect.
[root@pbx asterisk]#
Regards,
Shakirov Shakhrukh
Hello Billy,
I tried to install Asterisk 11 on VM , and I am getting this error :
make[2]: Leaving directory `/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/firmware’
You do not appear to have the sources for the 2.6.18-028stab101.1 kernel installed.
make[1]: *** [modules] Error 1
make[1]: Leaving directory `/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux’
make: *** [all] Error 2
I am on Godaddy and it is not possible to modify the Kernel 2.6.18 on a virtual dedicated server.
Samuel,
This is normal for all software (Apple, Windows or Linux). My tutorial is for a new install – you should NOT run “yum update -y” on a production system. This would be equivalent to me upgrading my Mac from OSX Snow Leopard to OSX Mountain Lion. When I upgrade the OS, I will surely need to upgrade my software applications as well! (Or at a minimum be aware of what features are supported on the OS)
If you are not familiar with Linux system administration, then most common option is to purchase a support contract with a Digium Certified Asterisk Integrator – be sure the contract covers maintenance of the system. Then the Certified Integrators can perform the system maintenance during scheduled downtime.
Shakirov,
As this tutorial pertains specifically to installing from source, I would recommend posting your DTMF question on the Asterisk forums: http://forums.asterisk.org/viewforum.php?f=1&sid=18cca20b74b7fa30707569eb806a4c71
It will be helpful to include the CLI output when the call is made. (connect to the CLI with “asterisk -rv” instead of “asterisk -v”)
Irakli,
You need the kernel development headers. Look at the comment I left above for Mathew and follow the steps.
Great Video, Thankx a lot…
A very informative post. Just one question though, how about AsteriskNow? Will there be a guided tour as well?
I would like that
/usr/src/asterisk/asterisk-11.0.2/res/pjproject/pjnath/lib/libpjnath-x86_64-unknown-linux-gnu.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [res_rtp_asterisk.so] Error 1
make[1]: *** [res] Error 2
make[1]: Leaving directory `/usr/src/asterisk/asterisk-11.0.2′
make: *** [_cleantest_all] Error 2
I followed the installation on a 64bits CentOS 6.3 base installation with Apache, MyQSL and PHP already installed.
Here’s the version I installed:
asterisk-11.0.2
dahdi-linux-complete-2.6.1+2.6.1
libpri-1.4.13
Everything went as per the tutorial except when in the end when I want to connect to the cli I get:
[root@localhost asterisk-11.0.2]# asterisk -rvvv
Asterisk 11.0.2, Copyright (C) 1999 – 2012 Digium, Inc. and others.
Created by Mark Spencer
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
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
If I types “ps auwx | grep asterisk”
I get this:
[root@localhost src]# ps auwx | grep asterisk
root 811 0.0 0.0 108160 760 pts/0 S 19:26 0:00 /bin/sh /usr/sbin/safe_asterisk
root 813 0.9 1.3 1031428 25320 pts/0 Sl 19:26 0:03 /usr/sbin/asterisk -f -vvvg -c
root 856 0.0 0.0 103240 840 pts/0 S+ 19:32 0:00 grep asterisk
So I guess Asterisk is running..
Thanks for your help
Daniel
I solved my problem… the command
sed s/SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config
Wasn’t changing the “/etc/selinux/config” so SELINUX was not disabled. So I changed it manually with “vi” and now it works.
Ron,
Thanks! There is a step-by-step quick start guide for AsteriskNOW on the wiki: https://wiki.asterisk.org/wiki/display/AST/Installing+AsteriskNOW
dbbrito,
Try make distclean in /usr/src/asterisk/asterisk-11.0.2/ before you re-compile. If that doesn’t work, try completely deleting the /res/pjproject/ subdirectory and then recompiling. This could be a bug. Try submitting to https://issues.asterisk.org if it’s not already there.
Daniel,
Thank you for posting back when you found a solution! Additionally you can use audit2allow so that you are able to keep SELinux enabled and still run asterisk:
http://wiki.centos.org/HowTos/SELinux
http://wiki.centos.org/HowTos/SELinux#head-faa96b3fdd922004cdb988c1989e56191c257c01
Fail fail, epic fail.
I have tried versions 1.8, 10, &11 on CentOS 6.x and all return the same thing.
“/usr/sbin/asterisk -cvvvvvvvv” – “Illegal instruction (core dumped)”
Whenever we are running make install command then we are getting below error message
make[5]: ccar: Command not found
make[5]: *** [../lib/libpj-i686-pc-linux-gnu.a] Error 127
make[4]: *** [pjlib] Error 2
make[3]: *** [all] Error 1
make[2]: *** [pjproject] Error 2
make[1]: *** [res] Error 2
make[1]: Leaving directory `/usr/src/asterisk-11.1.2′
make: *** [_cleantest_all] Error 2
hi,
Quick question here, i’ve been experimenting with asterisk for some time now, i just need to know if we can install asterisk 11 on centos 5.5?
what updates are required to install the asterisk 11 on CentOS 5.5?
Please guide.
Thanks.
Thanks for the tutorial,
Pls advice on the following :-
i) What are the options I need to enable while install centos6.3 need to install go through customized mode or basic server installation.
ii) How to enable SRTP .
Trent,
This could be related to your hardware – are you trying to compile on a very old machine? I would recommend submitting a bug to issue.asterisk.org – include out put from `cat /proc/cpuinfo` along with following the steps here: https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines
Amit,
Trying deleting the res/pjproject sub directory and then starting over. Be sure to run `make clean && make distclean` in the source directroy
Aamir,
Yes, Asterisk works just fine on CentOS 5.5. You can follow the tutorial above and it should work.
Ravi,
Follow the tutorial above for CentOS 6.3 it should work just fine. For information on SRTP follow the instructions on the wiki: https://wiki.asterisk.org/wiki/display/AST/Secure+Calling+Tutorial
You don’t need to reboot after disabling selinux. just use “setenforce 0″
/usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/xdefs.h:152: error: conflicting types for âboolâ
include/linux/types.h:36: error: previous declaration of âboolâ was here
make[4]: *** [/usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/card_bri.o] Error 1
make[3]: *** [/usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp] Error 2
make[2]: *** [_module_/usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.18-348.1.1.el5-i686′
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux’
make: *** [all] Error 2
[root@localhost dahdi-linux-complete-2.6.1+2.6.1]#
hi Billy,
I’ve installed the VM multiple time and seen and followed your tutorials like many times as well, but its not helping me.
I’ve been using the CentOS 5.5. My actual machine is 64-bit and I’ve tried it both the ways with 64 and 32-bit options.
Still it is giving me the same error.
Please guide me properly and walk me through this.
Thank you.
-A
Hey Billy,
Need Help!!!
/usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/xdefs.h:152: error: conflicting types for âboolâ
include/linux/types.h:36: error: previous declaration of âboolâ was here
make[4]: *** [/usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/card_bri.o] Error 1
make[3]: *** [/usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp] Error 2
make[2]: *** [_module_/usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.18-348.1.1.el5-i686′
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux’
make: *** [all] Error 2
[root@localhost dahdi-linux-complete-2.6.1+2.6.1]#
hi Billy,
I’ve installed the VM multiple time and seen and followed your tutorials like many times as well, but its not helping me.
I’ve been using the CentOS 5.5. My actual machine is 64-bit and I’ve tried it both the ways with 64 and 32-bit options.
Still it is giving me the same error.
Please guide me properly and walk me through this.
Thank you.
-A
Hi Billy,
I just created the new VM and did the whole thing again but still its not working.
Here are my system details:
I’ve the OS of 64-bit and running WIN-7 on it.
I’ve CentOS 32-bit and host machine’s architect supports both 32 and 64-bit, VMware v8.0 software is installed. VM created is also 32-bit.
[root@localhost ~]# arch
i686
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-348.1.1.el5 #1 SMP Tue Jan 22 16:24:03 EST 2013 i686 i686 i386 GNU/Linux
the error m getting after compiling dahdi is as under:
In file included from /usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/xpd.h:26,
from /usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/card_bri.c:29:
/usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/xdefs.h:152: error: conflicting types for ‘bool’
include/linux/types.h:36: error: previous declaration of ‘bool’ was here
make[4]: *** [/usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/card_bri.o] Error 1
make[3]: *** [/usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp] Error 2
make[2]: *** [_module_/usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.18-348.1.1.el5-i686′
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux’
make: *** [all] Error 2
Please let me know if you need any more information so that i can successfully install it with your help.
Thnx
-A
Aami,
It looks like your problem is is similar to this:
https://issues.asterisk.org/jira/browse/DAHLIN-312
You can follow the instruction on JIRA to do one of the following: comment out the typedef xdef.h, apply the patch or use the release candidate version 2.6.2-rc1 (link found at the bottom).
Well Aami it shows error at 152 line, i simply delete this line and it worked… dont have any logic, it says its already defined, so redefine is created problem and i removed it… try if it helps you as well..
Billy,
I am using asterisk 11 and i am trying to pause agent using PauseQueueMember funcation. its promot me error
app_queue.c:5839 pqm_exec: Attempt to pause interface Local/5516@context_internal/n, not found
exten => 23,1,Answer
exten => 23,1,Wait(1)
exten => 23,n,Set(CALLBACKNUM=${EXTEN})
exten => 23,n,PauseQueueMember(,Local/5516@context_internal/n)
exten => 23,n,System( echo “${EPOCH}|${UNIQUEID}|NONE|Agent/${CALLBACKNUM}|AGENTPAUSED|-” >> /var/log/asterisk/queue_log )
exten => 23,n,UserEvent(RefreshQueue)
exten => 23,n,Wait(1)
exten => 23,n,Playback(extension)
exten => 23s,n,SayDigits(${CALLBACKNUM})
exten => 23,n,Playback(dictate/paused)
exten => 23,n,Wait(1)
exten => 23,n,Hangup
Can you please explain, whats stand for interface and how i over come this issue
Waiting your kind response.
Kashif,
As your question is un-related to the installation process you should post it on forums.asterisk.org.
Hi, I’m trying to compile the driver chan_motif but it appears disabled, it shows [XXX] at make select
you know how to make it runs?
Luis,
The [XXX] means that you are missing dependencies. When you highlight the entry in Menuselect look for “Depends on” at the bottom. (For more info on Menuselect see: https://wiki.asterisk.org/wiki/display/AST/Using+Menuselect+to+Select+Asterisk+Options)
In particular chan_motif depends on iksemel and res_xmpp. (res_xmpp is an Asterisk resource module that also depends on iksemel. iksemel is an XML parser.)
To install the iksemel dependency on CentOS use:
yum install -y iksemel ikesmel-devel
Then in the Menuselect tool choose res_xmpp under the resource modules. You will now be able to select chan_motif under the channel driver modules. When you save an exit and continue to compile these modules will be built.
See also https://wiki.asterisk.org/wiki/display/AST/Calling+using+Google
To preempt the question – “Why didn’t I include iksemel in the dependencies for the tutorial?”
The answer is that I could have included every dependency to install every Asterisk module possible, but this would be an very long list. I included only the basic dependencies needed to install Asterisk. For Additional modules you should use the menuselect tool to find out if there are any dependencies and then install those on a case by case basis for the particular modules you’d like to build.
I did all what you said but i got “expr:syntax error” and “stack protector enabled but no compiler support” Please, what can i do to resolve this challenge. Thank you.
Daniel,
I’m not sure where you were at in the process, I would recommend starting from a clean install of CentOS 6. Be sure to follow all of the steps in order – including the update, disabling SELinux, and rebooting.
If you want to run Asterisk with SELinux enabled, then I’d recommend posting on forums.asterisk.org for help, or querying the Redhat/Fedora community for SELinux help.
i did the installation in order just as you have stated. i’m doing the installation on a vm machine actually a vmware player on my windows machine. i installed centos 6.3 on the vmware player.
i’m hooked at the point of installing dahdi drivers with
cd /usr/src/dahdi-linux-complete*
make && make install && make config
then i get the “stack protector enabled but no compiler support” What can i do still?
Daniel,
If you are installing in a VM then there’s no need to install DAHDI – you won’t have a reliable connection to the hardware through the VM. Asterisk virtualizes just fine as voip only system, however if you need telephony card support (TDM and/analog connections) then you will need to install on the server directly without virtualizing.
You have a few options -
1. Install without DAHDI. If it works, then you are good. There could be a bug or something particular about your environment that is causing an issue, but there’s no point in digging out a solution if you don’t need DAHDI support.
2. Install on the server. Be sure to install step-by-step as shown in the video – don’t just copy and paste the commands. (e.g. run make, then make install, etc…) If you still get the DAHDI error I’d recommend posting more detailed output on forums.asterisk.org (including the versions you are using). If there’s a bug you should post to issues.asterisk.org be sure to follow the steps in the issue guidelines for bugs: https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines
If there is a bug the community on forums.asterisk.org can guide you on how to rev down to a working version.
3. Use AsteriskNOW.
http://www.asterisk.org/downloads/asterisknow
Although this install guide is laid out step-by-step for beginners, compiling from source is not a task for the hobbyist or faint of heart. Because every system is nuanced and different, compiling is for advanced users who require the customizability that compiling affords and either understand linux, or are diligent enough to wade through complex troubleshooting. If you are a novice and are seeking to learn more – I’d go to forums.asterisk.org or the #asterisk IRC channel where you can get personalized help. If however, you just need a system up in the simplest way possible then AsteriskNOW is more novice friendly in regards to installation. You can virtualize it and install with or without a GUI.
i finally try installing it again but i get the error “/bin/sh: perl: command not found” what can i do please?
[...] You can find more details on building Asterisk here: http://blogs.digium.com/2012/11/05/how-to-install-asterisk-11-on-centos-6/ [...]
Install went flawless.
Thank you.
Couple of corrections.
The command to Disable SELinux does not modify the file. The sed command needs the ‘-i’ option to “edit files in place”.
Perl is required for the build. Perl should be added to the “yum install -y” line.
Good document.
hello billy
i successfully installed asterisk but i discovered that the amr codec is not present. please how do i install that on the asterisk 11 server
I was getting the same errors as @Daniel with the : “Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)”
I have been trying to get this running for a few days and multiple reinstalls.
manually editing the file fixed the problem.
This might be causing a lot of problems for other people so you might want to remove the sed command from the install.
Jason,
Updated sed to include ‘-i’ thanks!
For people with out perl on their system they can resolve with
yum install perl perl-devel -y
Daniel,
The Asterisk forums is a good place to start to get help beyond basic installation:
http://forums.asterisk.org/search.php
Craig,
Note the video and blog text both describe manually editing the file. However adding ‘-i’ as noted above will edit the file with sed.
Hi Billy, we have in plan to install Asterisk Server on VMware infrastructure trying to support handling around 2500-3000 IP Phones on the future in a multisite environment meaning on different cities on a Microwave Links and fiber network with routers and switches. The simultaneous calls are around 100-120 in peak hours in our legacy system with Panasonic PBX’s.
So my question is How much RAM Memory, Processor-CPU and Storage capacity for the Asterisk Server-Virtual Machine will suport this scenario?
The SIP protocol will be used with ulaw codec. Also few external Softphones.
Also I want to interconnect Asterisk with Panasonic PBX’s through Mediant 2000 Audio Codes Gateway and VoIP Cards on Panasonic TDA 200 PBX’s
Would you prefer do it on this way???
Hi Billy
Great guide! Easy to follow instructions and you SUPERB other videos I’ve watched. Thanks a lot.
Ekrem,
The Asterisk forums is a good place to start to get help beyond basic installation:
http://forums.asterisk.org/search.php
Billy thanks for the response, but it’s not problem installing Asterisk and so on…we know how to do it….but I was wondering can One single Asterisk installed in a VMware as a virtual machine let’s say with 12GB RAM , Quad CPU @ 3GHz allocated handle 2500 IP Phones registred and 100-120 simultaneous calls???
100% – Tnks.
This is such a great post! I was able to get through most of it without incident. However running the “make samples” command ends in an error – it’s like maybe there is something in the script that doesn’t agree with my system? I’m running CentOS 6.3.
Thanks!
– Markus
Ekrem,
As this is a post about basic installation, comments here should be limited to that scope. The Asterisk forums is a good place to start to get help on anything else:
http://forums.asterisk.org/search.php
Markus,
Make samples copies the files from the “configs” subdirectory of the Asterisk source into /etc/asterisk – so keep in mind that if you run the command multiple times you run the risk of overwriting your configs. With that said if you post the error more specific advice can be offered.
When I run “make samples”, I get a number of lines that say “/bin/sh: – : invalid option” and a list of valid options.
At the end, I get errors such as:
/bin/sh: line 1: configs/asterisk.adsi: Permission denied
Installing configs/asterisk.adsi
/bin/sh: line 7: configs/asterisk.adsi: permission denied
/bin/sh: line 7: -m: command not found
I get this for asterisk.adsi and telcordia-1.adsi.
Thanks,
– Markus
Markus,
Try the install while logged in as the root user – or prepend “sudo” to all of the commands. e.g. “sudo make install”.
Great tutorial, I was able to follow step by step and system is up. What is I want to use the GUI?
it just to enable httpd? or have to install asterisk-GUI, any tutorials on that?
Thanks
Pros,
AsteriskNOW is a full Linux Distribution that installs with a GUI.
http://www.asterisk.org/downloads/asterisknow
Note: This will reformat your harddisk and install Linux and Asterisk.
Step-by-step AsteriskNOW Install Guide:
https://wiki.asterisk.org/wiki/display/AST/Installing+AsteriskNOW
Hi Billy,
I was logged in as root. All else seemed to go smoothly until I reached the “Make Samples” part.
A friend of mine found this, which provides more details as to what I’m seeing:
http://bamboo.asterisk.org/browse/TESTING-ASTERISK18BRANCH-AST18CENTOS32-578/
My friend said that this issue “is fixed in later versions of the installer.” Has this install process or some of the scripts changed since this posting was made?
FYI – I am installing this on a netbook – Asus 1005HA with 2 gig of memory and a 160 gig hard drive. I have CentOS 6.3 (Final) up and running with no issues. The machine has a wired network connection and is not using the wireless.
Any advice?
Thanks,
– Markus
…and tried installing this on a Dell Vostro 220s with 2 gig of RAM and plenty of hard drive space. Same result.
– Markus
hmm… it could be a bug. I would read through Bug Guidelines:
https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines
Follow the steps in the guide and if it turns out to be a bug you can submit it to the tracker.
hi , i followed all the instructions to install asterisk and it works correctly , until i lance this comond: service dahdi start , it shows me this: dahdi: unrecognized service , what should i do ?
Thank you for the quick response Billy. I will look into that. Great job on this gain!
Pros
oh Billy, I forgot to mention I am working on a project to install this in the cloud, I see the full install comes in a DVD which I have no access no option to do this in the cloud. any suggestions?
Thanks
Pros
Okay, I was able to install the asterisk-GUI following the link below:
https://wiki.asterisk.org/wiki/display/AST/Asterisk+GUI
Thanks
Hi Billy,
I am not going to submit a bug report. This is because 1) I’m brand new to Asterisk and 2) because my understanding of Linux is severely limited. My bug report would either have insufficient information to move forward or might lead someone to think this is a different issue than it really is and might pull resources away from other issues.
Given that I have been able to replicate this issue multiple times, on two machines that are totally different from each other, I think you would have to agree there is a problem here that is likely to affect multiple users.
I would be happy to run any diagnostic scripts anyone would like me to, and to be an active participant in finding the solution.
Question: what version of CentOS are you running? I loaded 6.3 (final). Do you think I would have better success with 6.2 or 6.1?
Thanks,
– Markus
Farah,
This could be caused my serveral different issues – make sure that you ran the “make config” command in the dahdi source. If this is not the issue I would recommend posting on forums.asterisk.org where you can get more detailed feedback.
Pros,
AsteriskNOW downloads as an ISO – you are free to burn that to a DVD but it is not necessary. Most VM software will let you load from an ISO. I’d recommend AsteriskNOW over using the AsteriskGUI on top of a source install for many reasons.
Markus,
I suggested the bug report because it’s actually pretty easy to fill one out. The guidelines are pretty clear about the information that’s needed and the issue tracker has fields so you log the versions of each software package you are using and other importnat information that’s difficult to get here on the blog. At this point it would be difficult to help you troubleshoot without more detailed information about your system and the errors you are encountering. I admire your persistence to learn and figure this out!
Welcome to Asterisk! We were all new once
I would recommend a few options –
1. Try submitting the bug. If if you don’t get it prefect, the bug marshalls will let you what you missed. (but if you read the guidelines, it’s pretty simple and you’ll have a high chance for success the fist time.) If it is a bug it’ll really help others out to have it tracked and get fixed. And since you can reproduce you are uniquely poised to help.
2. Additionally you can try installing with the exact versions that I used. As these are known to work. (but the updated versions should work.)
3. Finally I’d recommend posting on forums.asterisk.org. Although I’m happy to help on the blog, this is not a great format for troubleshooting. It works well for quick answers, but not to dig deeper. Additionally on the forums you’ll have multiple eyes on your problem. It’s a great way to get engaged in the Asterisk community!
[...] shown here. Here’s a quick guide to install to Ubuntu (close to debian installation) and CentOS. [...]
Very good tutorial
Hi Billy,
Thanks – I’ll pursue those avenues. Digging a little deeper, it looks like this has something to do with your 64 bit machine. Since all the components are downloaded through these instructions, it has to be something with CentOS. I am running 6.3, the same as you. Therefore the only difference is that my machines are 32 bit and yours is 64. Might be a good idea to re-name this thread, “How to install Asterisk 11 on CentOS 64 bit,” then do one for 32 bit. If you do, please leave a note here and I’ll go take a look!
Thanks,
– Markus
Excellent guide used to install asterisk 11.2.1 on CentOS 6.4
Just did a 64 bit CentOS 6.4 install for the first time. I notice that when loading the 32 bit CentOS 6.3, it did not ask me if I wanted to do a server install – there seemed to be only one flavor. Will give 6.4 a try and let you know how it works.
– Markus
Well that was a pretty short ride! I ran the installer, specifying a “basic server”. Upon re-boot, there was no GUI. I logged in, attempted to run “yum update -y” from the command line. Apparently the install did not load the network drivers – something I saw when attempting to use AsteriskNOW on this machine (a Dell Vostro 220s with 2 gig of ram and plenty of hard drive space.)
So the furthest I’ve gotten so far is to load CentOS 6.3 on a machine, then do the Asterisk install according to the instructions in this blog. It all works, except when I get to the “Make Sample” part.
Billy – do you know if anyone has done a successful install on a 32 bit machine?
– Markus
Markus,
Check the tutorial again a bit more carefully. The video and text show different commands for 32-bit and 64-bit installs. So you should not simply copy and paste all the commands, you need to read what they do and only use the ones that are particular to your system.
Also not the optional commands “make clean && make distclean” – you should only run this if you are re-installing over top of a previous install. If your install was successful then you should NOT run these commands prior to running “make samples” and following the rest of the tutorial.
Great Video – very helpful and detailed
I am no Linux or Asterisk expert but I found it easy to install thanks to the great video
Hey nice tutorial but at the part where the requirements are installed you should also add perl to the list since it’s not guaranteed to be present, for example on a new out-of-the-box CentOS 6.4 system
Hye!nice tutorial.working perfectly.but do you have any idea how to start asterisk on boot?
[...] i have installed asterisk 11 on centos 6 as per the instruction from Digium blog. The instruction i have followed to install is [...]
shah,
Running “make config” in the asterisk source directory adds the Asterisk start script to the /etc/init.d/ directory.
Along with starting Asterisk on boot, this also allows you to start, stop or restart asterisk with “service asterisk start | stop | restart”
Hi Billy,
Ok – solved one glitch but found another…
SOLVED: The issue with the samples was, indeed, the “make clean” command. I figured running that would be a good step. The tutorial said it wasn’t required, but it sounded like a good thing to do.
NEW: Ok, so I proceeded down the list. I ran the remaining commands in order:
– make config
– service dahdi start
– service asterisk start
When I got to that last command, here’s the error that popped up:
asterisk: unrecognized service
Some notes, mentioned in earlier postings: I am running this on a Netbook (Asus 1005ha) with 2 gig of memory and plenty of hard drive space and a fantastic Internet connection. The OS is CentOS 6.3 (final) 32 bit. I do not have any dahdi devices connected. The purpose of this install is 1) to have a portable Asterisk server for some unique projects, and 2) to begin tinkering with Asterisk server admin stuff before I ask my boss for some big iron.
Any thoughts?
Thanks,
– Markus
I should mention…
I tried to run the “asterisk -rvvv” command.
The error I got was, “Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
I looked in the /var/run/asterisk directory. It is empty.
Thanks,
– Markus
One other piece – according to these directions the “Make Configure” command near the end is supposed to add the Asterisk start script to the /etc/init.d/ directory. However when I go to that directory, I do not see any asterisk file there. I do see a dahdi file.
– Markus
Progress!
I went back and ran “Make Config” again. Then started Dahdi, which worked before. Then I tried to start Asterisk… this time it worked! I was able to enter the “asterisk -rvvv” command and I got a “connected to Asterisk” message!
So now i need to figure out how to get FreePBX running and then hopefully I have a functioning unit!
– Markus
merci beaucoup pour tout le travail.j’aimerais savoir si on peut utilise le serveur vocal pour asterisk 11
thank you thank you thank you very much, i use fedora 14 and asterisk 1.8.11.0. please give me tutorial for srtp use asterisk 1.8
Ok… the final step… installing FreePBX or some other kind of interface. The instructions for doing the install on the FreePBX website worked well. However when I tried to run the “./install_amp” command, the error message said, “bad interpreter: No such file or directory”. Granted, this install is looking for CentOS 5.5, not 6.3. There may be some other dependencies I’m not seeing.
So here’s a question for Billy or anyone else:
Is there a version of FreePBX or another GUI that will work with this install of Asterisk?
Thanks,
– Markus
Markus,
Those who install from source are typically not using a GUI for administration. I would recommend AsteriskNOW – installs CentOS 6, Asterisk 11 and FreePBX GUI. AsteriskNOW is also going to have the FreePBX Digium Phones module integrated for you.
http://www.asterisk.org/downloads/asterisknow
If you are installing for the sake of learning, or seeking to do highly customized integration work but then taking advantage of the FreePBX GUI for administration I’d recommend engaging the FreePBX community for installation help. There are a lot of great folks involved with the project. Asterisk and FreePBX are separate projects so you will typically get the best response when you engage the Asterisk community (forums.asterisk.org) on Asterisk-related questions and the FreePBX community (http://www.freepbx.org/community) on FreePBX-related questions.
Hi, I have the following error after installing asterisk ended with 11 on 64-bit CentOS 6.3, I can not start service asterisk:
[root@srvlinux41 ~]# /etc/init.d/asterisk status
asterisk dead but subsys locked
Miguel,
There are many possibilities. Make sure that SElinux is disabled as this can cause Asterisk to fail to start. Additionally you could look into /var/log/asterisk or start asterisk on the console with ‘asterisk -cvvv’ to see what is happening when it crashes – this will give you a clue as to how to troubleshoot further. Finally, try deleting the lock files from /var/run/asterisk/
Really excellent tutorial. All steps explained in the comprehensive video. I ran into one issue during installation on CentOS 64 bit whilst compiling the dahdi and that was a dependency on perl which i resolved by installing perl through yum. Many thanks.
Hello Guys,
I was using asterisk 1.4.44 and I went through all the steps shown in the video and it showed that it has been installed but when I start asterisk by “asterisk -rvvvv” it comes up with the old version i.e. Asterisk 1.4.44
Would anybody please help me in upgrading it to asterisk 11.
Thanks
Hello
i was using asterisk 11 with asterisk gui 2 , when i used followme does not work
please help me
Jas,
Upgrading from Asterisk 1.4 to Asterisk 11 is not a trivial task. (This would be the equivalent of upgrading from Windows XP to Windows 8.). !Don’t try the upgrade on a production machine! On your test server: To perform the upgrade you will want to make sure you have backed up all of you config files and any custom modules. Then delete all of /etc/asterisk and /usr/lib/asterisk/modules (assuming you use the default directories for those functions.) Make sure Asterisk and Zaptel (1.4 era version of DAHDI) are stopped. Then perform the steps in the tutorial. You will then see that you are now running Asterisk 11 with the sample configs, however, your 1.4 config files (especially extensions.conf) will most assuredly need to be re-written (possibly from scratch) in order remove deprecated syntax and update to modern options. In this endeavor the CHANGES file and UPGRADE.txt files in the Asterisk source will tell you all of the changes that happened in the software since 1.4 (You can’t say that about any Microsoft product!) Note: Any AGI/AMI integration may also need to be updated. This is all of the top of my head, there potentially other difficulties to encounter when try to upgrade. You may be better off starting with a fresh install of Asterisk 11 on a development server and building from scratch the functionality you need.
Upgrading from 1.6.2 to 1.8 or 1.8 to 11 would not be as difficult. But the jump from such an old version to modern Asterisk is great. Modern Asterisk is a whole new Asterisk, both in the new functionality it holds and the vastly greater efficiency with which it handles traditional features. Exciting new APIs are being built into Asterisk 12 that will make upgrading from 12 to 13 or 13 to 14 a much simpler process. Asterisk has greatly matured over the years. The benefits of moving to a modern version are surely worth your time. Simply note that having delayed the upgrade for so long means that the investment needed to make the change is greater in proportion to the delay.
Majed,
The forums or the users mailing list will be the best place to search for answers and ask for help with followme.
http://forums.asterisk.org/viewforum.php?f=1&sid=18cca20b74b7fa30707569eb806a4c71
http://lists.digium.com/mailman/listinfo/asterisk-users
Hello
We are interested in the development of communications web with WebRTC, on the Digium website indicate that Asterisk 11 provides that support can say that differences there is with Asterisk 1.8. I with Asterisk 11 do everything that makes Asterisk 1.8?. Also want to resell minutes. Can you help us to choose the best option?.
Thanks and greetings.
Billy
I was trying to install DAHDI on centos 6.4 with basic functions. I tried to follow the steps but I had some troubles with compyling DAHDI installer. And I couldn’t find any issue relative. I tried to update kernel to 2.6.38 then I installed automake autoconf dependencies and then DAHDI compiler worked. So I recommend update at the beginning those dependencies for simple instalations.
Thanks a lot for the tutorial. I still trying to config Asterisk
Thanks a lot for such an easy tutorial. 1st time i had trouble then i unistall and reinstall again and it worked like a charm