Set up Asterisk Server on Ubuntu VM in VirtualBox to test Linphone : Part 1

When working with VOIP, it’s helpful to have Asterisk server on the development machine. Asterisk server is Digium’s software implementation of PBX (private branching exchange), which provides features like voice calls, video and voice conferencing, and messaging.  This blog entry details how to set up and apply basic configuration to an Asterisk on an Ubuntu virtual machine.

Step 1: Install VirtualBox on your machine.

VirtualBox is a free virtualization product from Oracle. After installing VirtualBox, start the app and click “New” to create a new virtual machine. Enter name for your new virtual machine. I used “ubuntu” here. The Type and Version are then automatically selected. Adjust to what matches your setting.

| | | Next → |

24 thoughts on “Set up Asterisk Server on Ubuntu VM in VirtualBox to test Linphone : Part 1”

  1. Hi, While running the below command I am getting the following error.Kindly help. Thanks in advance.
    asterisk-13.4.0$ sudo asterisk -rvvvvvv
    Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?

  2. Hi, While running the below command I am getting the following error.
    asterisk-13.4.0$ sudo asterisk -rvvvvvv
    “Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?”

  3. After I have installed asterisk I have tried to connect with it using asterisk -rvvvvc. But it gave me an following error message. Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)

    How can I solve this issue.Please help me.

    • Did you start the asterisk service? By the way, you may need to be root to do it.
      Command to restart asterisk service: “sudo service asterisk restart”

  4. Thank you!
    I’m having issues installing dahdi in a virtual machine (cloud)
    when I run make clean it said:
    “You do not appear to have the sources for the 2.6.32-39-pve kernel installed.”
    I was using:

    mkdir /usr/src/asterisk
    cd /usr/src/asterisk
    tar -zxf dahdi-linux-complete-current.tar.gz
    cd dahdi-linux-complete-
    make clean

    • You are using a different build of asterisk from that in the tutorial, so there might be additional required libraries. Are you trying this on Debian? Also, I would suggest just installing 2.6.32-39-pve kernel source.

  5. when I write the second commanline to install packages, it says ‘Unable to locate package linux-headeruname -r’. Please help. I am not a Linux guy.

  6. My partner and I stumbled over here by a different page and thought I might as
    well check things out. I like what I see so now i’m following you.
    Look forward to checking out your web page

  7. Greaat bloig you have here but I was wanting to know if you knew of any message boards
    that covger the same topics talked about here?

    I’d really love to be a part of group where I can get feed-back
    from other experienced individuals that share the same interest.
    If you have aany suggestions, please let me know.
    Thank you!

  8. Thank you for the auspicious writeup. It actually was a
    entertainment account it. Glance complicated to more introduced agreeable from you!
    By the way, hhow can we communicate?

  9. Hello there I am so grateful I found your blog, I really found you
    by error, while I was searching on Aol for something else,
    Anyhow I am here now and would just like to say thank
    you for a fantastic post and a all round entertaining blog (I
    also love the theme/design), I don’t have
    time to browse it all at the moment but I have saved it and also added
    your RSS feeds, so when I have time I will be back to read much more, Please do keep up
    the fantastic work.

  10. Hey there! This post could not be written any better!
    Reading this post reminds me of my old room mate!
    He always kept talking about this. I will forward
    this write-up to him. Fairly certain he will have a good read.
    Thank you for sharing!

Leave a Comment