Installing Yeti-Switch on Debian Latest
Yeti-Switch is a free and open-source platform designed for VoIP (Voice over Internet Protocol) carriers that allows them to manage their call routing, billing, and network infrastructure. In this tutorial, we will guide you on how to install Yeti-Switch on Debian Latest. Follow the steps mentioned below.
Prerequisites
Before starting, make sure you have the following requirements:
- A Debian Latest Server
- Root or user with sudo privileges
- Stable internet connection
Step 1: Update your Debian server
Log in to your server and update your Debian system to the latest version, use the command below:
sudo apt update && apt upgrade
Step 2: Install required system packages
Yeti-Switch required some system packages to be installed on your system. Run the following command to install the required packages:
sudo apt install libarchive13 libxml2 libncursesw5 libmariadb3 libmariadbclient18 libmariadb-dev-compat libssl1.1 libsctp1 sshpass
Step 3: Install Redis
Yeti-Switch required Redis for caching, so let's install Redis using the command:
sudo apt install redis-server
Step 4: Install and configure MariaDB database
MariaDB is an open-source relational database management system, and Yeti-Switch is compatible with it. Execute the following command to install it:
sudo apt install mariadb-server
After installation set the MariaDB root password, create a database, and grant the permissions to the database with this command:
sudo mysql_secure_installation
sudo mysql -u root -p
MariaDB> CREATE DATABASE yeti character set utf8 collate utf8_general_ci;
MariaDB> GRANT ALL PRIVILEGES ON yeti.* TO yeti@localhost IDENTIFIED BY 'password';
MariaDB> FLUSH PRIVILEGES;
Step 5: Install Yeti-Switch
Clone the Yeti-Switch repository from the Github using wget command:
wget https://github.com/yeti-switch/yeti-switch/archive/master.zip
Extract the downloaded archive using this command:
unzip master.zip
Navigate to the extracted directory with the command:
cd yeti-switch-master
Then install Yeti-Switch with the command:
make
This command will install Yeti-Switch on your system.
Step 6: Configure Yeti-Switch
Navigate to the Yeti-Switch configuration directory with the command:
cd conf/yeti
Copy the sample config using this command:
cp database.yml.sample database.yml
Change the configuration in the database.yml by updating the MariaDB credentials:
production:
adapter: mysql2
host: localhost
username: yeti
password: password
database: yeti
pool: 5
Step 7: Run Yeti-Switch
Start Yeti-Switch using the command:
./sbin/yeti start
You can also stop and restart Yeti-Switch using the commands:
./sbin/yeti stop
./sbin/yeti restart
Congratulations! You have successfully installed and configured Yeti-Switch on Debian Latest. You can now start using Yeti-Switch to manage your VoIP networks.