Update asterisk installation docs

This commit is contained in:
ionutboangiu
2023-05-04 13:20:52 -04:00
committed by Dan Christian Bogos
parent a2e3fa1d3a
commit 8f35f63822

View File

@@ -1,33 +1,64 @@
Software installation
=====================
We have chosen Debian Jessie as operating system.
We have chosen Debian 11 (Bullseye) as the operating system.
CGRateS
-------
*CGRateS* can be installed using the instructions found :ref:`here<installation>`.
Asterisk
--------
**CGRateS** can be installed using the instructions found :ref:`here<installation>`.
To install Asterisk, follow these steps:
1. Install the necessary dependencies:
Asterisk_
---------
::
We got Asterisk14_ installed via following commands:
::
sudo apt-get install build-essential libasound2-dev autoconf openssl libssl-dev libxml2-dev libncurses5-dev uuid-dev sqlite3 libsqlite3-dev pkg-config libedit-dev libjansson-dev
apt-get install autoconf build-essential openssl libssl-dev libsrtp2-dev libxml2-dev libncurses5-dev uuid-dev sqlite3 libsqlite3-dev pkg-config libedit-dev
cd /tmp
wget --no-check-certificate https://raw.githubusercontent.com/asterisk/third-party/master/pjproject/2.7.2/pjproject-2.7.2.tar.bz2
wget --no-check-certificate https://raw.githubusercontent.com/asterisk/third-party/master/jansson/2.11/jansson-2.11.tar.bz2
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-16-current.tar.gz
tar xzvf asterisk-16-current.tar.gz
cd asterisk-16.1.0/
./configure --with-jansson-bundled
make
make install
adduser --quiet --system --group --disabled-password --shell /bin/false --gecos "Asterisk" asterisk || true
2. Download Asterisk:
Replace `<ASTERISK_VERSION>` with the desired version, e.g., `20-current`.
Once installed we proceed with loading the configuration out of specific tutorial cases bellow.
::
.. _Asterisk14: http://www.asterisk.org/
wget https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-<ASTERISK_VERSION>.tar.gz -P /tmp
3. Extract the downloaded archive:
::
sudo tar -xzvf /tmp/asterisk-<ASTERISK_VERSION>.tar.gz -C /usr/src
4. Change the working directory to the extracted Asterisk source:
Replace `<ASTERISK_MAJOR_VERSION>` with the major version number of the downloaded Asterisk version, e.g., `20`.
::
cd /usr/src/asterisk-<ASTERISK_MAJOR_VERSION>*/
5. Compile and install Asterisk:
::
sudo ./configure --with-jansson-bundled
sudo make menuselect.makeopts
sudo make
sudo make install
sudo make samples
sudo make config
sudo ldconfig
6. Create the Asterisk system user:
::
sudo adduser --quiet --system --group --disabled-password --shell /bin/false --gecos "Asterisk" asterisk
Once installed, we proceed with loading the configuration out of specific tutorial cases below.
.. _Asterisk: http://www.asterisk.org/