Yum Update
Yum install Kernel-devel bison bison-devel php ncurses-devel zlib-devel openssl-devel gnutls-devel gcc gcc-c++ libx ML2 libxml2-devel MySQL php-mysql mysql-devel mysql-server
Cd/usr/src
wget http://mirror.freepbx.org/freepbx-2.8.1.tar.gz
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-1.8.2.4.tar.gz
wget http://nchc.dl.sourceforge.net/project/lame/lame/3.98.4/lame-3.98.4.tar.gz
Tar xvf libpri-1.4.11.5.tar.gz
CD libpri-1.4.11.5
Make
Make install
Cd..
Tar xvf dahdi-linux-complete-2.4.0+2.4.0.tar.gz
CD dahdi-linux-complete-2.4.0+2.4.0
Make all
Make install
Make Config
Cd..
Tar xvf asterisk-1.8.2.4.tar.gz
CD asterisk-1.8.2.4
./configure
Make MenuSelect
Choose
Make
Make install
Make samples
Make Config
Cd..
Vi/etc/sysconfig/selinux
Set selinux=disabled
Yum install libtiff-devel php4-pear perl-cpan audiofile-devel PHP-GD sox php-pear-db
Rpm-q LIBXML2
Rpm-q Libxml2-devel
Rpm-q Libtiff
Rpm-q Libtiff-devel
Rpm-q Lame
Rpm-q httpd
Rpm-q MySQL
Rpm-q Mysql-devel
Rpm-q Mysql-server
Rpm-q PHP
Rpm-q Php4-pear
Rpm-q Php-mysql
Rpm-q PHP-GD
Rpm-q OpenSSL
Rpm-q Openssl-devel
Rpm-q Kernel-devel
Rpm-q Perl
Rpm-q Perl-cpan
RPM-Q Bison
Rpm-q Ncurses-devel
Rpm-q Audiofile-devel
Rpm-q Curl
Rpm-q Sox
Tar xvf lame-3.98.4.tar.gz
CD lame-3.98.4
./configure
Make
Make instal
Tar xvf freepbx-2.8.1.tar.gz
CD freepbx-2.8.1
./start_asterisk Start
The point to note here is that. First, we have to. mysql password set to null, easy to run the following command (establish the relevant asterisk database)
Mysqladmin Create asterisk
Mysqladmin Create Asteriskcdrdb
MySQL Asterisk < Sql/newinstall.sql
MySQL Asteriskcdrdb < Sql/cdr_mysql_table.sql
-MySQL--user root-p
Mysql> GRANT all privileges in asteriskcdrdb.* to asteriskuser@localhost identified by ' amp109 ';
Query OK, 0 rows Affected (0.00 sec)
Mysql> GRANT all privileges in asterisk.* to asteriskuser@localhost identified by ' amp109 ';
Query OK, 0 rows Affected (0.00 sec)
Mysql> quit
Service Iptables Stop
Vi/etc/httpd/conf/httpd.conf
Asterisk
Asterisk
cd/var/www/html/
CHOWN-RVF Asterisk:asterisk *
cd/usr/local/sbin/
chmod 777 Amportal