How To: Install Asterisk 1.6.2.x with Dahdi on CentOS 5.5 Cloud Server (Slicehost or Rackspace) Tutorial
I recently built an asterisk test machine on a rackspace cloud server to see if it would work and how well it works. I haven’t concluded my testing but up to now it seems to be working as if it were installed on a dedicated server. I am actually really impressed with the way the cloud servers work, it is so easy to add a new server to your inventory and then you can use it for whatever you want. The problem with running in a xen cloud environment is zaptel dummy and dahdi dummy will not work, this has something to do with the way the hardware is visualized. This in turn can cause problems with meetme and therefore I cannot say for sure how well asterisk will work on a slicehost and rackspace cloud server, or any other voip application for that matter since voip relies on hardware timers. With this tutorial at least you will be able to install asterisk and see how it works for your application in a cloud enviroment, please be sure to post comments if you do use this and how well it works. Note this will only work for kernel version 126.96.36.199, if you have a different kernel you need to adjust this install.
Also if you would like to see how to download and install the kernal souce for the rackspace or slicehost cloud server visit the following link which you can also find on the right under links. http://articles.slicehost.com/2010/6/18/downloading-and-using-kernel-source-code-2-6-32-12-and-newer-on-centos
yum -y upgrade yum install -y gcc.x86_64 gcc-c++.x86_64 kernel-devel.x86_64 bison.x86_64 openssl-devel.x86_64 libtermcap-devel.x86_64 ncurses-devel.x86_64 doxygen.x86_64 curl-devel.x86_64 newt-devel.x86_64 mlocate.x86_64 lynx.x86_64 tar.x86_64 wget.x86_64 nmap.x86_64 bzip2.x86_64 mod_ssl.x86_64 crontabs.x86_64 vixie-cron.x86_64 speex.x86_64 speex-devel.x86_64 unixODBC.x86_64 unixODBC-devel.x86_64 libtool-ltdl.x86_64 libtool-ltdl-devel.x86_64 mysql-connector-odbc.x86_64 mysql.x86_64 mysql-devel.x86_64 mysql-server.x86_64 php-mysql.x86_64 php-mbstring.x86_64 hp-mcrypt.x86_64 flex.x86_64 screen.x86_64 libxml2-devel libidn-devel krb5-devel krb5-libs zlib-devel libidn-devel cd /usr/src/ wget http://www.asterisk.org/downloads/asterisk/releases/asterisk-1.6.2-current.tar.gz wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-addons-188.8.131.52.tar.gz wget http://downloads.asterisk.org/pub/telephony/libpri/releases/libpri-184.108.40.206.tar.gz wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.4.0+2.4.0.tar.gz wget http://kernel.slicehost.com/220.127.116.11-rscloud/patched_source/18.104.22.168-rscloud.tar.gz tar zxf asterisk-1.6.2* tar zxf asterisk-addons-22.214.171.124.tar.gz tar zxf libpri-126.96.36.199.tar.gz tar zxf dahdi-linux-complete-2.4.0+2.4.0.tar.gz mkdir /usr/src/kernels/ tar zxf 188.8.131.52-rscloud.tar.gz -C /usr/src/kernels/ cd /usr/src/kernels/184.108.40.206-rscloud/ zcat /proc/config.gz > .config make oldconfig && make modules_prepare cd /usr/src/dahdi-linux-complete-2.4.0+2.4.0 KSRC=/usr/src/kernels/220.127.116.11-rscloud/ make KSRC=/usr/src/kernels/18.104.22.168-rscloud/ make install cd /usr/src/libpri-22.214.171.124 make make install cd /usr/src/asterisk-1.6*/ ./configure make make install make samples cd /usr/src/asterisk-addons*/ ./configure make make install