asterisk,mysql,freepbx 完整安装手册
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
1 Install Asterisk server
1.1 Install CentOS 5.3
Description :
CentOS is an Enterprise-class Linux Distribution derived from sources freely provided to the public by a prominent North American Enterprise Linux vendor. CentOS conforms fully with the upstream vendors redistribution policy and aims to be 100% binary compatible.
●Need install Web Server , Mail Server , MySQL Database , Development Tools
●Enable Web server, Mail server, MySql Database, Development tools.
●Disable firewall, SElinux.
●Config your network, make sure you can connect to the internet.
1.2 Update your system
#yum -y update
1.3 Install dependencies and extra packages
# yum install e2fsprogs-devel keyutils-libs-devel krb5-devel libogg libselinux-devel libsepol-devel libxml2-devel libtiff-devel gmp php-pear php-pear-DB php-gd php-mysql
php-pdo kernel-devel ncurses-devel audiofile-devel libogg-devel openssl-devel mysql-devel zlib-devel perl-DateManip sendmail-cf
1.4 Install lame-3.97
Description :
LAME is an educational tool to be used for learning about MP3 encoding. The goal of the LAME project is to use the open source model to improve the psycho acoustics, noise shaping
and speed of MP3. LAME is not for everyone - it is distributed as source code only and requires the ability to use a C compiler. However, many popular ripping and encoding programs include the LAME encoding engine.
# cd /usr/src
# wget /sourceforge/lame/lame-3.97.tar.gz
# tar zxvf lame-3.97.tar.gz
# cd lame-3.97
# ./configure
# make
# make install
1.5 Install libpri
Description :
libpri is a C implementation of the Primary Rate ISDN specification. It was
based on the Bellcore specification SR-NWT-002343 for National ISDN. As of
May 12, 2001, it has been tested work with NI-2, Nortel DMS-100, and
Lucent 5E Custom protocols on switches from Nortel and Lucent.
# cd /usr/src
# wget /pub/libpri/libpri-1.4-current.tar.gz
# tar zxvf libpri-1.4-current.tar.gz
# cd libpri-1.4.10/
# make
# make install
1.6 Install mpg123
The mpg123 is make for the “music on hold” module to up custom *.mp3 or *.wav file to PBX.
#tar xvf mpg123-1.9.0.tar.bz2
#./configure
#make
#make install
1.7 Install Dahdi / Dahdi-tools
Description :
Dahdi is a short for ZAPata TELephony.
This packet is the drive of the Digital Cards
# cd /usr/src
# download dahdi-linux-current.tar.gz dahdi-tools-current.tar.gz
# tar zxvf dahdi-linux-2.2.0.2
# cd zaptel-1.4.12.1
# make
# make install
# cd .
# . tar zxvf dahdi-tools-current.tar.gz
# ./configure
# make
# make install
# make config
/etc/init.d/dahdi start
# echo "/etc/init.d/dahdi start" >> /etc/rc.d/rc.local
# dahdi_genconf //check the TDM400P board automatic
#copy dahdi_channels.conf content to chan_dahdi.conf
# dahdi_cfg –vv
1.8 Install asterisk
1.7.1 Install asterisk-1.6.1.4
Description :
Asterisk is the world's leading open source PBXi, telephony engine, and telephony applications toolkit. Offering flexibility unheard of in the world of proprietary communications, Asterisk empowers developers and integrators to create advanced communication solutions...for free.
# cd /usr/src
# useradd -c "Asterisk PBX" -d /var/lib/asterisk asterisk
# mkdir /var/run/asterisk
# mkdir /var/log/asterisk
# chown -R asterisk:asterisk /var/run/asterisk
# chown -R asterisk:asterisk /var/log/asterisk