Install Asterisk one on Ubuntu 12.04 LTS

Source: Internet
Author: User
Tags digium

http://blogs.digium.com/2012/11/14/how-to-install-asterisk-11-on-ubuntu-12-4-lts/

Last week I put up a install guide for Asterisk one on CentOS 6. Asterisk latest LTS release of Asterisk with many great new features and long term support! To follow up in the previous tutorial, I ' ve put together a step by step guide for Ubuntu 12.04. Although most of the steps is similar there is a few differences. This tutorial would 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 sessions to see the install live with an explanation of each step. Below you ' ll find the commands is printed for your to copy and paste.

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

Before you begin the install process, you'll want to being sure that your server OS are up to date. When the update completes the server would reboot.

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

Next you'll 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) libsql Ite3-dev Uuid-dev

Download the source tarballs. These commands would 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.gzwget http://downloads.asterisk.org/pub/telephony/libpri/ Libpri-1.4-current.tar.gzwget 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" to "apply a patch to fix the bug." (Edit:libpri 1.4.14 have been released with this bug fix included. If you is 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 would continue.

Cd/usr/src/asterisk*./configure && make MenuSelect && make && do install && make config && Make samples

Start Dahdi

/etc/init.d/dahdi start

Start Asterisk and connect to the CLI

/etc/init.d/asterisk STARTASTERISK-RVVV

Verify your installation by checking for the Dahdi and LIBPRI versions on the Asterisk CLI

*cli> Dahdi show Versiondahdi version:2.6.1 Echo canceller:hwec*cli> pri show Versionlibpri version:1.4.13

congratulations! You are now having Asterisk 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.

Install Asterisk one on Ubuntu 12.04 LTS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.