Ubuntu : How to install asterisk 10 on ubuntu 12.04 LTS

Ubuntu : How to install asterisk 10 on ubuntu 12.04 LTS

Step:1

To start off with make sure that Ubuntu is up to date.

$sudo aptitude update && aptitude dist-upgrade

Step:2

Install deps and build tools so that we can compile Asterisk 10 on Ubuntu

$sudo aptitude install -y build-essential linux-headers-`uname -r` libxml2-dev ncurses-dev libsqlite3-dev sqlite3

Step:3
Create a directory to build Asterisk and change directory

$sudo mkdir /usr/src/asterisk && cd /usr/src/asterisk

Step:4
Download Asterisk 10 and DAHDI tools

$wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-10.0.0.tar.gz &&
$wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.6.0+2.6.0.tar.gz

Step:5
Extract the tar archives for Asterisk 10 and DAHDI Tools

$tar -xvzf asterisk-10.0.0.tar.gz && tar -xvzf dahdi-linux-complete-2.6.0+2.6.0.tar.gz

Step:6:
Build DAHDI Tools on Ubuntu LTS

It is important to build DAHDI tools before we build Asterisk 10

First we must enter the DAHDI directory:

$cd dahdi-linux-complete-2.6.0+2.6.0/

Step:7

Enter superuser mode
$ su
password:
#

Step:8
Build DAHDI Tools with the following commands:

#make all
#make install
#make config

Step:9
Start the DAHDI Tools service with:

#/etc/init.d/dahdi start

Build / Compile Asterisk 10 on Ubuntu LTS

Next it’s time to build Asterisk 10, change to your Asterisk 10 directory:

Step:10
#cd asterisk-10.0.0/

Build Asterisk 10 with:

#make clean
#./configure

Configure your Asterisk options and build with:

#make menuselect
#make
#make install

Make Asterisk samples:

#make samples
#make config

Ubuntu Asterisk 10 samples get installed into /etc/asterisk only make samples for new Asterisk Installation.
Step:11
Start Asterisk with:

#asterisk -vvvvvvc

That’s it you should now have a working Ubuntu Asterisk 10 install running on Ubuntu 12.04LTS

 

Thanks

5 thoughts on “Ubuntu : How to install asterisk 10 on ubuntu 12.04 LTS

  1. Pingback: Ubuntu : How to install asterisk 10 on ubuntu 12.04 LTS « My … | Pici's Ubuntu Blog

  2. Miguel Rodriguez says:


    [CC] app_confbridge.c -> app_confbridge.o
    [LD] app_confbridge.o confbridge/conf_config_parser.o -> app_confbridge.so
    /usr/bin/ld: confbridge/conf_config_parser.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
    confbridge/conf_config_parser.o: could not read symbols: Bad value
    collect2: ld returned 1 exit status
    make[1]: *** [app_confbridge.so] Error 1
    make: *** [apps] Error 2

    Any ideas?

Leave a Reply to Tyler Style Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.