Linux 构建功能强大的voip网络电话服务器

centos5.4下建立一个属于自己的功能强大的VOIP网络电话系统

环境:
centos 5.4
asterisk 1.6.1.9
freePBX 2.6.0RC2

现如今经过几年的信息化建设,IP网络已经走进绝大部分大型企业,多数企业内部均已经建立了内部数据网络。并且实现与INTERNET网互联。在基 础网络建设完成以后,为更好的利用现有的IP网络资源,提高企业信息化水平和办公自动化水平,节省语音通话费用,在企业内实现语音数据的统一传输,紧跟下 一步电信发展的潮流和趋势,建立基于IP网络的数据语音综合服务将是企业大客户在信息化建设、提高综合竞争能力等方面需要着重考虑问题。

VOIP系统架构图


voip

1.下载地址:
cd /usr/src

wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.6.1.9.tar.gz
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.2.0.2+2.2.0.tar.gz
wget http://downloads.asterisk.org/pub/telephony/libpri/releases/libpri-1.4.10.2.tar.gz
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-addons-1.6.1-current.tar.gz
wget http://downloads.sourceforge.net/project/lame/lame/3.98.2/lame-398-2.tar.gz?use_mirror=nchc
wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-en-gsm-current.tar.gz
wget http://mirror.freepbx.org/freepbx-2.6.0RC2.tar.gz

Sounds
$ make menuselect

2.安装依赖包

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 sox php-process-5.2.10

cd /usr/src
tar zxvf lame-398-2.tar.gz
cd lame-398-2
./configure
make && make install

3.安装asterisk和freePBX

cd /usr/src

tar xvzf dahdi-linux-complete-2.2.0.2+2.2.0.tar.gz
tar xvzf asterisk-1.6.1.9.tar.gz
tar xvzf libpri-1.4.10.2.tar.gz
tar xvzf asterisk-addons-1.6.1-current.tar.gz
tar xvzf freepbx-2.6.0RC2.tar.gz

mkdir -p /var/lib/asterisk/sounds
cd /var/lib/asterisk/sounds
tar xvzf /usr/src/asterisk-extra-sounds-en-gsm-current.tar.gz

cd /usr/src/dahdi-linux-complete-2.2.0.2+2.2.0
make && make install
make config

cd /usr/src/libpri-1.4.10.2
make clean
make && make install

cd /usr/src/asterisk-1.6.1.9
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
chown -R asterisk:asterisk /var/lib/php/session/
./configure
make && make install
make samples

cd /usr/src/freepbx-2.6.0RC2
mysqladmin -uroot -p create asterisk
mysqladmin -uroot -p create asteriskcdrdb
mysql -uroot -p asterisk < SQL/newinstall.sql
mysql -uroot -p asteriskcdrdb < SQL/cdr_mysql_table.sql

mysql -uroot -p
GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY ‘SOMEPASSWORD’;
GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY ‘SOMEPASSWORD’;
flush privileges;
\q

cd /usr/src/asterisk-addons-1.6.1.1
./configure
make && make install

cd /usr/src/freepbx-2.5.2
./start_asterisk start
./install_amp �Cusername=asteriskuser �Cpassword=SOMEPASSWORD

访问web进行配置

完成!


你可能感兴趣的:(服务器,下载地址,企业信息化,网络电话,网络建设)