更新环境
sudo apt update
sudo apt install wget build-essential git autoconf subversion pkg-config libtool
sudo contrib/scripts/get_mp3_source.sh
A addons/mp3
A addons/mp3/common.c
A addons/mp3/huffman.h
A addons/mp3/tabinit.c
A addons/mp3/Makefile
A addons/mp3/README
A addons/mp3/decode_i386.c
A addons/mp3/dct64_i386.c
A addons/mp3/MPGLIB_TODO
A addons/mp3/mpg123.h
A addons/mp3/layer3.c
A addons/mp3/mpglib.h
A addons/mp3/decode_ntom.c
A addons/mp3/interface.c
A addons/mp3/MPGLIB_README
已导出版本 204。
安装预先需要
sudo contrib/scripts/install_prereq install
编译
./configure
问题:github网络不通,下载失败。
pjproject-2.13.1.tar.bz2 自己下载,下载后放tmp
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$$$$$$$$$.$$$$$$ $$$$$$$$$$$$$$$$.
进行功能选择
make menuselect
Enable Core sound modules you want to use.
You can also add additional MOH packages you want to use.
Do the same for Extra Sound Packages.
编译
make
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: ++ ++ For generic reference documentation: ++ make samples ++ ++ For a sample basic PBX: ++ make basic-pbx ++ ++ ++----------------- 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 ++-------------------------------------------+
安装示例配置文件: sudo make samples
配置Asterisk在启动时自动启动: sudo make config
C-API文档:sudo make prodocs
启动
sudo service asterisk start