Установка Asterisk на Centos

yum update
yum install -y wget

wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-1.8-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz

tar -xvzf asterisk-1.8*

yum install -y kernel-devel perl ncurses-devel gcc make gcc-c++ libxml2-devel svn

yum install mysql-server mysql mysql-devel php-mysql php

cd dahdi-linux-complete*
make all
make install
make config

cd asterisk-*
make clean
./configure
contrib/scripts/get_mp3_source.sh
make menuselect
make
make install
make samples
make config

/usr/sbin/asterisk

/usr/sbin/asterisk -r

SELECT table_schema “asteriskcdrdb”, sum( data_length + index_length )/1024/1024 “Data Base Size in MB” FROM information_schema.TABLES GROUP BY table_schema;