Asterisk 1.8 Install Script for CentOS 5 on Rackspace Cloud Server
Since Asterisk version 1.4.x is scheduled for end of life on 4/21/2012, I decided to start testing Asterisk version 1.8. I choose to start working with Asterisk 1.8 because it is a long-term support release which extends its life to 10/21/2015. I modified my install script to work with dahdi and version 1.8 so that it is a simple one step install for Asterisk. There are a few changes with version 1.8, such as the mysql cdr add-on no longer exists. Instead the use of odbc libraries connect to a MySQL server or other database server. I made the changes to my script to adjust for Asterisk 1.8 and tested it on a Rackspace cloud server.
If you are not using a Rackspace cloud server and are running the script on a standard CentOS install be sure to comment out the following line from the script:
Install the following packages before running the script.
yum -y install bind-utils curl-devel doxygen gcc gcc-c++ gtk+ gtk+-devel gnutls-devel httpd kernel-xen kernel-xen-devel kernel kernel-devel kernel-smp-devel kernel-smp libxml2-devel libtermcap-devel libtool-ltdl libtool-ltdl-devel make mysql mysql-server mysql-devel mysql-server-devel mysql-connector-odbc net-snmp-devel neon-devel newt-devel ncurses-devel ntp openssl-devel openssl perl-suidperl php-mysql system-config-securitylevel screen texinfo unixODBC unixODBC-devel wget
Now just download and run the script which will do all the heavy lifting of compiling Asterisk.
wget http://jonathanmanning.com/wp-content/uploads/2012/01/install_asterisk18.txt chmod +x install_asterisk18.txt ./install_asterisk18.txt