安装Asterisk源码包

来源:互联网 发布:linux c开发工程师 编辑:程序博客网 时间:2024/05/25 23:57

准备工作
首先从Asterisk官方网站可以获取到所需要的软件包:http://www.asterisk.org/downloads(请选择相应的Source Tarball下载)。
然后解压缩Asterisk的源码包,然后通过终端cd到相应的目录下(这里我的文件夹路径为”cd ~/源代码/asterisk-1.8.2.2″)。
执行”./configure”
# ./configure
成功后,可以在终端看到如下的输出信息:
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mxml.list
config.status: creating mxml.pc
config.status: creating config.h
config.status: config.h is unchanged
configure: Menuselect build configuration successfully completed

.$$$$$$$$$$$$$$$=..
.$7$7.. .7$$7:.
.$$:. ,$7.7
.$7. 7$$$$ .$$77
..$$. $$$$$ .$$$7
..7$ .?. $$$$$ .?. 7$$$.
$.$. .$$$7. $$$$7 .7$$$. .$$$.
.777. .$$$$$$77$$$77$$$$$7. $$$,
$$$~ .7$$$$$$$$$$$$$7. .$$$.
.$$7 .7$$$$$$$7: ?$$$.
$$$ ?7$$$$$$$$$$I .$$$7
$$$ .7$$$$$$$$$$$$$$$$ :$$$.
$$$ $$$$$$7$$$$$$$$$$$$ .$$$.
$$$ $$$ 7$$$7 .$$$ .$$$.
$$$$ $$$$7 .$$$.
7$$$7 7$$$$ 7$$$
$$$$$ $$$
$$$$7. $$ (TM)
$$$$$$$. .7$$$$$$ $$
$$$$$$$$$$$$7$$$$$$$$$.$$$$$$
$$$$$$$$$$$$$$$$.

configure: Package configured for:
configure: OS type : linux-gnu
configure: Host CPU : x86_64
configure: build-cpu:vendor:os: x86_64 : unknown : linux-gnu :
configure: host-cpu:vendor:os: x86_64 : unknown : linux-gnu :
可选执行”make menuselect”
这一步将提供对Asterisk模块的一些自定义安装选项,这里暂时不做介绍。推荐初次使用者略过此步。
执行”make”
# make
成功后,可以在终端看到如下的输出信息:
+——— Asterisk Build Complete ———+

+ Asterisk has successfully been built, and +

+ can be installed by running:              +

+                                           +

+                make install               +

+



———–+
执行”make install”
# make install
如在Ubuntu下遇到提示权限不够,则使用sudo:
# sudo make install
成功后,可以在终端看到如下的输出信息:
+—- 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    +

+



———–+
执行”make samples”
如不是首次安装Asterisk,请注意这一步将会初始化所有的配置文件!
# make samples
启动Asterisk
# asterisk -vvvc
“vvv”的参数将以”very very verbose”模式启动Asterisk,便于我们看到更多的信息,其中CLI 的详细程度为:v (verbose), vv (very verbose), vvv (very very verbose)。
“-c”则为显示Asterisk CLI (或控制面板)
启动成功后经在终端看到如下的命令行提示符,至此大功告成!

*CLI>


0 0