Share This Post:
Build and Install Asterisk Realtime
The following notes are based on Centos 6 and Asterisk 11.
1. Install Asterisk and dependencies
yum groupinstall core
yum groupinstall base
yum install gcc gcc-c++ wget bison mysql-devel mysql-server php php-mysql php-pear php-pear-DB php-mbstring nano tftp-server httpd make ncurses-devel libtermcap-devel sendmail sendmail-cf caching-nameserver sox newt-devel libxml2-devel libtiff-devel php-gd audiofile-devel gtk2-devel subversion nano php-process kernel-devel
2. Get Asterisk source code
cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz
tar zxvf asterisk-11-current.tar.gz
3. Compile Asterisk source. Make sure res_config_mysql addon is selected.
make clean
./configure
make menuselect
4. Configure real time
In/etc/sysconfig/asterisk/extconfig.conf, set sipusers, sippeers, and extensions to use mysql
5. Other configs
Make sure selinux is disabled (/etc/selinux/config)
Make sure firewall rules are set for SIP and HTTP (/etc/sysconfig/iptables)
6. Get more info on wiki.asterisk.org
Share This Post: