centos 6.3 装配 asterisk 11

centos 6.3 安装 asterisk 11

本文来自 csdn ucser,    http://blog.csdn.net/perfectpdl   转载注明出处,谢谢.

提供通信服务器和视频电话客户端解决方案,包括视频电话,调度系统,会议系统等.


Asterisk 11版本 带来许多新特性,包括HTML5中炙手可热的WebRTC, Websocket,  SIP NAT穿越 解决方案 ICE(目前多数基于SBC方案),视频协商多属性支持等。


下面在centos 6.3 上安装asterisk 11过程:


1. 更新系统包到最新

yum update -y
2.  机制 SELINUX


sed -i s/SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config

3. 重启系统

reboot


4. 安装Asterisk 依赖 的第三方包 

yum install -y make wget openssl-devel ncurses-devel  newt-devel libxml2-devel kernel-devel gcc gcc-c++ sqlite-devel

5. 下载源码:

 mkdir /opt/src && cd

wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz

6. 安装:

tar zxvf dahdi-linux-complete*
tar zxvf libpri*
tar zxvf asterisk*
 
cd /opt/src/dahdi-linux-complete*
make && make install && make config

   

cd /opt/src/libpri*
make && make install

cd /opt/src/asterisk*
./configure && make menuselect && make && make install


如果中间安装有错误,需要清空之前的文件

make clean && make distclean
安装配置文件 到/etc/asterisk

make samples
安装Asterisk  启动脚本到/etc/init.d/

make config

启动Asterisk

 service asterisk start


连接 rasterisk 


[root@localhost ~]# rasterisk 
Asterisk 11.3.0, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.3.0 currently running on localhost (pid = 2383)
localhost*CLI> 


完毕!