一、获取asterisk安装包
wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.6.0.tar.gz
后面的版本号可以改变,可以安装的版本可以参考http://downloads.asterisk.org/pub/telephony/asterisk/releases/
二、解压安装
1. [root@~]# tar -zxvf asterisk-1.6.1.9.tar.gz // 解压asterisk安装包
2.[root@~]# cd asterisk-1.6.1.9 // 进入asterisk安装包
3.[root@asterisk asterisk-1.6.1.9]# ./configure // 环境检测和预配置
4.[root@asterisk asterisk-1.6.1.9]# make clean //清理旧的编译中间文件
5.[root@asterisk asterisk-1.6.1.9]# make all // 从新编译所有文件
+--------- Asterisk Build Complete ---------+
+ Asterisk has successfully been built, and +
+ can be installed by running: +
+ +
+ make install +
+-------------------------------------------+
安装到这里软件会提示使用make install 来安装asterisk
[root@asterisk asterisk-1.6.1.9]# make install // 安装asterisk
+---- Asterisk Installation Complete -------+
+ +
+ YOU MUST READ THE SECURITY DOCUMENT +
+ +
+ Asterisk has successfully been installed. +
+ If you would like to install the sample +
+ configuration files (overwriting any +
+ existing config files), run: +
+ +
+ make samples +
+ +
+----------------- or ---------------------+
+ +
+ You can go ahead and install the asterisk +
+ program documentation now or later run: +
+ +
+ make progdocs +
+ +
+ **Note** This requires that you have +
+ doxygen installed on your local system +
+-------------------------------------------+
[root@asterisk asterisk-1.6.1.9]# make samples // 安装配置模板
到这里askterisk安装完毕。
三、启动asterisk
1.输入asterisk,回车
2.输入asterisk -r
四、asterisk配置文件
asterisk.conf //asterisk的主配置文件 一般情况下不需要去改动
sip.conf //sip协议主要配置文件
extensions.conf //拨号规则配置文件
本文转自einyboy博客园博客,原文链接:http://www.cnblogs.com/einyboy/archive/2012/10/23/2735569.html,如需转载请自行联系原作者。