asterisk 服务器文档,Ubuntu搭建asterisk服务器

1 进入超级用户

2 Check for updates and install required packages

Before running apt-get, you must edit the sources.list file so that you can install from the "universe".

nano +17 -w /etc/apt/sources.list

这个编辑器比较崩溃用的不熟,搞的很狼狈。所以后来我用vi修改的

Remove the # signs from this line and add multiverse at the end:

deb http://doc.docsou.com/ubuntu/ dapper universe multiverse

在文件中的最后添加

deb http://doc.docsou.com/ubuntu/ dapper universe multiverse

要保持etc/apt/sources.list 中的正确性

3 执行

root@test-Ubuntu:/home/jdeng# apt-get update

root@test-Ubuntu:/home/jdeng# apt-get install php5 php5-cli php5-mysql mysql-server php-pear php-db openssh-server curl sox apache2 subversion build-essential libncurses5-dev libssl-dev linux-headers-`uname -r` libmysqlclient15-dev

安装过程中需要设置mysql密码,自己发挥即可

安装完成之后系统提示需要重启,重启

4 重启之后进入下载流程

下载asterisk1.2(最新的版本是1.62的)

root@test-Ubuntu:/home/jdeng# svn co http://doc.docsou.com/svn/asterisk/branches/1.2 asterisk-1.2

root@test-Ubuntu:/home/jdeng# svn co http://doc.docsou.com/svn/zaptel/branches/1.2 zaptel-1.2

root@test-Ubuntu:/home/jdeng# svn co http://doc.docsou.com/svn/libpri/branches/1.2 libpri-1.2

root@test-Ubuntu:/home/jdeng# svn co http://doc.docsou.com/svn/asterisk-addons/branches/1.2 asterisk-addons-1.2

root@test-Ubuntu:/home/jdeng# svn co http://doc.docsou.com/svn/asterisk/trunk/sounds asterisk-sounds

5 下载完成,编译安装

root@test-Ubuntu:/data/asterisk1.6.2##cd libpri-1.2

root@test-Ubuntu:/data/asterisk1.6.2/libpri-1.2#make install

root@test-Ubuntu:/data/asterisk1.6.2/libpri-1.2# cd ../zaptel-1.4/

root@test-Ubuntu:/data/asterisk1.6.2/zaptel-1.2# make install config

(这步安装的时候出现一个问题,就是提示刚才执行过config,不管他继续执行该命令就可以了,如果你没有这个问题那就更好了呵呵)

root@test-Ubuntu:/data/asterisk1.6.2/zaptel-1.2# cd ../asterisk-1.2

root@test-Ubuntu:/data/asterisk1.6.2/asterisk-1.2# make install

出错:

make[1]:正在离开目录 `/data/asterisk1.6.2/asterisk-1.2

****

**** The configure script must be executed before running 'make'.

**** Please run "./configure".

****

make: *** [makeopts] 错误 1

root@test-Ubuntu:/data/asterisk1.6.2/asterisk-1.2# make

root@test-Ubuntu:/data/asterisk1.6.2/asterisk-1.2# ./configure

执行结果的最后是:

.$$$$$$$$$$$$$$$=..

.$7$7.. .7$$7:.

.$$:. ,$7.7

.$7. 7$$$$ .$$77

..$$. $$$$$ .$$$7

..7$ .?. $$$$$ .?. 7$$$.

$.$. .$$$7. $$$$7 .7$$$. .$$$.

.777. .$$$$$$77$$$77$$$$$7. $$$,

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值