SBN Media Overview
SBN Media is a set of services that connect cameras, telephony and alarm devices to SBN. Each service runs as its own process, and the services talk to each other over a NATS cluster. Media sources and telephony lines arrive at the connector and device services, media processing and alarm handling run as separate services, and the results are delivered to SBN for operators to act on. To choose the products for a deployment, see Start Here.

Platform and products
The sbn-media executable is the platform. It runs the watchdog, the API proxy, the log server and the authorization server on every host. Each product is a separate executable that provides a group of services. The watchdog starts each service from the executable that provides it.
| Product | Executable | Services |
|---|---|---|
| SBN Media platform | sbn-media | watchdog, apiproxy, logserver, authserver |
| SBN Video | sbn-video | camerastream, recordedstream, filestream, streammixer, yoursix, milestone, cameraloader, recorder, devicemanager |
| SBN Browser | sbn-browser | webrtcpeer, turnserver |
| SBN SIP Server | sbn-sipserver | sipserver, routing, sipmedia, recorder |
| SBN Receiver | sbn-receiver | ipreceiver, httpreceiver, emailreceiver, filewatchreceiver, scaip, alarmreceiver, alarmdtmfsender, alarmsupervisor, tonerecognizer |
| SBN Frontend Proxy | sbn-frontendproxy | sbnfrontend |
| SBN Automation | sbn-automation | apslexecutor, sbnapsl, sbnivr, scriptexecutor |
| SBN Voice | sbn-voice | texttospeech |
| SBN Analytics | sbn-analytics | imageclassifier, scenechangedetector, reidserver, aillm, annotation, tracksnapshot |
| SBN Xlate | sbn-xlate | audioxlate |
| SBN Insights | sbn-insights | flowcollector, flowserver, loganalyzer |
| SBN SafeLine | sbn-safeline | safelinefrontend |
| SBN MLR2 Frontend | sbn-mlr2frontend | mlr2frontend |
Cameras from manufacturers with their own SDK or cloud connect through vendor camera plugins in SBN Services. See Vendor camera plugins.
Add a product to a host with product add. The command downloads the executable next to sbn-media and records which services it provides:
The full first-time setup of a host is on Deploying SBN Media.
Service commands
The sbn-media executable controls every service on the host:
Configuration
Each host reads one configuration file, config.yaml, in the SBN Media folder. It starts as the starter configuration that config eject --product writes for the products the host runs; see Deploying SBN Media. Every setting that is not in the file keeps its built-in default.
Settings are applied in this order, the first one found wins:
- Environment variables that start with
SBN_. config.yaml.- Files in the folders listed under
includeinconfig.yaml. - The built-in defaults.
A host deployed before config.yaml was introduced keeps working: when there is no config.yaml, SBN Media reads <product>.local.yaml, and then sbn-media.local.yaml.
The settings shared by several services each have their own page:
- NATS Configuration for the message bus every host connects to.
- Line Configuration for how each phone number, SIP trunk or receiver line is handled.
- Alarm Protocols for the protocol identifiers a line uses.
- Certificates for the TLS certificates of the SIP and HTTPS endpoints.
- Firewall for allowing or rejecting connections by IP address and country.
Logging
Each service logs to its own files. The configuration sets the file location:
The location must be writable by the user that runs the service. Log files are not removed automatically.
Each service also logs to the log server, which keeps a central log of every service on the host in the same location. The SBN Media dashboard shows a snapshot of these entries. To look up the SIP messages and log lines of one call, use Log Search.
Watchdog
The watchdog checks the health of each service and starts or stops services to match its configuration:
Services
Each service has one role. Connectors accept traffic that arrives from outside: calls, browser sessions and alarm signals. Devices open a media source, such as a camera, a recording or the audio of a call, when a client asks for it. Processing services work on the streams and signals that connectors and devices produce. Delivery services pass the results to SBN and other platforms.
Platform
| Service | Description |
|---|---|
nats | Message bus that connects all SBN Media services. Provided by an external program; see NATS Configuration. |
watchdog | Monitors service health and starts or stops services as needed. |
apiproxy | Web entry point used by SBN Anywhere, SBN Video clients and the dashboard. Also receives events that cameras and partner platforms post to its hooks route. |
logserver | Collects logs from all services on a host. |
authserver | Signs in SBN Media user accounts, for example for Media Console and Log Search. |
Snapshots, clips and other files attached to events are kept in the file server. The file server is a shared store that the services write to and read from; it is configured once per deployment and does not run as a service of its own.
Connectors
| Service | Product | Description |
|---|---|---|
sipserver | SBN SIP Server | Connects SBN Media to SIP trunks and PBX systems. |
routing | SBN SIP Server | Routes inbound calls per line: loops them back, bridges them to an operator or another PBX, or rejects them. See also 2-way voice forwarding. |
webrtcpeer | SBN Browser | Connects browser-based SBN Video clients. |
turnserver | SBN Browser | Relays video through firewalls so streams reach clients on most networks. |
ipreceiver | SBN Receiver | Receives alarm signals over TCP or UDP, such as DC-09. |
httpreceiver | SBN Receiver | Receives alarm signals over HTTP. |
emailreceiver | SBN Receiver | Receives alarm signals by email (POP3). |
filewatchreceiver | SBN Receiver | Receives alarm signals from files written to a watched directory. |
scaip | SBN Receiver | Sends and receives SCAIP alarm messages, and opens two-way voice to the alarm unit. |
Devices
Devices share common behaviour and configuration; see Device Streams.
| Service | Product | Description |
|---|---|---|
camerastream | SBN Video | Connects to RTSP and ONVIF camera streams. |
recordedstream | SBN Video | Plays back streams captured by the recorder. |
filestream | SBN Video | Streams from local video files. |
streammixer | SBN Video | Mixes the audio from several streams into one. |
yoursix | SBN Video | Connects to YourSix cameras. |
milestone | SBN Video | Connects to Milestone XProtect, live and recorded. |
cameraloader | SBN Video | Connects to cameras served by a vendor camera plugin in SBN Services. See Vendor camera plugins. |
sipmedia | SBN SIP Server | Connects to call (RTP) media streams. |
Clients open a device by URL. Some examples:
rtsp: rtsp://host@user:password?key=value,key2=value2recorded: recorded://deviceid?startTime=2006-01-02T15:04:05Z07:00hiknet: hiknet://deviceid?key=ABCDEFsipmedia: sipmedia://call-idwebrtc peer: peer://peerid
Vendor camera plugins
Cameras from manufacturers with their own SDK or cloud connect through a vendor plugin in SBN Services. The plugins run in the Cameras Loader Service and pass the camera's media to SBN Media unchanged. SBN Video then converts, records and delivers it like any other camera. Each plugin's settings are configured in the SBN Services Dashboard.
| Plugin | Connects to |
|---|---|
| ONVIF | ONVIF cameras on the network. SBN Video pulls the stream over RTSP. |
| Avigilon | Avigilon Control Center (ACC), live and recorded. |
| TP-Link | TP-Link cameras, through the TP-Link OpenAPI. |
| Dahua | Dahua cameras and recorders. |
| IpTecno | IpTecno cameras and recorders. |
| DoLynk | Dahua cameras through the LeChange cloud. |
| HikVision Direct | HikVision cameras and recorders on the network. See HikVision Service. |
| HikVision ProConnect | HikVision cameras through the Hik-Connect cloud. See HikVision Service. |
| Uniview | Uniview cameras and recorders. |
| Honeywell | Honeywell cameras and recorders. |
YourSix and Milestone XProtect connect directly through SBN Video, without a plugin.
Processing
| Service | Product | Description |
|---|---|---|
devicemanager | SBN Video | Manages device configuration and tracks whether each device is reachable. |
recorder | SBN Video, SBN SIP Server | Records media streams to storage. Played back through recordedstream. |
alarmreceiver | SBN Receiver | Decodes alarms received over the phone (DTMF): ContactID, P100, CPC, TSA, TSA-IBS and more. |
alarmdtmfsender | SBN Receiver | Sends alarms over the phone (DTMF), such as P100. |
tonerecognizer | SBN Receiver | Recognizes tones such as DTMF in audio. |
imageclassifier | SBN Analytics | Detects objects in video using AI models. |
scenechangedetector | SBN Analytics | Detects scene changes in camera streams. |
reidserver | SBN Analytics | Stores re-identification data. See Video Analytics. |
aillm | SBN Analytics | Provides AI language features for vision and text. See Video Analytics. |
annotation | SBN Analytics | Stores annotations used to train detection models. See Video Analytics. |
tracksnapshot | SBN Analytics | Stores snapshot images for reviewing detections. See Video Analytics. |
texttospeech | SBN Voice | Converts text into spoken audio, for example for IVR. |
audioxlate | SBN Xlate | Translates audio from one language to another. |
Delivery
| Service | Product | Description |
|---|---|---|
sbnfrontend | SBN Frontend Proxy | Injects signals and events into SBN, and is the gateway for every SBN API call. |
alarmsupervisor | SBN Receiver | Generates supervisory signals from the state of the system. |
safelinefrontend | SBN SafeLine | Integrates with the Safe Line Orion platform. |
mlr2frontend | SBN MLR2 Frontend | Sends alarms to an MLR2 receiver. |
Automation
| Service | Product | Description |
|---|---|---|
apslexecutor | SBN Automation | Runs action-plan scripts for automated alarm response. |
sbnapsl | SBN Automation | Queues incidents for action-plan processing. |
sbnivr | SBN Automation | Handles interactive voice (IVR) for outbound calls. |
scriptexecutor | SBN Automation | Runs Lua scripts for call control and IVR. |
Diagnostics
| Service | Product | Description |
|---|---|---|
flowcollector | SBN Insights | Collects call flows and log lines into the flow-log store. |
flowserver | SBN Insights | Answers queries against the flow-log store. |
loganalyzer | SBN Insights | Searches collected logs for analysis. |
tcpsplitter | SBN Splitter | Duplicates a network connection to capture signal traffic. Released separately. |
Test tools
SBN Test Tools (sbn-testtools) provides services for test and staging hosts: scaiptest, testrouting, messagetrace, teststream and streamertest. Do not run them on a production host.