Installing Asterisk 1.8.9 on Centos 6

inetextechin

 

 

First step is to set static IP by edit /etc/sysconfig/network-scripts/ifcfg-eth0. Then get the latest updates via:

yum update

Get Asterisk Source:

cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.8.9.0.tar.gz
tarxvzf asterisk-1.8.9.0.tar.gz

Install dependencies/libraries:

yum install unixODBC unixODBC-devel mysql-server mysql-devel nano ncurses-devel patch gccgcc-c++ kernel-devel libtiff-devel libtermcap-devel bison flex curl-devel  libtool-ltdl-devel gmime-devel wget make svn libxml2-devel

ln -s /usr/src/kernels/ linux

Install iksemel libs for Google Talk/Jabber:

Install rpm-forge repo via:
rpmUhv http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm

yum install iksemel-devel

Install Speex (required by Speex codec and RedHat/Centos rpms miss certain files):

cd /usr/src
wget http://downloads.xiph.org/releases/speex/speex-1.2rc1.tar.gz
tar xvzf speex-1.2rc1.tar.gz
cdspeex-1.2rc1

./configure
make
make install

Install Cepstral Swift (this requires a license, if you don’t have one or don’t want to use Cepstral Text to Speech engine, you can skip it):

cd /usr/src
wget http://downloads.cepstral.com/cepstral/i386-linux/Cepstral_Allison_i386-linux_5.1.0.tar.gz
tar xvzf Cepstral_Allison_i386-linux_5.1.0.tar.gz
cd /usr/src/Cepstral_Allison_i386-linux_5.1.0

./install.sh
/opt/swift/bin/swift –reg-voice –customer-name “xxx” –company-name “xxx” –voice-name Allison –license-key “xxx”

Configure libs:

Edit /etc/ld.so.conf and insert:

/opt/swift/lib
/usr/local/lib
/usr/lib

Save the file, then run ldconfig

Install Dahdi:

Get and install latest dahdi-tools and dahdi-linux

* dahdi-linux: kernel modules
* dahdi-tools: userspace tools

cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/dahdi-linux-2.6.0.tar.gz
wget http://downloads.asterisk.org/pub/telephony/dahdi-tools/releases/dahdi-tools-2.6.0.tar.gz
tar xvzf dahdi-linux-2.6.0.tar.gz
tarxvzf dahdi-tools-2.6.0.tar.gz

cd /usr/src/dahdilinux-2.6.0
make
make install

cd /usr/src/dahdi-tools-2.6.0
./configure
make menuselect
make all
make install
make config

nano /etc/dahdi/modules (comment out hardware cards, unless you have them)
chkconfigdahdi on

Install Asterisk 1.8.9:

cd /usr/src/asterisk-1.8.9.0
contrib/scripts/get_ilbc_source.sh
contrib/scripts/get_mp3_source.sh
./bootstrap.sh
./configure
make menuselect (here select the options you want, you’ll be fine with defaults in most cases, I added couple of missing ones)
make
make install
make progdocs
make samples
make config

chkconfig asterisk on

Install app_swift:

Appswift is at http://76.164.171.235/gf/project/app_swift/frs/?action=FrsReleaseBrowse&frs_package_id=7, it adds app_swift, which integrates with Cepstral TTS and makes creating prompts in your dialplan easy.

cd /usr/src
wget http://76.164.171.235/gf/download/frsrelease/110/142/app_swift-2.0.1-ast1.8.tar.gz
tar -xvzf app_swift-2.0.1-ast1.8.tar.gz
cd app_swift-2.0.1-ast1.8
make
make install

Install php5 for scripting:

yum install php phpcli

Install g729 and g723 codecs:

cd /usr/src
wget http://asterisk.hosting.lv/bin/codec_g723-ast18-gcc4-glibc-pentium4.so
wget http://asterisk.hosting.lv/bin/codec_g729-ast18-gcc4-glibc-pentium4.so
cp codec_g729-ast18-gcc4-glibc-pentium4.so /usr/lib/asterisk/modules/codec_g729.so
cp codec_g723-ast18-gcc4-glibc-pentium4.so /usr/lib/asterisk/modules/codec_g723.so

Asterisk Fax:

Order free license key from digium at store.digium.com first.

Then:

cd /usr/src/
mkdir astfax
cd astfax
wget http://downloads.digium.com/pub/register/x86-32/register
wget http://downloads.digium.com/pub/telephony/fax/benchfax/x86-32/benchfax-1.1.0-x86_32

chmod 500 register
chmod 500 benchfax-1.1.0-x86_32

./benchfax-1.1.0-x86_32

This will tell you which version of Asterisk Fax to use. Then go to the fax selector at   http://www.digium.com/en/docs/FAX/faa-download.php

Pick the one suggested by bench fax, in our case (a 32 bit i686 Linux):

wget http://downloads.digium.com/pub/telephony/fax/res_fax_digium/asterisk-1.8.4/x86-32/res_fax_digium-1.8.4_1.3.0-i686_32.tar.gz

tar xvzf res_fax_digium-1.8.4_1.3.0-i686_32.tar.gz

cd /usr/src/astfax/res_fax_digium-1.8.4_1.3.0-i686_32
cp res_fax_digium.so /usr/lib/asterisk/modules/
cp res_fax_digium.conf /etc/asterisk/

Now you can test your basic installation via

asterisk -vvv -c

If all is well, you can run

service asterisk start

to run it as a service. I have my config files from previous installs, so I first copied them back to /etc/asterisk and I was good to go.

Related Posts

  • 43
    What is Asterisk? Asterisk is an open source framework for building communications applications. Asterisk turns an ordinary computer into a communications server. Asterisk powers IP PBX systems, VoIP gateways, conference servers and other custom solutions. It is used by small businesses, large businesses, call centers, carriers and government agencies, worldwide.…
    Tags: asterisk
  • 40
    Installing Free g729 codec in asterisk 1. Download the appropriate codec from the below link http://asterisk.hosting.lv/ Check your asterisk version  --  asterisk -rx "core show version" check whether 32bit or 64 bit ---  uname -a For asterisk 1.4 version and 32 bit Pentium based server (like intelxeon ,p4, dualcore core2duo0 http://asterisk.hosting.lv/bin/codec_g729-ast14-gcc4-glibc-pentium4.so…
    Tags: asterisk, .so, ast, install
  • 36
    Dialplan Introduction:  
    Tags: asterisk
  • 36
    Install Asterisk 13 and PJSIP on CentOS 6+ 64 bit Step 1 – Setup the environment The first step is to install the dependencies required to build the PJSIP libraries and Asterisk 13. Using the CentOS yum package manager we’ll update all currently installed packages to their latest version and…
    Tags: install, asterisk, cd, wget
  • 35
    cd : Change Directory The cd command, which stands for "change directory", changes the shell's current working directory. It is a builtin command, which means that it is executed directly by your shell, instead of launching an external program. cd is a command-line OS shell commandused to change the current working directory…
    Tags: cd, linux

27 thoughts on “Installing Asterisk 1.8.9 on Centos 6

  • April 11, 2013 at 8:35 am
    Permalink

    I precisely needed to thank you so much yet again. I am not sure what I would have created without the actual opinions discussed by you on my field. It actually was a depressing condition for me, however , seeing your professional form you processed the issue forced me to cry with contentment. I will be thankful for your guidance and even hope that you realize what an amazing job your are undertaking educating most people with the aid of your blog. I’m certain you have never come across any of us.

    Reply
  • Pingback: Fizaqvyh

  • April 16, 2013 at 6:03 am
    Permalink

    I stumbled onto usually weren’t able to ended up a lot of these enjoy I want to to make sure you, a service plan after yield was basically outstanding these were very true to make sure you dimension basically if i could very well spend money on nearly anything without having to feel concerned a lot of these would be that nevertheless i invested in Miu Miu Bags to make sure you ended up intended for terrible months compacted snow as well as therefore i provided Miu Miu Bags backside not made with this

    Reply
  • April 16, 2013 at 6:53 am
    Permalink

    I discovered your weblog web page on google and check several of your early posts. Continue to keep up the rather beneficial operate. I just extra up your RSS feed to my MSN News Reader. Looking for forward to reading alot more from you later on!

    michael kors.com

    Reply
  • April 23, 2013 at 4:41 am
    Permalink

    This is really interesting, You’re a very skilled blogger. I’ve joined your feed and look forward to seeking more of your wonderful post. Also, I’ve shared your website in my social networks! Alaina Eakle

    Reply
  • November 14, 2013 at 10:41 am
    Permalink

    I simply want to mention I am all new to blogging and site-building and certainly enjoyed your page. Most likely I’m want to bookmark your blog post . You actually come with amazing articles and reviews. Thanks a lot for revealing your webpage.

    Reply
  • December 13, 2013 at 10:47 am
    Permalink

    Thanks for ones marvelous posting! I definitely enjoyed reading it, you
    could be a great author. I will remember to bookmark your blog and
    may come back in the future. I want to encourage that you continue your great job, have a nice weekend!

    Reply
  • December 20, 2014 at 5:43 pm
    Permalink

    Howdy this is somewhat of off topic but I was wondering if
    blogs use WYSIWYG editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding know-how
    so I wanted to get advice from someone with experience.
    Any help would be enormously appreciated!

    Reply
  • January 2, 2015 at 1:59 am
    Permalink

    Fantastic goods from you, man. I have understand your stuff previous to and you are just extremely fantastic.
    I actually like what you’ve acquired here, really like what you’re stating and the way in which
    you say it. You make it entertaining and you still take
    care of to keep it smart. I cant wait to read far more
    from you. This is really a great website.

    Reply
  • January 25, 2015 at 5:27 pm
    Permalink

    You really make it seem so easy with your presentation but I find this matter to be
    actually something that I think I would never understand.
    It seems too complex and very broad for me. I am looking forward for your next post,
    I’ll try to get the hang of it!

    Reply
  • February 28, 2015 at 1:44 am
    Permalink

    Unquestionably believe that which you said. Your favorite reason seemed to be on tthe net the simplest thing to
    be aware of. I say to you, I certainly get irked
    while people think about worries that they just ddo not knolw about.
    You managed tto hit the nail upon thhe top and defined ouut the
    whole thing without having side effect , people could take a signal.
    Will probably bee backk to get more. Thanks

    Here is myy blog post remedies for hair loss and regrowth

    Reply
  • March 1, 2015 at 8:13 am
    Permalink

    I’ve learn several excellent stuff here.
    Certainly price bookmarking for revisiting. I surprise how much effort
    you put to make the sort of great informative website.

    Reply
  • March 2, 2015 at 7:36 am
    Permalink

    Great post. I was checking constantly this blog and
    I’m impressed! Very useful information specially the llast part 🙂 I take care of such info much.
    I was seeking this certain nfo for a long time.

    Thanks and good luck.

    Reply
  • March 14, 2015 at 8:55 am
    Permalink

    You can coordinate this with your groom’s attire and
    huddle against him under a snow-covered pine for a unique, everlasting portrait.
    However, if your client wants to achieve
    certain things you know are easier to do in Word – Perfect what would
    be best to try to get to change. If you are using
    only word-processing software for your own personal use, you can try both
    products and decide which one is best for their purposes.

    Reply
  • March 15, 2015 at 2:29 pm
    Permalink

    What’s up, just wanted to mention, I loved this blog
    post. It was inspiring. Keep on posting!

    Reply
  • May 24, 2015 at 3:28 pm
    Permalink

    Excellent blog right here! Additionally your web site lots up very fast!
    What web host are you using? Can I am getting your associate link on your host?

    I desire my web site loaded up as fast as yours lol

    Feel free to visit my web page dien thoai bphone

    Reply
  • May 24, 2015 at 3:49 pm
    Permalink

    You should be a part of a contest for one of the most
    useful blogs online. I most certainly will highly recommend this website!

    Also visit my homepage … bphone bkav

    Reply

Leave a Reply

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

%d bloggers like this: