How to Install SIPCAPTURE Homer on Ubuntu Server Latest
In this tutorial, we will guide you through the installation process of SIPCAPTURE Homer on Ubuntu Server.
Prerequisites
Before we begin, ensure that you have:
- An Ubuntu Server with the latest updates installed.
- A working internet connection.
Step 1 - Add Repository & Install Dependencies
Open the Terminal and update package lists:
sudo apt-get updateInstall the required packages:
sudo apt-get install -y wget lsb-release gnupg2Add the SIPCAPTURE apt repository:
wget -O- https://packages.irontec.com/public.key | sudo apt-key add -Add the repository to Ubuntu:
echo "deb https://packages.irontec.com/debian `lsb_release -cs` main" | sudo tee /etc/apt/sources.list.d/irontec.listUpdate package lists again:
sudo apt-get update
Step 2 - Install Homer
Install Homer's core package:
sudo apt-get install homer-coreCreate a home directory for Homer:
sudo mkdir -p /home/homer/Change the owner and group permissions of the Homer home directory:
sudo chown -R homer:homer /home/homer/
Step 3 - Install & Configure Capture Agent
Install Capture Agent:
sudo apt-get install homer-capture-agentConfigure Capture Agent by editing the file
/etc/homer-capture-agent/homer_capture_agent.conf:sudo nano /etc/homer-capture-agent/homer_capture_agent.confChange the values of
HOMERHOST,HOMERPORT,SAFETYNETaccording to your settings.For example:
# HOMER REST-API server connectivity HOMERHOST=homer.example.com HOMERPORT=9060 HOMERUSER=homer_user HOMERPASS=homer_password # SafetyNet Buffering (set to -1 to enable buffering) SAFETYNET=-1Start the Capture Agent service:
sudo systemctl enable homer-capture-agent.service sudo systemctl start homer-capture-agent.service
Step 4 - Install & Configure SIP Server
Install SIP Server:
sudo apt-get install homer-sipcapture-udpConfigure SIP Server by editing the file
/etc/homer-api/sipcapture.conf:sudo nano /etc/homer-api/sipcapture.confChange the values of
CAPTUREHOST,CAPTUREPORT,CAPTUREIDaccording to your settings.For example:
# Local Interface/IP BIND_INTERFACE=0.0.0.0 ### SIP CAPTURE Agent Configuration HEP_SERVER_NAME=homer.example.com HEP_PORT=9060 ### SIP Capture Configuration CAPTUREHOST=0.0.0.0 CAPTUREPORT=5060 NIC=any ### Protocol id CAPTUREID=2001Start the SIP Server service:
sudo systemctl enable homer-sipcapture-udp.service sudo systemctl start homer-sipcapture-udp.service
Step 5 - Configure Firewall
Allow traffic on port 5060 and 9060:
sudo ufw allow proto udp from any to any port 5060 sudo ufw allow proto tcp from any to any port 9060
Step 6 - Access Homer UI
Open a web browser and go to:
http://your-server-address:8080Replace
your-server-addresswith the IP address or hostname of your server.You should be redirected to the Homer login page. Use the following credentials to log in:
- Username: admin
- Password: changeme
You should see the Homer dashboard.
Congratulations! You have successfully installed and configured SIPCAPTURE Homer on Ubuntu Server Latest.