BlogsHow to Configure and Install Asterisk VoIP Server on Debian 11|10

How to Configure and Install Asterisk VoIP Server on Debian 11|10

This tutorial is about How to Configure and Install Asterisk VoIP Server on Debian 11|10. Recently I updated this tutorial and will try my best so that you understand this guide. I hope you guys like this blog, How to Configure and Install Asterisk VoIP Server on Debian 11|10. If your answer is yes after reading the article, please share this article with your friends and family to support us.

Check How to Configure and Install Asterisk VoIP Server on Debian 11|10

Asterisk is a free and open source framework for building communications applications. Asterisk turns an ordinary computer into a VoIP communication server. Asterisk powers IP PBX systems, VoIP gateways, conference servers and is primarily used by small businesses, large enterprises, call centers, operators, and governments around the world. Today we will install Asterisk on Debian. All necessary packages will be installed via apt, but Asterisk will install from source. Let’s see how to install Asterisk on Debian

There are several versions of Asterisk available on their website, but the latest one is 13 with LTS (Long Term Support). Then we will have to download it from the source and install it in this tutorial.

All commands must be run as the root user, either by directly logging in as root or using sudo su -.

Start from a basic Debian 11 installation. All required packages will be installed using the following commands.

Update the operating system to the current version.

apt-get updateapt-get update

Install all necessary packages

apt install -y apache2 mariadb-server mariadb-client php php-curl php-cli php-pdo php-mysql php-pear php-gd php-mbstring php-intl php-bcmath curl sox mpg123 lame ffmpeg sqlite3 git unixodngrc postfix dir odbc-mariadb php-ldap nodejs npm pkg-config libicu-dev

Prepare asterisk

  • systemctl stop asterisk
  • systemctl disable asterisk
  • cd / etc / asterisk
  • mkdir DIST
  • mv * DIST
  • cp DIST / asterisk.conf.
  • sed -i ‘s / (!) //’ asterisk.conf
  • touch modules.conf
  • tap cdr.conf

Configure Apache web server

  • sed -i ‘s / (^ upload_max_filesize = ). * / 120M / ‘/etc/php/7.4/apache2/php.ini
  • sed -i ‘s / (^ memory_limit = ). * / 1256M / ‘/etc/php/7.4/apache2/php.ini
  • sed -i ‘s / ^ (User | Group ). * / 1 asterisk / ‘/etc/apache2/apache2.conf
  • sed -i ‘s / AllowOverride None / AllowOverride All /’ /etc/apache2/apache2.conf
  • a2enmod rewrite
  • systemctl restart apache2
  • rm /var/www/html/index.html

Configure ODBC

  • cat< EOF> /etc/odbcinst.iniDescription = ODBC for MySQL (MariaDB) Driver = /usr/lib/x86_64-linux-gnu/odbc/libmaodbc.soFileUsage = 1EOF
  • cat< EOF> /etc/odbc.iniDescription = MySQL connection to ‘asteriskcdrdb’ databaseDriver = MySQLServer = localhostDatabase = asteriskcdrdbPort = 3306Socket = /var/run/mysqld/mysqld.sockOption = 3EOF

Install FreePBX

  • cd / usr / local / src
  • wget http://mirror.freepbx.org/modules/packages/freepbx/7.4/freepbx-16.0-latest.tgz
  • tar zxvf freepbx-16.0-latest.tgz
  • cd / usr / local / src / freepbx /
  • ./start_asterisk start
  • ./install -n

Final remarks: How to Configure and Install Asterisk VoIP Server on Debian 11|10

I hope you understand this article, How to Configure and Install Asterisk VoIP Server on Debian 11|10. If your answer is no, you can ask anything via the contact forum section related to this article. And if your answer is yes, please share this article with your friends and family to give us your support.

James Hogan
James Hogan
James Hogan is a notable content writer recognized for his contributions to Bollyinside, where he excels in crafting informative comparison-based articles on topics like laptops, phones, and software. When he's not writing, James enjoys immersing himself in football matches and exploring the digital realm. His curiosity about the ever-evolving tech landscape drives his continuous quest for knowledge, ensuring his content remains fresh and relevant.
Trending Today
- Advertisment -