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.

VIDEO

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/
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*

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 (https://issues.asterisk.org/jira/browse/PRI-145). 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

Start DAHDI

/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

103 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

    Billy Chia

    qMax,
    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: http://lists.digium.com/mailman/listinfo/asterisk-dev

    Troubleshooting and user issues should be posted to the user list:
    http://lists.digium.com/mailman/listinfo/asterisk-users

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

    https://wiki.asterisk.org/wiki/display/AST/Asterisk+Packages

  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

    Billy Chia

    efrain,
    Asterisk 1.8 and 11 are both currently supported:

    https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions

  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

    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

    REQUEST
    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

    Billy Chia

    iztech – if you’d like to setup SRTP take a look at the secure calling tutorial on the wiki: https://wiki.asterisk.org/wiki/display/AST/Secure+Calling+Tutorial

  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
    http://www.callcentric.com/support/device/asterisk/1_8

  16. Billy Chia

    Billy Chia

    iztech – I’d recommend posting your config files and cli output to the Asterisk support forum on forums.asterisk.org
    http://forums.asterisk.org/viewforum.php?f=1&sid=7e1a15599dfb845c84c9d9b0d68f4bb3

  17. Mark Amos

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

    http://mark-amos.blogspot.com/2013/01/more-pbx-adventures.html

  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.

    Thx

  19. Billy Chia

    Billy Chia

    calkev,
    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:
    http://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/Installing_id36058887.html
    https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+11

  20. Alishan

    Thank you for these info. very very helpful…

  21. Gokhan

    Hello,
    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

    Billy Chia

    Gokhan,
    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:
    http://ofps.oreilly.com/titles/9781449332426/asterisk-OutsideConn.html#OutsideConnectivity_id271202

  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

    Billy Chia

    onizukaekon,
    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

    Billy Chia

    Satyavrat,
    Here is the video tutorial on how to configure Digium phones with Asterisk: https://www.youtube.com/watch?v=ycTg4e-1PYA

  27. Owen

    Hi,

    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

    thanks,
    for help

  28. Billy Chia

    Billy Chia

    Owen,
    Be sure that you have properly resolved all dependencies. For more information see the wiki:
    https://wiki.asterisk.org/wiki/display/AST/System+Libraries

  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

    hello,
    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

    Billy Chia

    richa,
    Setting up SIP phones is outside the scope of this basic installation from source tutorial. I would recommend posting on forums.asterisk.org 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/get_mp3_source.sh ” 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

    thanks

  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

    Billy Chia

    HoangTung,
    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:
    http://www.digium.com/en/support/contact

    Native,
    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:
    http://forums.asterisk.org/viewforum.php?f=1&sid=9823121c715c7781aab52e957a9903bf

    JulioGlz,
    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 issues.asterisk.org

    Jordan,
    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 http://www.asterisk.org/downloads/asterisknow

    Midhilesh,

    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 (forums.asterisk.org) and the user mailing list http://lists.digium.com/mailman/listinfo/asterisk-users 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.

    Floyd,
    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. http://lists.digium.com/mailman/listinfo/asterisk-users 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.

    http://draalin.com/installing-asterisk-in-ubuntu/
    http://draalin.com/basic-asterisk-configuration-in-ubuntu/
    http://draalin.com/advanced-asterisk-configuration-in-ubuntu/

    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 http://releases.ubuntu.com/

  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
    I
    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

    Billy Chia

    Andrew,
    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:

    http://bit.ly/10f4Bwc

    Try the solutions there, or it could possibly be a bug:
    https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines

    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:
    http://www.asterisk.org/downloads/asterisknow

    Husam,
    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:

    thanks…

  47. Fistandantilus

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

  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?

    Thanks

  50. Billy Chia

    Billy Chia

    Frank,
    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:
    https://wiki.asterisk.org/wiki/display/AST/Using+Menuselect+to+Select+Asterisk+Options

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

    - reviewing the postings on the Asterisk Forums with the same issue:
    http://forums.asterisk.org/search.php?st=0&sk=t&sd=d&keywords=no+rtp+engine+was+found

    - reviewing the Users Mailing List:
    https://www.google.com/search?q=site%3Alists.digium.com%2Fpipermail%2Fasterisk-users%2F+No+RTP+engine+was+found&oq=site%3Alists.digium.com%2Fpipermail%2Fasterisk-users%2F+No+RTP+engine+was+found

    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

    Billy Chia

    Haddad,
    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:

    http://forums.asterisk.org

    or Asterisk users mailing list

    http://lists.digium.com/mailman/listinfo/asterisk-users

    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

    Billy,

    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.

    Thanks

  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
    Regard

  55. Billy Chia

    Billy Chia

    Oscar,
    There is good documentation on adding SIP phones on wiki.asterisk.org

  56. musaib

    Hi,

    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/modules.link’, 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

    Billy Chia

    musaib,
    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:

    “(something)./main/modules.link”

    try deleting this line and then recompile.

    Reference:
    http://forums.asterisk.org/viewtopic.php?p=168545
    https://issues.asterisk.org/jira/browse/ASTERISK-19241?page=com.atlassian.streams.streams-jira-plugin:activity-stream-issue-tab

  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

    Billy Chia

    Alex,
    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

    Billy Chia

    dannd,
    If you are looking for a GUI, AsteriskNOW is what you want –
    http://www.asterisk.org/downloads/asterisknow

    You can also check out FreePBX.org
    http://www.freepbx.org/search/node/ubuntu

  62. Daniel

    HI,

    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

    Billy Chia

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

    http://forums.asterisk.org/
    or
    http://lists.digium.com/mailman/listinfo/asterisk-users

  64. Talha

    I have succesfully installed the following on Ubuntu 13.04 using your tutorial. It was great !
    Asterisk 11.5.1
    DAHDI Version: 2.7.0.1 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. Billy Chia
  66. 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!!

  67. Billy Chia
  68. Carlos Hernandez

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

  69. Billy Chia

    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.

  70. mussyman

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

  71. 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?

  72. Billy Chia
  73. 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.

  74. Billy Chia

    Billy Chia

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

  75. 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.

  76. 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

  77. Billy Chia

    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:

    http://forums.asterisk.org/
    or
    http://lists.digium.com/mailman/listinfo/asterisk-users

    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.

  78. 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

  79. 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-1.8.15.0/asterisk-gui-2.1.0-rc1# 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=127.0.0.1 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:

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

    — Good luck! —

  80. Billy Chia

    Billy Chia

    Raheel,
    The Asterisk GUI is no longer maintained and should not be used:
    https://wiki.asterisk.org/wiki/display/AST/Asterisk+GUI

    If you would like to use a GUI with Asterisk I would recommend using AsteriskNOW:
    http://www.asterisk.org/downloads/asterisknow

  81. 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

  82. Billy Chia

    Billy Chia

    Santosh,
    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.

  83. Derick

    Thanks Billy, instructions have been straight forward.

  84. 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.

  85. Fradit

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

  86. 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.
    note:

  87. Valdemar

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

  88. Tommy

    Dear Billy

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

  89. chandana

    thank you so much.It was so helpful

  90. Raheel

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

  91. Raheel

    My CLI promnt is ………………Connected to Asterisk 1.8.10.1~dfsg-1ubuntu1 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

  92. 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 ……………………………..

  93. Billy Chia

    Billy Chia

    Raheel,
    The “Asterisk GUI” is no longer maintained and should not be used
    https://wiki.asterisk.org/wiki/display/AST/Asterisk+GUI

    If you are looking for a GUI to use with Asterisk you should look at AsteriskNOW which uses the FreePBX GUI
    https://wiki.asterisk.org/wiki/display/AST/Installing+AsteriskNOW

  94. 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 http://www.asterisk.org/sites/asterisk/…/asterisk_quick_start_guide.pdf‎

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

    Thanking you

  95. 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 https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
    thank you.

  96. 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 https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
    Help to solve it.
    Thank you.

  97. samia

    hello,
    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

  98. Billy Chia

    Billy Chia

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

    http://forums.asterisk.org/
    or
    http://lists.digium.com/mailman/listinfo/asterisk-users

    More info at http://asterisk.org/support

  99. 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.

  100. Billy Chia

    Billy Chia

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

    http://forums.freepbx.org/forums
    http://forums.asterisk.org

  101. Dileesh

    Billy,
    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.

    Thanks-
    Dileesh

  102. Billy Chia

    Billy Chia

    Dileesh,
    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.

  103. Hassan LOPOUA

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

Leave a Reply