Trên terminal, thực hiện lệnh sau:
sed
-i
's/\(^SELINUX=\).*/\SELINUX=disabled/'
/etc/sysconfig/selinux
Restart lại server và kiểm tra trạng thái của selinux bằng lệnh “sestatus” và đây là kết quả:
SELinux status: disabled
yum -y update
yum groupinstall core
yum groupinstall base
yum
install
gcc gcc-c++ lynx bison mysql-devel mysql-server php php-mysql php-pear php-mbstring tftp-server httpd
make
ncurses-devel libtermcap-devel sendmail sendmail-cf caching-nameserver sox newt-devel libxml2-devel libtiff-devel audiofile-devel gtk2-devel subversion kernel-devel git subversion kernel-devel php-process crontabs cronie cronie-anacron wget vim php-xml uuid-devel libtool sqlite-devel
Trong quá trình cài đặt Freepbx cũng cần phải cài đúng phiên bản của PearDB
pear channel-update pear.php.net
pear
db-1.7.14
reboot
adduser asterisk -M -c
"Asterisk User"
cd
/usr/src
wget http:
//downloads
.asterisk.org
/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current
.
tar
.gz
/pub/telephony/libpri/libpri-1
.4-current.
/pub/telephony/asterisk/asterisk-13-current
xvfz dahdi-linux-complete-current.
xvfz libpri-1.4-current.
rm
-f dahdi-linux-complete-current.
.gz libpri-1.4-current.
dahdi-linux-complete-*
all
config
/usr/src/libpri-1
.4.*
Cài đặt Asterisk
Nếu cài đặt Asterisk và Freepbx trên server 64bit thì cần thêm option sau vào lệnh configure:
--libdir=
/usr/lib64
xvfz asterisk-13-current.
-f asterisk-13-current.
asterisk-*
contrib
/scripts/install_prereq
/configure
/scripts/get_mp3_source
.sh
menuselect
Chọn thêm “format_mp3” trong mục menuselect này:
Sau đó chọn ‘Save & Exit’ và tiếp tục các lệnh sau để cài đặt Asterisk
ldconfig
mkdir
-p
/var/lib/asterisk/sounds
/pub/telephony/sounds/asterisk-extra-sounds-en-wav-current
xfz asterisk-extra-sounds-en-wav-current.
-f asterisk-extra-sounds-en-wav-current.
# Wideband Audio download
/pub/telephony/sounds/asterisk-extra-sounds-en-g722-current
xfz asterisk-extra-sounds-en-g722-current.
-f asterisk-extra-sounds-en-g722-current.
//mirror
.freepbx.org
/freepbx-12
.0.70.tgz
vxfz freepbx-12.0.70.tgz
chown
asterisk.
/var/run/asterisk
-R asterisk.
/etc/asterisk
/var/
{lib,log,spool}
/asterisk
/usr/lib/asterisk
/usr/lib64/asterisk
/var/www/html
/var/www/
's/\(^upload_max_filesize = \).*/\120M/'
/etc/php
.ini
cp
/etc/httpd/conf/httpd
.conf
.conf_orig
's/^\(User\|Group\).*/\1 asterisk/'
service httpd restart
/usr/src/freepbx
export
ASTERISK_DB_PW=amp109
mysqladmin -u root create asterisk
mysqladmin -u root create asteriskcdrdb
mysql -u root -e
"GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY '${ASTERISK_DB_PW}';"
"GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY '${ASTERISK_DB_PW}';"
"flush privileges;"
/start_asterisk
start
/install_amp
--installdb --username=asteriskuser --password=${ASTERISK_DB_PW}
amportal
amportal a ma installall
amportal a reload
amportal a ma refreshsignatures
ln
-s
/var/lib/asterisk/moh
/var/lib/asterisk/mohmp3
amportal restart
Powered by BetterDocs
Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *
Ghi nhớ tôi
Chưa đăng ký? Đăng ký
Bạn đã đăng ký? Đăng nhập ngay