注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

從頭再來 Blog

一切將會如小生命的誕生一樣,從頭再來.....

 
 
 

日志

 
 

apt-get 安装 Asterisk-1.8  

2011-11-02 17:51:06|  分类: VOIP (Asterisk) |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

2.1.1. Dependencies

$ sudo apt-get install python-software-properties

2.1.2. Importing the public key

$ sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 175E41DF
Note
If you are having problems downloading the key from pgp.mit.edu, try the following:
$ wget http://packages.asterisk.org/keys/175E41DF.pub -O - | sudo apt-key add -

2.2. Adding the release branch

2.2.1. Adding the repository

$ sudo add-apt-repository "deb http://packages.asterisk.org/deb `lsb_release -cs` main"
$ sudo add-apt-repository "deb-src http://packages.asterisk.org/deb `lsb_release -cs` main"

2.3. Adding the proposed branch (Optional)

The proposed branch includes updates which are waiting to be moved into the release branch after some testing. They may never reach recommended or they may be replaced with a more recent update. Enabling this is reasonable if you want to participate in testing minor updates, or know that your specific problem has been solved here but the package hasn't reached recommended yet.

2.3.1. Adding the repository

$ sudo add-apt-repository "deb http://packages.asterisk.org/deb `lsb_release -cs`-proposed main"
$ sudo add-apt-repository "deb-src http://packages.asterisk.org/deb `lsb_release -cs`-proposed main"

2.4. Installing Asterisk

2.4.1. Update APT

$ sudo apt-get update

2.4.2. Asterisk

$ sudo apt-get install asterisk-1.8

2.4.3. DAHDI

$ sudo apt-get install asterisk-dahdi

2.5. Upgrading Asterisk

2.5.1. Asterisk

$ sudo apt-get update
$ sudo apt-get upgrade
Note
Due to a bug in asterisk-1.8.3 of the packages, upgrading to later versions of Asterisk will not work. Unfortunately you will need to purge the previous version and install asterisk again.
$ sudo apt-get purge asterisk*
$ sudo apt-get install asterisk

3. YUM (CentOS / Red Hat)

3.1. Prerequisites

3.2. Adding the repository

$ vi /etc/yum.repos.d/centos-asterisk.repo
[asterisk-current]
name=CentOS-$releasever - Asterisk - Current
baseurl=http://packages.asterisk.org/centos/$releasever/current/$basearch/
enabled=1
gpgcheck=0
#gpgkey=http://packages.asterisk.org/RPM-GPG-KEY-Digium
$ vi /etc/yum.repos.d/centos-digium.repo
[digium-current]
name=CentOS-$releasever - Digium - Current
baseurl=http://packages.digium.com/centos/$releasever/current/$basearch/
enabled=1
gpgcheck=0
#gpgkey=http://packages.digium.com/RPM-GPG-KEY-Digium

3.3. Installing Asterisk

3.3.1. Asterisk

# yum install asterisk18 asterisk18-configs

3.3.2. DAHDI

# yum install dahdi-linux dahdi-tools libpri


-------------------------------------------- 以下为源码安装 ---------------------------------

前期准备工作:

a) apt-get install libncurses5-dev libxml2-dev build-essential libcurl4-openssl-dev

b) 因为编译 asterisk 需要用 'asterisk' 用户,先建用户
adduser asterisk --disabled-password --no-create-home --gecos "asterisk PBX user"
c) 把 www-data 用户加入 asterisk 组
adduser www-data asterisk
-----------
1)下载 asterisk 1.8.9
cd /tmp
wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.8.9.2.tar.gz
tar zxvf asterisk-1.8.9.2.tar.gz
cd asterisk-1.8.9.2.tar.gz

------
如果需要使用 Google Voice,需要以下两个模块
chan_gtalk.so   &   res_jabber.so

先下载 iksemel ,然后编译
 http://iksemel.googlecode.com/files/iksemel-1.4.tar.gz
------

2)./configure
3)make menuselect    <--选择需要的功能模块,打开不了菜单注意终端窗口大小要求为80*27,这步可选
4)make
5)make install && make samples

安装完成!

------------------------------------------  服务器开机自动运行 asterisk ----------------------------

需要在每次服务器重启后自动运行 asterisk
1) 进入 asterisk 源码目录
2) make config     
3) chkconfig --list     <--查看一下启动项目
  评论这张
 
阅读(1267)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017