Installation Guide
Overview
This document describes the installation of SIP3 version 2026.2.2 using Ansible.
If you prefer containers, please refer to the Installation in Docker and Kubernetes guide.
|
SIP3 leverages a traditional microservice architecture that makes it easy to scale, in the cloud and on-premise.
Having each one of the SIP3 components deployed independently saves you money, time and resources, but it also brings a layer of extra complexity to the deployment process.
To make your life easier the SIP3 team introduced the sip3-ansible Github project.
Starting with release 2026.1.1, each component must be installed using its own Ansible Playbook.
Component configurations are also stored in their own inventory files.
This approach provides a deeper understanding of how components interact within the SIP3 solution and offers greater flexibility and expanded configuration options for your projects.
At the moment you can use sip3-ansible to deploy each of the SIP3 components as a service (packages and systemd) to Debian, Ubuntu or RedHat-family Linux distributions.
Please, contact the SIP3 team if you need help with specific environment.
|
By following the traditional Ansible approach, you will be creating inventory files that describe the SIP3 installation process. By doing so, you will be able to quickly deploy your project to any infrastructure, regardless of the size and amount of its traffic.
The sip3-ansible project requires Ansible version 2.10 or higher.
|
Your work consists of three steps:
-
Describe the deployment. In the inventory, list your servers and assign them to groups (
captain,salto,twig,hoof,mongodb,influxdb,grafana). -
Configure each component separately. Each component has its own variable (
captain,salto,twig,hoof,mongodb) with its own configuration. The configurations are independent: no address or database name is propagated between them automatically. -
Align the integration points. If component A connects to component B, you set the address of B in the configuration of A yourself. All such parameters are listed in the Integration Points section. This is the key skill for working with this project.
Components
| Component | Inventory group | Playbook | Service | Ports |
|---|---|---|---|---|
SIP3 Captain |
|
|
|
outbound to SIP3 Salto |
SIP3 Salto |
|
|
|
15060 (data from Captain, UDP and TCP), 15090 (management, UDP and TCP) |
SIP3 Twig |
|
|
|
8080 (context path |
SIP3 Hoof |
|
|
|
80 (in the example) |
MongoDB |
|
|
|
27017 |
InfluxDB |
|
|
|
8086 |
Grafana |
|
|
|
3000 |
-
SIP3 Captain - the traffic capture agent. Install it on a server that can see SIP/RTP traffic.
-
SIP3 Salto - a component for traffic processing and quality metric generation. It processes data from SIP3 Captain and writes it to MongoDB, metrics go to InfluxDB.
-
SIP3 Twig - a component providing REST API. It reads data from MongoDB.
-
SIP3 Hoof - a web user interface served via the Nginx HTTP server. It proxies
/api/to SIP3 Twig and/grafanato Grafana. -
MongoDB - a document-oriented database that stores information. It is required.
-
InfluxDB and Grafana - provide quality metrics and dashboards. SIP3 Hoof displays Grafana dashboards as external pages. Both are optional.
The repo role adds the SIP3 package repositories (repo.sip3.io).
The Captain, Salto, Twig and Hoof playbooks call it automatically.
How Components Interact
tcp/udp 15060 (data) mongodb://…:27017
captain ───────────────────────────▶ salto ───────────────────────────▶ MongoDB
│ tcp/udp 15090 (management) │ ▲
│ (traffic from the interface) │ http://…:8086 │
▼ │
InfluxDB ◀── http://…:8086 ── Grafana │
▲ │
browser ──▶ hoof (nginx) ──/api/──────▶ twig ───────────────────────┼───────┘
│ │
└──/grafana────────────────────────────────────────┘
-
SIP3 Captain sends data to SIP3 Salto and registers with it on the management port.
-
SIP3 Salto writes data to MongoDB (two databases: data and management) and metrics to InfluxDB.
-
SIP3 Twig reads the same two MongoDB databases.
-
SIP3 Hoof is the single entry point: it serves the UI and proxies
/api/to SIP3 Twig and/grafanato Grafana. -
Grafana reads metrics from InfluxDB.
Project and Inventory Structure
Repository Layout
ansible.cfg Ansible settings (required, see "How Ansible Merges Variables")
playbooks/ one playbook per component + sip3.yml (everything at once) + utility playbooks
roles/ component roles (not modified by users)
inventories/example/ reference example: copy it and edit the copy
sip3-backend.yml backend servers: groups and SSH access
sip3-agent.yml captain servers: group and SSH access
captain.yml, salto.yml, twig.yml, hoof.yml, mongodb.yml component configurations
hoof-config.yml hoof UI settings (hoof.json)
hostmap-config.yml host map (hostmap)
ansible-playbook.sh playbook run order
Edit only your own inventory. You do not need to modify roles or playbooks.
Inventory Files As Building Blocks
An inventory is assembled from several files passed with repeated -i options.
There are two kinds of files:
| Kind | What it defines | Example |
|---|---|---|
Topology |
Where everything runs: groups, addresses, SSH |
|
Component configuration |
The component variable in |
|
For each playbook, pass the topology file and only the configuration file of the component being deployed.
This is convenient because SIP3 Captain often runs on a separate server (for example, at a customer site) and needs only sip3-agent.yml and captain.yml.
ansible-playbook -i inventories/prod/sip3-backend.yml -i inventories/prod/salto.yml playbooks/salto.yml
Topology
The groups in sip3-backend.yml map each component to a server.
Group names are fixed because the playbooks reference them.
A single server can belong to several groups:
all:
children:
salto: { hosts: { 'sip3-engine': { ansible_ssh_host: 10.0.0.11 } } }
twig: { hosts: { 'sip3-api': { ansible_ssh_host: 10.0.0.12 } } }
hoof: { hosts: { 'sip3-front': { ansible_ssh_host: 10.0.0.13 } } }
grafana: { hosts: { 'sip3-front': { ansible_ssh_host: 10.0.0.13 } } }
mongodb: { hosts: { 'sip3-storage': { ansible_ssh_host: 10.0.0.10 } } }
influxdb: { hosts: { 'sip3-storage': { ansible_ssh_host: 10.0.0.10 } } }
vars:
ansible_user: user
ansible_port: 22
ansible_become: true
ansible_ssh_private_key_file: ~/.ssh/id_ed25519-user
Component Variable
Each component is described by a single variable with a common structure:
all:
vars:
salto:
mode: full (1)
application: { ... } (2)
environment: | (3)
...
logback: | (4)
...
| 1 | What to do: full, config or package. |
| 2 | Contents of application.yml. |
| 3 | Contents of environment.conf (Java, memory, startup options). |
| 4 | Contents of logback.xml. |
The role writes the following files on the server:
| Key | File on the server |
|---|---|
|
|
|
|
|
|
This applies to SIP3 Captain, Salto and Twig.
-
applicationis plain YAML. The keys are the same as in the component’sapplication.yml. You can add any parameter, not only those shown in the example. -
environmentholds startup variables:JAVA_HOME, memory (JAVA_XMS,JAVA_XMX), garbage collector (JAVA_GC), and application arguments (APP_OPTS). -
logbackis the logging configuration. By default, logs are written to/var/log/sip3-<component>/default.logandmetrics.logand are retained for 15 days.
The mode setting controls what the role does:
mode |
Install packages | Write configs and restart |
|---|---|---|
|
yes |
yes |
|
yes |
no |
|
no |
yes |
Use config when you only need to change settings and want to leave the package version untouched.
For SIP3 Captain, Salto, Twig and Hoof, mode defaults to full. mongodb has no default, so always set mode explicitly there.
|
mode is defined in all.vars, so it applies to every server the file is applied to.
|
Every run with full or config restarts the service, even if the files did not change.
Packages are installed with state: latest, so a run with full or package upgrades the component to the latest version in the repository.
|
SIP3 Hoof and MongoDB specifics
-
SIP3 Hoof is configured with two text blocks:
nginx(the entirenginx.conf) andsip3_hoof(the SIP3 site). Ifhoof.nginxis set, the role installs Nginx, replaces/etc/nginx/nginx.conf, places the site in/etc/nginx/conf.d/sip3-hoof.conf, and removesdefault.conf(after backing it up). Ifhoof.nginxis not set, the role only places an example in/etc/sip3-hoof/sip3-hoof.conf, and you must include it in Nginx yourself. -
MongoDB is configured with the
mongodb.configtext, which is written to/etc/mongod.conf. -
There are no examples for InfluxDB and Grafana. Their parameters are described in the InfluxDB and Grafana Parameters section.
How Ansible Merges Variables
-
Run Ansible from the repository root.
ansible.cfgis read from the current directory. It enableshash_behaviour = merge, which the behavior described below depends on. -
Dictionaries are merged, not replaced. You can define a shared configuration and override only what you need on an individual server. Lists are replaced entirely, for example
salto.application.mongo.collectionsorsip.message.exclusions. -
Host-level configuration takes precedence over shared configuration. Below is an example of two SIP3 Captains with different interfaces and names, and the rest of the configuration shared.
-
Store passwords in Ansible Vault, not in plain text. Examples: the MongoDB URI with credentials (
ansible-vault encrypt_string) andsip3_api_password.
# captain.yml: shared configuration for all captains
all:
vars:
captain:
mode: full
application:
pcap: { dev: eth0 }
sender: { uri: "tcp://10.0.0.11:15060" }
# sip3-agent.yml: per-server differences
all:
children:
captain:
hosts:
captain-msk:
ansible_ssh_host: 10.1.0.5
captain: { application: { name: captain-msk } }
captain-spb:
ansible_ssh_host: 10.2.0.5
captain: { application: { name: captain-spb, pcap: { dev: eth1 } } }
Basic Installation
In the following section we will deploy SIP3 to a simple VoIP network, consisting of one PBX server, as shown on the diagram below. In the beginning SIP3 Captain will be installed as an agent to the same server. Afterwards, all the SIP3 backend components will be installed to another server.
Preparing Control Machine And Servers
-
Prepare the control machine. You need Ansible 2.10 or later (
pip install -r requirements.txt) and key-based SSH access withsudoprivileges to all servers. -
Prepare the servers. Python 3 is required. On Debian and Ubuntu,
python3-aptis recommended; on RedHat-family systems,python3-rpmorpython3-dnf. The playbook warns you if the package is missing. The playbooks check OS version requirements for MongoDB and the other services themselves and print a message if the system is not supported. -
Clone
sip3-ansiblerepository and checkout the latest release branch:
git clone https://github.com/sip3io/sip3-ansible.git
cd sip3-ansible
git checkout -b release/2026.2.2
-
Create your inventory from the example and delete the files you do not need:
cp -r inventories/example inventories/prod
Installing SIP3 Captain To Single PBX
Edit the inventories/prod/sip3-agent.yml file to define the topology:
all:
children:
captain:
hosts:
captain:
ansible_ssh_host: 23.08.20.15 (1)
vars:
ansible_user: root
ansible_port: 22
ansible_become: true
Then edit the inventories/prod/captain.yml file to configure SIP3 Captain:
all:
vars:
captain:
mode: full (2)
application:
pcap: (3)
dev: eth0
bpf_filter: udp
sender: (4)
uri: udp://192.168.1.2:15060
management: (5)
uri: udp://192.168.1.2:15090
metrics:
logging:
step: 5000
Let’s take a closer look at the inventory files:
| 1 | SSH address. Ansible uses it to connect to the PBX via SSH. |
| 2 | Installation mode. See the Component Variable section for more details. |
| 3 | Standard libpcap settings.
Specify on which interface you want to capture VoIP traffic and set BPF filter to avoid capturing all the packets (e.g. If you want to capture only SIP protocol on port 5060 use udp and port 5060 as a filter). |
| 4 | SIP3 Salto data interface. SIP3 Captain uses this interface to send application data. The host must be the actual address of the SIP3 Salto server. |
| 5 | Management interface. SIP3 Salto and Captain use this interface to exchange SDP information. The host must be the actual address of the SIP3 Salto server. |
Our minimalistic SIP3 Captain configuration is ready. Now, let’s install SIP3 Captain to the PBX using the command below:
ansible-playbook \
-i inventories/prod/sip3-agent.yml \
-i inventories/prod/captain.yml \
playbooks/captain.yml
Once Ansible successfully finished with the playbook we can check that SIP3 Captain is actually working.
At the first check bootstrap information from /var/log/sip3-captain/default.log:
05-10-2020 11:36:34.758 [vert.x-eventloop-thread-0] INFO i.s.captain.ce.capturing.PcapEngine - Listening network interface: eth0
05-10-2020 11:36:34.885 [vert.x-eventloop-thread-1] INFO io.sip3.captain.ce.sender.Sender - UDP connection opened: udp://192.168.1.2:15060
Now let’s check /var/log/sip3-captain/metrics.log to get some insights on the amount of traffic captured by SIP3 Captain and to make sure that the traffic goes to the SIP3 Salto:
05-10-2020 12:27:09.298 - packets_captured{name=sip3-captain,source=pcap} throughput=2.4/s
05-10-2020 12:27:09.299 - packets_sent{name=sip3-captain} throughput=1.2/s
Congratulations, SIP3 Captain is up and capturing traffic. So, we can move to the next section of the document.
Installing SIP3 Captain To Multiple PBXs
In the previous section we configured SIP3 Captain for single PBX. However, in real life we usually have multiple VoIP nodes.
Let’s add another PBX to our previous example.
Add both hosts to the captain group in the sip3-agent.yml file as it’s shown in the example below:
all:
children:
captain:
hosts:
pbx1:
ansible_ssh_host: 23.08.20.15
pbx2:
ansible_ssh_host: 29.11.19.88
captain: (1)
application:
name: pbx2
pcap:
dev: eth1
vars:
ansible_user: root
ansible_port: 22
ansible_become: true
| 1 | Each SIP3 Captain instance can be configured separately by re-assigning variables within the host section.
Re-assigned variables will be merged with the global ones from captain.yml accordingly to Ansible precedence convention.
Keep application.name unique for each agent. |
Now we can use the same command from the previous section to install both SIP3 Captains.
To add a new SIP3 Captain later, add a new host to the group and run the playbook with --limit <host>.
As you can see installing multiple SIP3 Captains as easy as installing one.
Installing SIP3 Backend Components
The backend components are:
-
SIP3 Salto - a component for traffic processing and quality metric generation
-
SIP3 Twig - a component providing OpenAPI functionality
-
SIP3 Hoof - a web user interface served via the Nginx HTTP server
-
MongoDB - a document-oriented database that stores information
-
InfluxDB - a time-series database for storing quality metrics
-
Grafana - a server that provides functionality for displaying metrics on user dashboards
Each component must be configured using its own inventory file and installed using its own playbook.
Create the following component configuration files in the inventories/prod directory:
salto.yml, twig.yml, hoof.yml, mongodb.yml, and optionally grafana.yml.
Edit sip3-backend.yml to set the real addresses and SSH access.
For SIP3 Salto, use salto.yml as the basis rather than salto-sepatate.yml.
The latter is a variant with its own host block, a license, and webhook notifications; Community Edition does not require a license.
|
Common Structure Of Inventory Files
all:
vars:
salto: (1)
mode: full (2)
application: (3)
name: sip3-salto
...
environment: | (4)
JAVA_HOME=/opt/sip3-java
...
logback: | (5)
<?xml version="1.0" encoding="UTF-8"?>
...
Let’s take a closer look at the inventory file:
| 1 | The name of a component in the SIP3 solution. It can be one of the following: salto, twig, hoof, mongodb. |
| 2 | Installation mode: full, package or config. |
| 3 | The application configuration section. This section contains the main configuration settings for this component. |
| 4 | The environment file configuration section. |
| 5 | The logging configuration section. |
The server addresses, the user Ansible uses to connect to them, SSH port, and privileges (ansible_user, ansible_port, ansible_become) are defined in the topology file sip3-backend.yml.
Running The Playbooks
Run the playbooks from the repository root, in order (the same order as in inventories/example/ansible-playbook.sh):
I=inventories/prod
# MongoDB
ansible-playbook -i $I/sip3-backend.yml -i $I/mongodb.yml playbooks/mongodb.yml
# InfluxDB
ansible-playbook -i $I/sip3-backend.yml playbooks/influxdb.yml
# Salto
ansible-playbook -i $I/sip3-backend.yml -i $I/salto.yml playbooks/salto.yml
# Twig
ansible-playbook -i $I/sip3-backend.yml -i $I/twig.yml playbooks/twig.yml
# Hoof
ansible-playbook -i $I/sip3-backend.yml -i $I/hoof.yml -i $I/twig.yml playbooks/hoof.yml
# Grafana
ansible-playbook -i $I/sip3-backend.yml -i $I/grafana.yml playbooks/grafana.yml
# Captain
ansible-playbook -i $I/sip3-agent.yml -i $I/captain.yml playbooks/captain.yml
grafana.yml is your own file with the parameters from the InfluxDB and Grafana Parameters section, if you need it.
Without it, Grafana uses the default values.
|
The order matters: storage first, then processing and the API, then the UI, and SIP3 Captain last, so that data has somewhere to go as soon as it starts flowing.
When SIP3 Twig is running, upload the UI settings and the host map:
ansible-playbook -i $I/sip3-backend.yml -i $I/hoof-config.yml playbooks/hoof-configuration.yml
ansible-playbook -i $I/sip3-backend.yml -i $I/hostmap-config.yml playbooks/hostmap.yml
The sip3.yml playbook deploys MongoDB, SIP3 Salto, Twig and Hoof in a single run.
It does not include SIP3 Captain, InfluxDB, or Grafana.
You can narrow the run with tags (-t storage, -t salto, -t twig, -t hoof) or with --limit.
|
Integration Points
This is the key section. In each table, the left column is a parameter you set in one component, and the right column is the parameter in another component that it must match.
SIP3 Captain To SIP3 Salto
| captain | salto | What must match |
|---|---|---|
|
|
Scheme ( |
|
|
Scheme and port; the host follows the same rule |
In the example, SIP3 Salto listens on ports 15060 and 15090 over both UDP and TCP, while SIP3 Captain points to 127.0.0.1 by default.
In a real deployment, replace 127.0.0.1 with the address of the SIP3 Salto server.
If you change a port or keep only one protocol, change it in both components and open the port on the firewall between the servers.
SIP3 Captain and Salto are defined in different inventory files, so you can either specify the address explicitly or reference the SIP3 Salto host, provided sip3-backend.yml is also passed when running the SIP3 Captain playbook:
captain:
application:
sender:
uri: "tcp://{{ hostvars['sip3-engine'].ansible_ssh_host }}:15060"
SIP3 Salto And Twig To MongoDB
| salto | twig | What must match |
|---|---|---|
|
|
MongoDB address (the same database server) |
|
|
Data database name (default |
|
|
MongoDB address for the management database |
|
|
Management database name (default |
|
|
Suffix format in collection names ( |
-
SIP3 Salto writes; SIP3 Twig reads. If the database names or
time_suffixdiffer, the UI shows no data. -
In the example,
spring.data.mongodb.urianddatabaseof SIP3 Twig reference${mongo.management.uri}and${mongo.management.db}. Do not change these references: they automatically pick up yourmongo.management.*values. -
The default address
localhostworks only if MongoDB runs on the same server as SIP3 Salto or Twig. Otherwise, set the IP address of the MongoDB server.
The MongoDB role and these parameters:
-
mongodb.config(net.bindIp,net.port) determines which addresses and port MongoDB accepts connections on. The example usesbindIp: 0.0.0.0. If SIP3 Salto and Twig run on other servers,bindIpmust allow connections from them, and the port must be open on the firewall. -
The MongoDB role creates an index in the management database itself. It takes the database name from
twig.application.mongo.management.db(if thetwigvariable is included in the inventory) and falls back tosip3-mgmtotherwise. If you renamed the management database, addtwig.ymlto themongodbplaybook run. -
The role waits for MongoDB on port 27017 and creates the data directory
/data/db. These are defaults: changingnet.portorstorage.dbPathinside themongodb.configtext does not affect them.
SIP3 Salto To InfluxDB To Grafana
| Component | Parameter | What must match |
|---|---|---|
salto |
|
InfluxDB address and port: |
salto |
|
Metrics database name ( |
influxdb |
|
The address and port InfluxDB listens on |
grafana |
|
Where Grafana reads metrics from |
grafana |
|
The same database name as |
By default, InfluxDB listens on 127.0.0.1:8086.
If SIP3 Salto or Grafana runs on another server, set influxdb.address (for example, 0.0.0.0 or the server IP) and open the port.
SIP3 Hoof To SIP3 Twig And Grafana
The hoof.sip3_hoof block (Nginx) defines where SIP3 Hoof proxies requests:
| nginx block | Target | Must match |
|---|---|---|
|
twig |
SIP3 Twig server address, |
|
Grafana |
Grafana server address and port 3000 |
|
entry point |
The port and name users use to open the UI |
-
In the example inventory, SIP3 Twig and Hoof run on different servers, but
proxy_passpoints to127.0.0.1. Replace it with the SIP3 Twig server address. Otherwise the UI loads, but the API does not work (502 Bad Gateway). -
The same applies to Grafana:
localhost:3000works only if Grafana runs on the same server as SIP3 Hoof (as it does in the example).
Additional dependencies:
| Parameter | Related to | Notes |
|---|---|---|
|
The address at which SIP3 Twig reaches SIP3 Hoof/Grafana |
A parameter of the |
|
|
The role configures Grafana to serve from |
|
Grafana dashboards |
Paths to the dashboards installed by the |
|
SIP3 Twig |
Link to the API documentation |
InfluxDB and Grafana Parameters
There are no examples for these components in inventories/example, but the roles accept the following variables (all optional):
all:
vars:
address: 10.0.0.10 # shared default address for influxdb and grafana (default 127.0.0.1)
influxdb:
address: 10.0.0.10 # address InfluxDB listens on
port: 8086
path: /var/lib/influxdb # data directory
grafana:
influxdb:
address: 10.0.0.10 # where InfluxDB is (defaults to the address value, otherwise 127.0.0.1)
port: 8086
db: sip3 # database name (default sip3)
datasources: # instead of the three parameters above, you can set final values
url: http://10.0.0.10:8086
database: sip3
If grafana.datasources.url or grafana.datasources.database is set, it takes precedence over grafana.influxdb.*.
Host Map And UI Settings
| Parameter | Where | Purpose |
|---|---|---|
|
|
The |
|
|
List of nodes: |
|
|
UI settings. The |
The flash-hostmap.yml playbook deletes the hostmap nodes from SIP3 Twig.
In no-authentication mode, it uses sip3_api_uri without a default value, so always set it.
Choosing a Topology
Everything on one server (evaluation, test environment).
Add a single host to all groups.
The defaults in the examples work almost everywhere because all addresses are 127.0.0.1.
The only exception is SIP3 Captain, which needs the capture interface (pcap.dev).
Distributed across servers. The more servers you use, the more "local" values you must replace with real addresses:
| What is separated | What to change |
|---|---|
captain separate from salto |
|
MongoDB separate |
|
InfluxDB separate |
|
twig separate from hoof |
|
Grafana separate from hoof |
|
Common Changes
Edit the inventory and re-run the playbook for the relevant component.
If the package version must not change, set mode: config in the component variable.
| Task | What to change |
|---|---|
Different capture interface or BPF filter |
|
Add another SIP3 Captain |
Add a new host to the |
Increase Java memory |
In the component’s |
Change log level or retention |
The component’s |
Move MongoDB to another server |
|
Change processing parameters (timeouts, |
|
Change the UI menu, dashboards, or time zones |
|
Update the host map |
|
Enable SIP3 Twig security |
|
The application parameters themselves (which keys exist in application.yml) are described in the Getting Started Guide.
Verifying the Result
Verify along the chain, starting with the data stores.
| What | How |
|---|---|
Services |
|
Logs |
|
SIP3 Salto is accepting data |
|
Data in MongoDB |
|
SIP3 Twig |
|
SIP3 Hoof |
Open |
Grafana |
Configuration files on the servers: /etc/sip3-<component>/ (SIP3 Captain, Salto, Twig), /etc/mongod.conf, /etc/nginx/conf.d/sip3-hoof.conf (or /etc/sip3-hoof/sip3-hoof.conf), /etc/influxdb/influxdb.conf.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
Host-level overrides have no effect; a dictionary is replaced entirely |
The playbook was not run from the repository root, so |
|
The component configuration file is not included ( |
The UI opens but shows no data |
|
SIP3 Captain is running but SIP3 Salto receives no data |
|
|
|
SIP3 Twig or Salto cannot connect to MongoDB |
Address is |
Grafana is empty or has no data source |
|
Error while waiting for MongoDB to start ( |
|
Nginx does not use the SIP3 configuration |
|
The |
One of |
Package not found on Debian/Ubuntu |
|
The service restarts on every run |
By design: the roles always restart the service after writing configs |