A SaltStack formula to build Asterisk IP PBX from sources.
This formula is forked from template-formula
Table of Contents
It takes a while (about 10 min at a medium PC) to configure and compile Asterisk from sources.
- Meta-state which includes:
Install packages required to successfully compile asterisk from sources.
Package list is taken from ./contrib/scripts/install_prereq
script from asterisk sources.
Download Asterisk sources from https://github.com/asterisk/asterisk.git.
Default Asterisk version is certified/16.8
. Use pillar's value asterisk.rev
to change it.
Compile Asterisk sources. Executes ./configure
and ./make
.
Install Asterisk binary, libriries, etc. Executes ./make install
.
Install configuration files from files/configs
into /etc/asterisk directory.
Different sets of configuration files will be added later invoking files_switch
macro.
Install, run and enable systemd service asterisk
.
Download sound file packages. You can modify the list of sound packages in the pillar.
Defaults are defined in defaults.yaml
.