当前在线人数17623
首页 - 博客首页 - 免费收央四等中文卫视 - 图片阅读 [博客首页] [首页]
HomeProject之固定电话篇(三)虚拟机CentOS6.5-Asterisk1.8安装
作者:wdm
发表时间:2014-05-27
更新时间:2014-05-27
浏览:2489次
评论:0篇
地址:38.
::: 栏目 :::
大锅小锅一起炖

HomeProject之固定电话篇(三)虚拟机CentOS6.5-Asterisk1.8安装
(此文仅作入门级安装参考)

本文参照此教程安装http://www.sems.org/2012/02/installing-asterisk-1-8-9-on-centos-6/

操作系统:CentOS 6.5 32/64bit
安装用户: root

yum update

--Get Asterisk Source:
cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.8.9.0.tar.gz
tar xvzf asterisk-1.8.9.0.tar.gz

--Install dependencies/libraries:
yum install unixODBC unixODBC-devel mysql-server mysql-devel nano ncurses-devel patch gcc gcc-c++ kernel-devel libtiff-devel libtermcap-devel bison flex curl-devel libtool-ltdl-devel gmime-devel wget make svn libxml2-devel doxygen
ln -s /usr/src/kernels/2.6.32-431.el6.i686 linux

--Install iksemel libs for Google Talk/Jabber:
--Install rpm-forge repo via:
rpm -Uhv http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
yum install iksemel-devel

--Config libs
--Edit /etc/ld.so.conf:
/usr/local/lib
/usr/lib
include ld.so.conf.d/*.conf
*save and run ldconfig

--Install Dahdi:
--Get and install latest dahdi-tools and dahdi-linux
cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/dahdi-linux-2.6.0.tar.gz
wget http://downloads.asterisk.org/pub/telephony/dahdi-tools/releases/dahdi-tools-2.6.0.tar.gz
tar xvzf dahdi-linux-2.6.0.tar.gz
tar xvzf dahdi-tools-2.6.0.tar.gz
cd /usr/src/dahdi-linux-2.6.0
make
make install
cd /usr/src/dahdi-tools-2.6.0
./configure
make menuselect
make all
make install
make config
vi /etc/dahdi/modules (comment out all hardware cards)
chkconfig dahdi on

--Install Asterisk 1.8.9:
cd /usr/src/asterisk-1.8.9.0
contrib/scripts/get_ilbc_source.sh
contrib/scripts/get_mp3_source.sh
./bootstrap.sh
./configure
make menuselect (just use default options)
make
make install
make progdocs
make samples
make config
chkconfig asterisk on

--Install php5 for scripting(no idea, just install them):
yum install php php-cli
Install g729 and g723 codecs:
cd /usr/src
wget http://asterisk.hosting.lv/bin/codec_g723-ast18-gcc4-glibc-pentium4.so
wget http://asterisk.hosting.lv/bin/codec_g729-ast18-gcc4-glibc-pentium4.so
cp codec_g729-ast18-gcc4-glibc-pentium4.so /usr/lib/asterisk/modules/codec_g729.so
cp codec_g723-ast18-gcc4-glibc-pentium4.so /usr/lib/asterisk/modules/codec_g723.so


至此,Asterisk 1.8.9安装完毕.
to start|stop|restart Asterisk: /etc/init.d/asterisk start|stop|reload or service asterisk start|stop|reload
to access Asterisk Console: asterisk -rvvvv

[上一篇] [下一篇] [发表评论] [写信问候] [收藏] [举报] 
 
暂无评论
 
用户名: 密码:
发表评论
评论:
[返回顶部] [刷新]  [给wdm写信]  [免费收央四等中文卫视首页] [博客首页] [BBS 未名空间站]
 
Site Map - Contact Us - Terms and Conditions - Privacy Policy

版权所有BBS 未名空间站(mitbbs.com) since 1996