Atlas Knowledge Base
Dashboard
Alarm Capture Commands

Alarm Capture Commands


The sbn-media alarm capture command tree lists, fetches, and replays alarm call captures — per-call bundles of packet capture (pcap), metadata, and parsed SIP messages recorded on the receiving side by the Alarm Receiver.

sbn-media alarm capture [command] [flags]

Persistent flags

Available on all capture subcommands:


Flag

Short

Description

--environment

-e

Diagnose environment to source the server URL and token from

--server


API proxy base URL (default: derived from --environment or local configuration)

--admin-token


Admin-Token for the signal-trace route (default: derived from --environment or local configuration)

When neither --environment nor --server is set, capture prefers a direct local NATS connection to the broker and bypasses the API proxy signal-trace route and admin token entirely. Remote use (for example, from a support workstation) requires a diagnose.environments.<name> configuration entry — see Flow Commands for the configuration shape — since that supplies both the server URL and the admin token.

list

List alarm captures matching the filter.

sbn-media alarm capture list [flags]

Flag

Description

--from

Filter by SIP From

--to

Filter by SIP To

--line-id

Filter by line ID

--since

Start time (RFC3339 or unix-ns)

--until

End time (RFC3339 or unix-ns)

--limit

Max rows to return (default 50)

# Captures on a line since a given time
sbn-media alarm capture list --line-id 4155551212 --since 2026-07-03T00:00:00Z -e staging

# Captures from a specific SIP From
sbn-media alarm capture list --from "+15551234567" -e staging

fetch

Download an alarm capture as a tar bundle (pcap + metadata + sip_messages.json).

sbn-media alarm capture fetch <traceId> [flags]

Flag

Description

--out

Output path (default: <traceId>.tar in the current directory)

--no-merge

Skip server-side SIP+RTP merge; capture.pcap in the tar stays RTP-only

The pcap shows whether RTP actually flowed in both directions — the standard next step after flow sip -v confirms SDP and codec negotiation looked correct but audio still didn't work.

sbn-media alarm capture fetch abc123 -e staging --out abc123.tar

replay

Replay a capture through the real in-band tone recognizer and alarm protocol handler.

Availability: replay is only present in diagnostic builds of sbn-media (built with the test tag). The standard production binary does not include it — it will not appear under alarm capture --help there. Request a diagnostic build from Innovative when replay is needed.
sbn-media alarm capture replay [traceId] [flags]

Flag

Description

--file

Replay from a local tar bundle instead of fetching by trace ID

--timeout

Per-scenario timeout in seconds (default 60)

Runs the captured RTP through the actual DTMF/tone recognizer and alarm protocol handler used in production, and prints pass/fail per assertion. A decode failure can be reproduced locally from the capture — no need to re-request a live reproduction from the customer.

# Fetch and replay in one step (fetches via the configured environment)
sbn-media alarm capture replay abc123 -e staging

# Replay a previously downloaded bundle
sbn-media alarm capture replay --file abc123.tar

Related pages

  1. SBN Media Overview
  2. Alarm Receiver
  3. Tone Recognizer
  4. Flow Commands




Was this helpful?