В случае с ошибкой на JSON необходимо собрать пакет с source-ов.
configure: error: *** JSON support not found (this typically means the libjansson development package is missing)
cd /usr/src/asterisk/ && wget http://www.digip.org/jansson/releases/jansson-2.9.tar.gz tar -zxf jansson-2.9.tar.gz ./configure -prefix=/usr/ && make clean && make && make install && ldconfig
После этого повторно запускам конфигурацию Asterisk
В случае успешной установки получим следующий вывод:
После выбора модулей завершаем установку Asterisk.
make make install
В случае ошибки:
ROLEnc.o ooh323cDriver.o -> chan_ooh323.so [CC] format_mp3.c -> format_mp3.o format_mp3.c:39:24: фатальная ошибка: mp3/mpg123.h: Нет такого файла или каталога #include "mp3/mpg123.h"
Выполняем contrib/scripts/get_mp3_source.sh и повторно запускаем установку.
По завершении установки получим следующее:
+---- 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 + +-------------------------------------------+
[root@localhost asterisk]# asterisk -rvvvv Asterisk 14.2.1, Copyright (C) 1999 - 2016, Digium, Inc. and others. Created by Mark Spencer <[email protected]> Asterisk comes with ABSOLUTELY NO WARRANTY; type'core show warranty'for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license'for details. ========================================================================= Connected to Asterisk 14.2.1 currently running on localhost (pid = 8292) localhost*CLI> core show version Asterisk 14.2.1 built by root @ localhost on a x86_64 running Linux on 2017-02-05 11:05:06 UTC