Asterisk is a free and open source communication platform, which can be used as a PBX (Private Branch Exchange) or VoIP (Voice over Internet Protocol) gateway. In this tutorial, we will guide you on how to install Asterisk on Fedora Server Latest.
To install Asterisk, you need the following prerequisites:
Before installing Asterisk, we need to install some dependencies. Open the terminal and run the following command:
sudo dnf install -y epel-release dnf-plugins-core
sudo dnf config-manager --set-enabled powertools
sudo dnf install -y git make gcc gcc-c++ ncurses-devel libxml2-devel sqlite-devel speex-devel openssl-devel gmime-devel gnutls-devel libsrtp-devel libuuid-devel jansson-devel
Download the latest Asterisk version from the official website.
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-17-current.tar.gz
Extract the files from the tar archive.
tar xzf asterisk-17-current.tar.gz
cd asterisk-17.*
Configure Asterisk and enable extra modules, codecs, and codecs translations.
sudo ./configure --with-jansson-bundled --with-resample --with-pjproject-bundled --with-ssl --with-srtp --with-asterisk-user=asterisk --with-asterisk-group=asterisk --with-pjsip --with-speex --with-sqlite3 --with-uuid --with-crypto --with-soundtouch --with-hiredis --with-odbc --with-voicemail --with-pgsql --with-corosync --enable-tds --without-h323 --without-nbs --without-oss --without-unixodbc --with-isdnnet --without-misdn --without-misdnuser --without-portaudio --without-portddk --without-spandsp --without-tdsodbc --without-tonezones --without-vpb --without-vpbin --with-gmime --enable-allcodecs
sudo make menuselect.makeopts
sudo menuselect/menuselect
sudo make
sudo make install
sudo make samples.
sudo ldconfig
sudo chown -R asterisk:asterisk /var/lib/asterisk
sudo chown -R asterisk:asterisk /var/spool/asterisk
sudo chown -R asterisk:asterisk /etc/asterisk
sudo chown -R asterisk:asterisk /usr/lib64/asterisk
Create an Asterisk user and group.
sudo useradd -m asterisk
sudo passwd asterisk
sudo usermod -aG asterisk yourusername
sudo chown -R asterisk:asterisk /etc/asterisk
Start and enable the Asterisk service.
sudo systemctl start asterisk
sudo systemctl enable asterisk
sudo systemctl status asterisk
To verify that the Asterisk installation is working properly, use the following command to connect to the Asterisk CLI:
sudo asterisk -vvvvr
You should see the Asterisk CLI prompt. Type core show channels
to see the number of active channels. This should return a result like this:
fedora*CLI> core show channels
Channel Location State Application(Data)
0 active channels
0 active calls
Congratulations! You have successfully installed Asterisk on Fedora Server Latest. You can now start configuring Asterisk for your use cases.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!