How to Install Asterisk 11 on Ubuntu 12.04 LTS

Last week I put up an install guide for Asterisk 11 on CentOS 6. Asterisk 11 is the latest LTS release of Asterisk with many great new features and long term support! To follow up on the previous tutorial, I’ve put together a step by step guide for Ubuntu 12.04. Although most of the steps are similar there are a few differences. This tutorial will work for Ubuntu, Debian and Debian-based distributions. View the CentOS guide for Redhat-based distributions. Watch the video for a screencast of my terminal session to see the install live with an explanation of each step. Below you’ll find the commands are printed for you to copy and paste.


For this install I am using Asterisk 11.0.1 and will be compiling from source on Ubuntu 12.04.1.

Before you begin the install process you will want to be sure that your server OS is up to date. When the update completes the server will reboot.

 apt-get update && apt-get upgrade -y && reboot

Next you will want to resolve basic dependencies. (More information on Asterisk dependencies.)

apt-get install build-essential wget libssl-dev libncurses5-dev libnewt-dev  libxml2-dev linux-headers-$(uname -r) libsqlite3-dev uuid-dev

Download the source tarballs. These commands will get the current version of DAHDI, libpri and Asterisk.

cd /usr/src/

Extract the files from the tarballs

tar zxvf dahdi-linux-complete*
tar zxvf libpri*
tar zxvf asterisk*

Install DAHDI

cd /usr/src/dahdi-linux-complete*
make && make install && make config

Install libpri

NOTE: libpri 1.4.13 won’t compile on Ubuntu 12.04 due to a bug ( See the video for how to apply a patch to fix the bug. (Edit: libpri 1.4.14 has been released with this bug fix included. If you are a using 1.4.14 or later you should not encounter this bug.)

cd /usr/src/libpri*
make && make install

Install Asterisk. Select your options when the menuselect command runs. Then select “Save & Exit” and the install will continue.

cd /usr/src/asterisk*
./configure && make menuselect && make && make install && make config && make samples


/etc/init.d/dahdi start

Start Asterisk and connect to the CLI

/etc/init.d/asterisk start
asterisk -rvvv

Verify your installation by checking for the DAHDI and libpri versions on the Asterisk CLI

*CLI> dahdi show version
DAHDI Version: 2.6.1 Echo Canceller: HWEC
*CLI> pri show version
libpri version: 1.4.13

Congratulations! You now have Asterisk 11 running on Ubuntu 12.04. To continue configuring Asterisk check out the quick start guide or take a look at the official Digium online training.

About the author

Billy is a Marketing Manager at Digium with a passion for Asterisk. You can find Billy on the web on Google+ and Twitter

120 Responses to “How to Install Asterisk 11 on Ubuntu 12.04 LTS”

  1. qMax

    Is there any ‘official’ ppa repository planned or intended?

  2. babyraj

    Good article and guide .I am interested to provide these kind of good and very helpful information to my blog site .Thanks a lot!

  3. Billy Chia

    Not at the moment, however as Asterisk is an open source project I would encourage you as a community member to get involved on this front. If you are familiar with packaging and using ppas you can connect with the open source dev team to let them know you’d like to package Asterisk and help to distribute it. Development topics can be posted the the dev mailing list:

    Troubleshooting and user issues should be posted to the user list:

    The current information for available packages can be found on the wiki:

  4. voisses tech

    I just upgrade my server to 12.04,I met with so much problem so I did a clean install.
    my greatest fear was,do I have to go through all the hoops ,like I did on my previous server? so I start with the things I thought was the hardest task.

    This tutorial was precise,I watch the steps first then dug into it and in about 25 minutes, asterisk was install successfully.
    i had to take a break as I could not believe it.So now on to hook up My Cisco phones.I am now considering to buy some digium phones instead

  5. efrain vazquez

    I apologize recommend migrating to version 11? I have one in production now in version 1.8

  6. Billy Chia

    Asterisk 1.8 and 11 are both currently supported:

  7. Solomon

    You are lifesaver ……. great tutorial …. keep in touch such work! U don’t know how much you helped me but me and God! tnx

  8. dunand

    in this line:
    apt-get install build-essential wget libssl-dev libncurses5-dev libnewt-dev
    libxml2-dev inux-headers-$(uname -r) libsqlite3-dev

    You forgot the “l” before inux-headers.

  9. mark

    I wonder if maybe the (l)inux-headers-$(uname -r) isn’t used – everything seems to be working…

  10. mark

    Thanks for posting this Billy – I just loaded it on an Intel Atom mini-ITX with Ubuntu 12.04 and got connected with my new SipStation service. Works great (it’s a minimal system, so far, but I’m really pleased it’s working.)

    I’ve been having problems getting reliable dial-in service from AXVoice and wanted to try another provider to see if it was better.

    I couldn’t get the SipStation service provisioned with FreePBX/Asterisk, but got it running in ‘raw Asterisk’.

    Anyway, thanks again!

  11. Billy Chia

    Thanks dunand – I updated the command to linux-headers-$(uname -r)

  12. iztech

    Thanks so much for the precise details of the install.
    Everything worked but…

    Can not make calls

    No SRTP module loaded, can’t setup SRTP session

    also checked updatedb;locate srtp

    the same setup with FREEPBX

  13. iztech

    @mark do you think you can post your sip.conf section for SIPSTATION. Considering getting it but we can’t use the SS module. Would like to configure but have not starting point.

  14. Billy Chia

    iztech – if you’d like to setup SRTP take a look at the secure calling tutorial on the wiki:

  15. iztech

    not that concerned about secure calling just cant get it to work with Callcentric

    Keep getting error the SRTP error, anyway to turn it off.

    Followed this setup for sip.conf

  16. Billy Chia

    iztech – I’d recommend posting your config files and cli output to the Asterisk support forum on

  17. Mark Amos

    @iztech – I’ve posted my sip.conf along with extensions.conf (and some other comments/issues) on my blog:

  18. calkev

    I have Asterisk 1.8 running on 12.04. Do I have to do anything different to install 11? Or will it install right over my old version? I can’t find instructions on how to upgrade.


  19. Billy Chia

    Upgrading between major versions of Asterisk is not a trivial task. Imagine your webserver is running Windows Server 2008 and you want to upgrade to Server 2012 – this would be a major project affecting everything hooked into the server. You will want to be sure to thoroughly review CHANGES and UPGRADES.txt in the Asterisk source. For more information see these links:

  20. Alishan

    Thank you for these info. very very helpful…

  21. Gokhan

    I installed dahdi, libpri and asterisk core to learn on my virtual ubuntu.
    I followed each step completely.
    Now I can start dahdi and asterisk core. but when I try to execute “dahdi show version” the CLI respon like that.
    “No such command ‘dahdi show version’ (type ‘core show help dahdi show’ for other possible commands)”

    where is my mistake?

  22. Billy Chia

    Note that DAHDI controls hardware cards used for PSTN connectivity and as such is only needed when you install on metal in a non-virtualized environment. (VMs don’t work well with hardware access.)

    So there are troubleshooting steps to follow (take note of the output during the DAHDI compile to make sure nothing failed. Stop asterisk, restart DAHDI, then start asterisk) but in your case it would be futile because you cannot use DAHDI in a virtualized environment anyway.

    For more information:

  23. onizukaek

    Great tutorial,

    I have a question anyway, is ubuntu 12.4 necessary to install asterisk 11 or would it be ok with Ubuntu 10.4?

    Thanks for your reply.

  24. Billy Chia

    Yes, Asterisk will run just fine on other flavors of Linux including other versions of Ubuntu given all of your dependencies can be resolved.

  25. Satyavrat

    Dear Billy
    After making a decision to be an Asterisk Partner your blog was some thing that comes as a source of inspiration and reinforces the trust in my own decision that there is support available and I CAN MAKE BUSINESS REALITY in SIX months time if persisted.

    After bumpy ride for three days managed to install Asterisk in two hours with the help of your youtube video. I will really appreciate if you could extend the same video to set up first voip call.

    I have been trying to find information but till not found scattered info. Started reading the Asterisk book anticipating that in a day I will reach the goal but till now after 8 hour no luck.

    please share / point to resource which will help.

    Best Regards
    Satyavrat Sharma
    Sydney Australia

  26. Billy Chia

    Here is the video tutorial on how to configure Digium phones with Asterisk:

  27. Owen


    i having a problem to asterisk folder when i command “make” , “make install” and “make config” I got

    make[4] ** [depend] Error 1
    make[3] ***[dep] Error2
    make[2] *** [pjproject] error2
    make[1] *** [res] error2
    make[1]: leaving directory
    make: *** [_cleantest_all] Error 2

    for help

  28. Billy Chia

    Be sure that you have properly resolved all dependencies. For more information see the wiki:

  29. TM

    This was an excellent tutorial, especially for a newcomer to Linux such as myself. Very well explained.

    Although I’m running Ubuntu on a VM, Luckily for me, I followed all the steps and got everything running in about 20 minutes.

    Good job dude!

  30. richa

    m having a problem in the later part.. my configuration and installation went fine bh when i am trying to install sip phone , similar to your quick guide link the tar-zxvf command does not work where am i wrong ? also when i am trying to install another sip phone it gives 404 error ! please help .
    waiting for your early response :)

  31. Billy Chia

    Setting up SIP phones is outside the scope of this basic installation from source tutorial. I would recommend posting on in the support forum. Be sure to include detailed steps about what you have done and include the console output that is generating the error.

  32. HoangTung

    It’s good tutorial .
    I did as your tutorial but when i start dahdi
    /etc/init.d/dahdi start

    It’s error ,

    /etc/init.d/dahdi start
    Loading DAHDI hardware modules:
    FATAL: Module dahdi not found.
    wct4xxp: error wcte12xp: error wct1xxp: error wcte11xp: error wctdm24xxp: error wcfxo: error wctdm: error wcb4xxp: error wctc4xxp: error xpp_usb: error

    Error: missing /dev/dahdi!

  33. HoangTung

    Coulud you explain my error ??

  34. Native

    /etc/init.d/asterisk start no such file or directory. i cant start asterisk

  35. JulioGlz

    Hi, this is an excelent tutorial.
    i hope someone can help me. i got an error when i tried to install asterisk, something with the mpg123.h the script doesn´t work ” contrib/scripts/ ” i tried a lot of things and i couldn´t make it work.

    i dont know if i missing something.

    *** ***
    *** —> READ THIS OR YOUR BUILD WILL FAIL format_mp3.o
    format_mp3.c:39:24: fatal error: mp3/mpg123.h: No such file or directory
    compilation terminated.
    make[2]: *** [format_mp3.o] Error 1
    make[1]: *** [addons] Error 2
    make[1]: Leaving directory `/usr/src/asterisk-11.3.0′
    make: *** [_cleantest_all] Error 2


  36. Jordan

    When you go through this installation as shown on the video, does it install a GUI for Administering the system or is there another download / installation?

  37. Midhilesh

    Its really good for me to install asterisk very easily. I am using asterisk 11.4.0rc1.
    Can i get sms without using any GSM modem/Phone.

    Please advice

  38. Floyd

    Ok, this is a bit off track. I have been working on using Ubuntu to run the Ham Radio Allstar Network and have had zero help from anyone there as everyone uses Acid. I think more Hams would use the system if it were not all Command Line but at least Ubuntu streamlines Linux greatly. I would appreciate hearing from anyone interested in this or especially using Ubuntu on the Allstar Network. A quick note about me: I am a old Basic and have years of Winblows and MS Server experience at work but Linux is relatively a new venture so hooking up with someone with Linux cli experience would be wonderful!

  39. Billy Chia

    There could be an issue with your kernel version, make sure you updated and rebooted before you downloaded the kernel headers dependency. Keep in mind that you don’t need dahdi unless you are using telephony hardware. If you are using Digium hardware you can contact support for help with the hardware:

    There are many causes for this message to arise, i would recommend posting a detailed description of your system and install process on the community support forums:

    I’m not familiar with the format_mp3.o module, did you attempt to install this from the Asterisk add ons packages? If so that’s only for old versions of Asterisk. You should select the format_mp3 module from menuselect, be sure you have all the correct dependencies. If you are getting the module from menuselect, then it could be a bug – submit to

    This tutorial is for those who want to compile from source. Although it’s possible to install an Admin GUI after you compile Asterisk from source it is more common to use AsteriskNOW to install the GUI


    If you want to send SMS to a mobile phone then you need to get onto the network somehow. Chan_dongled with USB GSM modem seems to be a popular way to do this. I would recommend searching Google, the Asterisk forums ( and the user mailing list to read up on Asterisk and SMS. Ask additional questions on the forums or the mailing list as SMS is outside the scope of this installation tutorial.

    I know there are folks who use Asterisk with Ham – you might have better luck connecting with folks by posting to the Asterisk user’s mailing list. If your implementation does not involve Asterisk you should direct your questions to the Ubuntu community where you are sure to get a more relevant response.

  40. Tyler

    I don’t know if I can post this here but I recently wrote up 3 tutorials for Ubuntu 13.04 involving installing asterisk and configuring it either a basic way or a more advanced way.

    Anyways here they are.

    I put a lot of detail in these so most people who are familiar around a command line should be able to complete these.

  41. Jorge

    Excelente!. Muy buen tutorial. Muchas Gracias!

  42. Husam

    is there a release for ubuntu 12.4.1 ?
    there is nothing like that!!
    it’s 12.04
    check this

  43. Andrew

    I am trying to install asterisk on an Amazon Web Services EC2 instance so that I can learn asterisk. the OS I used is 64bit:
    Ubuntu 12.04.2 LTS (GNU/Linux 3.2.0-40-virtual x86_64)

    I followed this tutorial and everything went great until I got to “/etc/init.d/asterisk start” and it will not start. here is a copy of the terminal session:

    “root@ip-10-245-90-198:/usr/src/asterisk-11.3.0# make config

    Adding system startup for /etc/init.d/asterisk …

    /etc/rc0.d/K91asterisk -> ../init.d/asterisk /etc/rc1.d/K91asterisk -> ../init.d/asterisk

    /etc/rc6.d/K91asterisk -> ../init.d/asterisk

    /etc/rc2.d/S50asterisk -> ../init.d/asterisk

    /etc/rc3.d/S50asterisk -> ../init.d/asterisk

    /etc/rc4.d/S50asterisk -> ../init.d/asterisk

    /etc/rc5.d/S50asterisk -> ../init.d/asterisk

    root@ip-10-245-90-198:/usr/src/asterisk-11.3.0# /etc/init.d/dahdi start

    Loading DAHDI hardware modules:

    wct4xxp: done wcte12xp: done wct1xxp: done wcte11xp: done wctdm24xxp: done wcfxo: done wctdm: done wcb4xxp: done wctc4xxp: done xpp_usb: done
    Running dahdi_cfg: done.

    root@ip-10-245-90-198:/usr/src/asterisk-11.3.0# /etc/init.d/asterisk start

    * Starting Asterisk PBX: asterisk
    Illegal instruction (core dumped)

    root@ip-10-245-90-198:/usr/src/asterisk-11.3.0# asterisk -rvvv
    llegal instruction (core dumped)”

    I am new to Linux so I am not sure how to get more info about the error.

  44. Billy Chia

    If you connect to Asterisk using `asterisk -cvvv` you should see more debugging information. (the -c flag connects directly to asterisk within that console shell instead of running asterisk as a service.) Typically this type of error is related to hardware issues, however as you are virtualizing I’m not sure what the potential problem could be. Although virtualizing Asterisk is common, and Asterisk on EC2 is successfully used for many production systems it is not an area where I have personal experience. I would recommend searching the users mailing list archive for other’s posts who have had the same error:

    Try the solutions there, or it could possibly be a bug:

    Note: compiling from source and virtualization are advanced topics for those with Linux experience. If you are new to Linux this will be a difficult process wrought with much googling. This doesn’t mean that you can’t learn as a beginner – just that it will take a lot of effort on your part to come up to speed by seeking out the resources available on the web.

    If you are looking for an easier way to get up and going with Asterisk quickly then running AsteriskNOW on standard hardware is very simple to set up:

    When making a technical post it can be good to be pedantic. Thanks for the heads up! I’ve updated some of the references. Although for all intents and purpose a remaining references to “12.4” can be treated as referring to “12.04”.

  45. Thiago

    i will try when i come at home.

    But great tutorial man, i have alot of problems installing the asterisk without elastix exactly that way.

    If works i will post here again.

    Best regards.

  46. xtreme

    When i run the following command, nothing appears after Echo Canceller:
    any idea how to enable it??

    *CLI> dahdi show version
    DAHDI Version: 2.6.1 Echo Canceller:


  47. Fistandantilus

    to resolve the error:
    format_mp3.c:39:24: fatal error: mp3/mpg123.h: No such file or directory
    yum install -y svn

  48. Lucky

    Hi Billy,

    Thanks for the great tutorial, what if the a2billing is on a seperate server and actually exsiting (a2billing 2.0.4) what are the changes that needs to be done. Thanks in advance.

  49. Frank

    Hi Billy,

    Trying to set up Asterisk 11 after compiling and installing when trying to place a call I got the following error: ast_rtp_instance_new: No RTP engine was found.”

    I noticed that when I execute make menuselect res_rtp_asterisk is not available (have XXXX) for Asterisk 11, I thought it was a library dependency issue but trying to troubleshoot the problem I downloaded asterisk 1.8 and when executing make menuselect for 1.8 res_rtp_asterisk is available.

    I am having a hard time to identify what might be the issue, do you have any suggestion?


  50. Billy Chia

    When using menuselect if you move the cursor to the Module with XXX you should see a “Depends on” section that tells you what dependencies you are missing. You may need to update/install additional dependencies.

    See more about using Menuselect on the Asterisk Wiki:

    If this simple fix doesn’t solve your problem I’d additionally recommend…

    – reviewing the postings on the Asterisk Forums with the same issue:

    – reviewing the Users Mailing List:

    If you can’t resolve the issue with the steps other’s have already suggested, I would recommend posting on either the forums or mailing list (or both) with unique aspects of your issue. I’ve seen a lot of positive engagement from the Asterisk Community on the forums/mailing list.

  51. Haddad

    It’s done. Thank you very much.
    I have a problem connecting SIP Zoiper client on virtualbox windows 7. it is registering and still registering but it doesn’t register. i have disables the firewall of Ubuntu by using the command “ufw disabled” but the same problem. Wireshark sniffer tell me that ICMP destination unreachable.

  52. Billy Chia

    If you are virtualizing with virtualbox then you are going to have to several networking issues to correct in order to get everything communicating.

    Normally I would recommend posting on the Asterisk froums:

    or Asterisk users mailing list

    but in this case your problem is with your network and your virtualization. I would recommend going to the VirtualBox community first. Set up your network path so that you can get an ICMP packet to return. If you can do this then your phone should register no problem.

  53. Dipin Thomas


    Thank you.. I got it configured like a very easily, your video was helpful..

    I am starting with configuration very soon, do help me with my doubts.


  54. oscar

    I am oscar from DRC and thank you for procedure facilities but i would like to know sip phone because is a one IP phone from china and dont have command to add it

  55. Billy Chia

    There is good documentation on adding SIP phones on

  56. musaib


    It was a great tutorial to follow until a run ‘make’ command and faced following issue:

    # make
    CC=”cc” CXX=”” LD=”” AR=”” RANLIB=”” CFLAGS=”” LDFLAGS=”” make -C menuselect CONFIGURE_SILENT=”–silent” makeopts
    make[1]: Entering directory `/usr/src/asterisk-11.5.0/menuselect’
    make[1]: `makeopts’ is up to date.
    make[1]: Leaving directory `/usr/src/asterisk-11.5.0/menuselect’
    Generating embedded module rules …
    make[1]: *** No rule to make target `../addons/’, needed by `asterisk’. Stop.
    make: *** [main] Error 2

    i am stuck on this issue and cudnt find any solution on google.
    Kindly help!

  57. Billy Chia

    It looks like this is a bug that takes effect when you try to install all of the modules. A line gets added to the makeopts file that causes the compile error:


    try deleting this line and then recompile.


  58. Alex

    Hai Billy, i wonder where the sip.conf file and the other files such as extensions.conf located i can’t find them in the directories. All i can find is only the sip.conf.sample in the configs folder. From what i found on the internet it says it is located in etc/asterisk. But i don’t seem to find them.

  59. Billy Chia

    Running the “make samples” command in the Asterisk source directory will copy the sample files from the configs subdirectory to /etc/asterisk

    Note – you don’t want to run this command on a production system, or one you’re already configured as you run the risk of overwriting your configs, but for a fresh install / lab machine it’s the fastest way to get up and going.

  60. dannd

    hello. how can i install freepbx on ubuntu 12.4.3? do you have a video installing asterisk 11 and freepbx on ubuntu 12.4.3…. on virtual hosting….

  61. Billy Chia

    If you are looking for a GUI, AsteriskNOW is what you want –

    You can also check out

  62. Daniel


    i hope this is the right place to ask this question! i have a PCI modem with a SIM card on it … installed on /dev/ttyS4 … my question is can asterisk use this modem to make calls ?

    Thanks in advance

  63. Billy Chia

    As your question is unrelated to Asterisk installation your best best is to query the Asterisk community:

  64. Talha

    I have succesfully installed the following on Ubuntu 13.04 using your tutorial. It was great !
    Asterisk 11.5.1
    DAHDI Version: Echo Canceller:
    libpri version: 1.4.14

    I would like to configure ANY SOFT PHONE (like zoiper etc) with asterisk in order to make a test call. Can you please help ? Thankyou

  65. Carlos Hernandez

    hi! i have succesfully installed asterisk 1.8 on elementary os, asterisk is running well making calls with sip, but i need tu use the h.323 channel, how do you install it, i havent found any tutorials, please help!!

  66. Carlos Hernandez

    ok thanks!! can you help me with the asterisk-addons, do you know how to install those?

  67. Billy Chia

    Asterisk-addons has not been used since Asterisk 1.6.2, meaning it’s not longer a needed package. All of the content that was in the addons is now a regular part of the menuselect tool.

  68. mussyman

    perfect..install worked perfect on ubuntu on HP sleekbook. Thanks Billy.

  69. carlos hernandez

    great tutorial!! didnt have trouble like i did on centos. So just to make sure, to add sip or iax clients, i just have to add them on the config file? and after that add the same parameters on the client?

  70. Ambiorix

    Billy. I use to run Asterisk on Ubuntu Server, and many people blame on me for this, and they ask me why not CENTOS or Debian, My question is there any major benefit running Asterisk on CENTOS that i dont know, it look like CENTOS is the best option for Asterisk due that all the Asterisk appliance run on CENTOS.

  71. Billy Chia

    Asterisk will run on any UNIX-based platform. Most run on Ubuntu or CentOS, but it can run on any Linux distribution.

  72. Best

    Billy please i need your help on few questions.
    I want to install Asterisk server for two different university campuses (say campus A and B); the goal is to enable students to make free VoIP calls using SIP softphones within the campus LAN (even without internet service)
    If only 10,000 students will be registered on Campus A and 10, 000 on Campus B.

    Q1: Please what will be the system requirements of the Asterisk server for each campuses (e.g. server type, processor speed, RAM, board etc)

    Q2: In order to manage and register each students, I want to create a web interface on my website (that will interface with my own asterisk server) so that students can individually register their SIP phone credentials on the server (like username, password, and automatic extension number assignment) this will save me from having to manually register over 20,000 extensions on the server. Also, this will enable the students to communicate even when off-campus. Please billy, any idea on how to do this?

    Q3: How do i synchronize the database for each school (on my website)to their individual on-premise asterisk server so that free VoIP calls can be made within the campus LAN even if a student does not have internet access.
    Kindly help me out. Please don’t ignore my message.

  73. carlos

    What tool can i use to measure the Qos parameters like jitter, delay, packet loss and band with? I am comparing SIP and IAX and i would like to get those parameters for each protocol to get a comparison of the two protocols

  74. Billy Chia

    Best and Carlos,
    Your questions are outside the scope of this installation tutorial. I would recommend that you query the Asterisk community. However, before posting on the forums or mailing lists – you should do your research first (e.g. google for answers) the community tends to be very helpful, but not very tolerant of “please google this for me” type questions. Your nature of your questions show that you have not put much effort into researching the answers before asking, so I recommend you do some research first and then query the community:

    I will mention one note on dimensioning Asterisk (e.g. “how much processor, RAM, etc.. do I need?”) The answer to this question is “It depends.” There are are a vastly large number of variables that come into play. How you are using Asterisk will dictate how performant it is.

  75. Martin Dahl-Larsen

    Nice job!
    (a bit long, just a thought maybe you could skip-forward the build stuff)

    Anyway great video – spot on :-)

    Take Care
    Martin Dahl-Larsen

  76. raheel qureshi

    after installing asterisk server…every package installed properly but i showed on my browser………….. please suggest me

    Not Found

    The requested URL was not found on this server.
    Asterisk Server
    on terminal status is good,,,,,,,,

    root@ubuntu:~/asterisk- sudo make checkconfig
    — Checking Asterisk configuration to see if it will support the GUI —
    * Checking for http.conf: OK
    * Checking for manager.conf: OK
    * Checking if HTTP is enabled: OK
    * Checking if HTTP static support is enabled: OK
    * Checking if manager is enabled: OK
    * Checking if manager over HTTP is enabled: OK
    — Everything looks good —
    * GUI should be available at http://ubuntu:8088/asterisk/static/config/index.html

    * Note: If you have bindaddr= in /etc/asterisk/http.conf
    you will only be able to visit it from the local machine.

    Example: http://localhost:8088/asterisk/static/config/index.html

    * The login and password should be an entry from /etc/asterisk/manager.conf
    which has ‘config’ permission in read and write. For example:

    secret = mysecret3153
    read = system,call,log,verbose,command,agent,config
    write = system,call,log,verbose,command,agent,config

    — Good luck! —

  77. Billy Chia

    The Asterisk GUI is no longer maintained and should not be used:

    If you would like to use a GUI with Asterisk I would recommend using AsteriskNOW:

  78. santosh

    I am getting this error while installing the libpri -1.4.14. I need you assist to fix this error. and your help will be appreciated.
    sudo patch pritest.c pritest.patch
    patching file pritest.c
    Hunk #1 FAILED at 64.
    1 out of 1 hunk FAILED — saving rejects to file pritest.c.rej

  79. Billy Chia

    If you are using libpri 1.4.14 then you should not need to apply the patch. The patch was only for version 1.4.13.

  80. Derick

    Thanks Billy, instructions have been straight forward.

  81. David

    Thank you billy for the instrutions, the only problem that i’ve found was the errors with dahdi when i try to install it using sudo, changing to root is a must aparently. It’s good to have people like you making this kind of things a little bit easier.

  82. Fradit

    im so finally instal asteriks .
    how setting account user VOIP in asterisk ?

  83. Valdemar

    Billy Chia thanks for sharing your work and further contribute to our community.

    Well I’m having problems when you squeegee the:

    “#. / configure && make && make menuselect && make install && make config && make samples”

    I even open the ‘menuselect’ and set up but after that it runs ‘make install’ returns me this error at the end of make:

    make [1]: *** [aelparse] Error 1
    make: *** [utils] Error 2

    Note: this is my second attempt to run asterisk on ubuntu 12.04.4 with this failure.

    I am new to linux and I’m studying the asterisk for on a daily basis.

  84. Valdemar

    Billy Chia I got inside the ‘menuselect’ I had selected all the ‘extended’ options! unselect all and it worked thanks!

  85. Tommy

    Dear Billy

    Any article to install asterisk 12 on ubuntu server? really appreciated!

  86. chandana

    thank you so much.It was so helpful

  87. Raheel

    Is Asterisk 11.5.0 is compatible for Asterisk gui 2.1.0,….?

  88. Raheel

    My CLI promnt is ………………Connected to Asterisk currently running……………….on my server but i removed from os……………………………after that i installed Asterisk 11.5.0 but we are showing error on my web brower,,,,,,,,,,,,how can we solve this issue………………please help me

  89. Raheel

    now i resolve my issue but in the GUI screen, my user name nd password are invalid ……..on the other hand i manage my etc/asterisk/ manager.conf is properly set az per reuirement…………please any body response me ……………………………..

  90. Billy Chia

    The “Asterisk GUI” is no longer maintained and should not be used

    If you are looking for a GUI to use with Asterisk you should look at AsteriskNOW which uses the FreePBX GUI

  91. rajen

    Hi Billy,
    I had configure asterisk11 on linux machine properely.Now i want to run some Sip client to establish call .I used Zoiper(as instucted in one of digium pdf) and add account but not able to register with server.

    I am beginner.I had changed sip.conf,extenssion.conf,iax.conf,module.conf as…/asterisk_quick_start_guide.pdf‎

    Kindly help me out for that problem or suggest some sources for university project.

    Thanking you

  92. Alfred

    Hi Billy,
    i have followed instruction above on asterisk installation but got error when i try to start asterisk.
    root@alfred:~# /etc/init.d/asterisk start
    * Starting Asterisk PBX: asterisk Privilege escalation protection disabled!
    See for more details.
    thank you.

  93. Alfred

    Hi Billy,
    Have problem my asterisk cannot start after installation, i have this error
    root@alfred:~# /etc/init.d/asterisk start
    * Starting Asterisk PBX: asterisk Privilege escalation protection disabled!
    See for more details.
    Help to solve it.
    Thank you.

  94. samia

    I started y project for memory of master for VOIP .I installed ubuntu 13.04
    but i can’t installed asterisk.
    Please why can install asterisk in details ,and what is the best version who is compatible with ubuntu13.04

  95. Billy Chia

    For current installation help I would recommend asking the Asterisk Community here:

    More info at

  96. Talha

    I followed your tutorial & it helped me a lot. I recently switched to AsteriskNOW.
    I wanted to ask if SMS Messaging / Text Messaging is possible with AsteriskNOW ?
    I am using Asterisknow 3.0.1/Freepbx 2.11
    I use Portgo on Windows & Android. I was wondering if the Text Message option would work on it.

  97. Billy Chia

    I am not familiar with Portgo, however I would recommend asking the community on the forums:

  98. Dileesh

    Tried installing Asterisk 11.9.0 with the above reference. It went fine but at the end got WARNING related to component module libraries.

    ¨Your Asterisk modules directory, located at /usr/lib/asterisk/modules
    contains modules that were not installed by this version of Asterisk.¨

    Tried with the following command:

    rm -rf /usr/lib/asterisk/modules
    make install

    to install the modules that support my current Asterisk verison buit didn´t worked.
    Kindly, let me know the commands to install the component module libraries from my currernt version of Asterisk.


  99. Billy Chia

    Yes, Asterisk modules are version dependent so upgrading from a different version of Asterisk requires the previous version’s modules to be removed from the /usr/lib/asterisk/modules directory.

    Make sure Asterisk is stopped and not running. Then go through the full install process again.

  100. Hassan LOPOUA

    Hi Billy
    How can we add installation of libss7 on your job please.

  101. Muhammad Nouman

    Dear Sir,
    I installed Asterisk On Ubuntu using Vmware Workstation through this Toutrial. But I d’nt know what next step is .
    I installed Zipoer On my desktop and asterisk on ubuntu server using vmware. I want to configure zioper and IP phones with asterisk . So make call . Kindly Sir tell what nxt step with complete guide . thaks

  102. Martin Haeberli

    trying to build on Ubuntu 12.04 ARM – get this error
    “fatal error: sys/vmmeter.h: No such file or directory”

  103. mridul

    Hi Billy,
    I installed Asterisk On Ubuntu but cant install opus codec, plz help me.

  104. Saeed Nawaz

    I did all the procedures as mentioned above but I’m having this problem now:

    Loading DAHDI hardware modules:
    wct4xxp: done wcte43x: done wcte12xp: done wcte13xp: done wct1xxp: done wcte11xp: done wctdm24xxp: done wcaxx: done wcfxo: done wctdm: done wcb4xxp: done wctc4xxp: done xpp_usb: done
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_TIME = “ur_PK”,
    LC_MONETARY = “ur_PK”,
    LC_ADDRESS = “ur_PK”,
    LC_TELEPHONE = “ur_PK”,
    LC_NAME = “ur_PK”,
    LC_NUMERIC = “ur_PK”,
    LC_PAPER = “ur_PK”,
    LANG = “en_US.UTF-8″
    are supported and installed on your system.
    perl: warning: Falling back to the standard locale (“C”).
    Running dahdi_cfg: done.

    Also my asterisk is not starting. It gives me this error:
    * Starting Asterisk PBX: asterisk Illegal instruction (core dumped)

    Any solution? Please.


  105. Asterisk 11 on Ubuntu 12.04 LTS | A WordPress Site

    […] cd /usr/src/ wget wget wget […]

  106. Umar

    Billy! you resolved my biggest problem buddy

  107. Asterisk Mp3 Downloads Asterisk

    […] File Name : How to install asterisk 11 on ubuntu 12.04 lts | inside Source : Download : How to install asterisk 11 on ubuntu 12.04 lts | inside […]

  108. Hubie

    Hello Billy,
    I have successfully installed asterisk 11.15.5, but I was not able to make and make install libpri. I received the following message instead: /bin/sh:1 cannot create version.c.tmp: Permission denied.
    make: *** [version.c] Error 2.
    When i type the command pri show version in asterisk CLI, I get this message: no such command ‘pri show version’. I searched for help on the net, but couldn’t find any. CAN YOU PLEASE HELP ME GET TO THE BOTTOM OF THIS ISSUE. MANY THANKS

  109. Firoj

    I am new to asterisk. Try to follow your tutorial. But when I tried to run /etc/init.d/asterisk start command then it returns an error “bash: /etc/init.d/asterisk: No such file or directory”.

    I didn’t get any error while installing Asterisk by executing below command
    cd /usr/src/asterisk*
    ./configure && make menuselect && make && make install && make config && make samples

    My environment details:
    1. Ubuntu 14.04 LTS (installed in VMWare)
    2. RAM 1 GB

    Please help me to solve the problem.

  110. ouss

    hi billy, nice tuto
    i’m trying to install linux and dahdi on a raspberrry and i’m getting this error when i tried to make on dahdi

    [root@localhost dahdi-linux-complete-]# make
    make -C linux all
    make[1] : on entre dans le répertoire « /usr/local/src/dahdi-linux-complete- »
    make -C drivers/dahdi/firmware firmware-loaders
    make[2] : on entre dans le répertoire « /usr/local/src/dahdi-linux-complete- »
    make[2] : on quitte le répertoire « /usr/local/src/dahdi-linux-complete- »
    You do not appear to have the sources for the kernel installed.
    make[1]: *** [modules] Erreur 1
    make[1] : on quitte le répertoire « /usr/local/src/dahdi-linux-complete- »
    make: *** [all] Erreur 2

    i tried to search and haven’t find the solution yet,
    i would really appreciate if you helped me thanks in advance

  111. umair

    i tried to install everything according to the tutorial however when i ran the make command against dadhi this happened

    /usr/src/dahdi-linux-complete- make
    make -C linux all
    make[1]: Entering directory `/usr/src/dahdi-linux-complete-’
    make -C drivers/dahdi/firmware firmware-loaders
    make[2]: Entering directory `/usr/src/dahdi-linux-complete-’
    make[2]: Leaving directory `/usr/src/dahdi-linux-complete-’
    make -C /lib/modules/3.18.0-kali3-686-pae/build SUBDIRS=/usr/src/dahdi-linux-complete- DAHDI_INCLUDE=/usr/src/dahdi-linux-complete- DAHDI_MODULES_EXTRA=” ” HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
    make[2]: Entering directory `/usr/src/linux-headers-3.18.0-kali3-686-pae’
    CC [M] /usr/src/dahdi-linux-complete-
    /usr/src/dahdi-linux-complete- In function ‘t13x_set_linemode’:
    /usr/src/dahdi-linux-complete- error: implicit declaration of function ‘smp_mb__after_clear_bit’ [-Werror=implicit-function-declaration]
    cc1: some warnings being treated as errors
    make[5]: *** [/usr/src/dahdi-linux-complete-] Error 1
    make[4]: *** [_module_/usr/src/dahdi-linux-complete-] Error 2
    make[3]: *** [sub-make] Error 2
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/usr/src/linux-headers-3.18.0-kali3-686-pae’
    make[1]: *** [modules] Error 2
    make[1]: Leaving directory `/usr/src/dahdi-linux-complete-’
    make: *** [all] Error 2

    I have no idea where i just went wrong?
    Is there a more recent page for the install of the new versions of asterisk or as a up to date forum

    Thanks in advance

  112. umair

    I’m a genius

    If any one else comes across the same problem.

    But i have a new problem, when i run make config at the end for asterisk i get this

    root@pentest:/usr/src/asterisk-11.16.0# make config
    update-rc.d: using dependency based boot sequencing

  113. Cara Instal Ubuntu 12.04 Lts | info.tgi.m

    […] How to install asterisk 11 on ubuntu 12.04 lts – inside […]

  114. Aisha Ishaq

    I tried to run this command of dahdi but it is saying no such command. where am i doing error ?

    *CLI> dahdi show version
    DAHDI Version: 2.6.1 Echo Canceller: HWEC
    *CLI> pri show version
    libpri version: 1.4.13

  115. namto

    thanks that work great even with an asterisk 13

  116. Murali

    I need installation and configuration of Asterisk in CentOS 7.

  117. Hans

    i tried to install asterisk-addons on centos 6.5 and i already install asterisk version 11 so asterisk-addons1.4.9 give me a bugg cdr_mysql.conf error so can someone help me telling if the version compatible please billy

Leave a Reply