diff --git a/docs/tut_asterisk_installs.rst b/docs/tut_asterisk_installs.rst index 83b21b600..5dd32ea8d 100644 --- a/docs/tut_asterisk_installs.rst +++ b/docs/tut_asterisk_installs.rst @@ -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`. + +Asterisk -------- -**CGRateS** can be installed using the instructions found :ref:`here`. +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 `` 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-.tar.gz -P /tmp + +3. Extract the downloaded archive: + + :: + + sudo tar -xzvf /tmp/asterisk-.tar.gz -C /usr/src + +4. Change the working directory to the extracted Asterisk source: + + Replace `` with the major version number of the downloaded Asterisk version, e.g., `20`. + + :: + + cd /usr/src/asterisk-*/ + +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/