YepSBC documentation

Operations and monitoring

Running YepSBC: the management API and CLI, Prometheus metrics and alerts, health checks, configuration reload and cluster configuration sync.

YepSBC documentation

YepSBC documentation

  1. Overview
  2. The decision API
  3. Trunks, peers and security
  4. Media
  5. High availability and failover
  6. CDRs and SIP traces
  7. Operations and monitoring
  8. Deployment requirements

Other products

Each node exposes a management API, a Prometheus endpoint and a CLI that wraps the API. The API is per node. A cluster-wide view is your monitoring system's job: query both nodes, and expect the active one to hold the calls.

Management API

The API listens on a configurable address, which defaults to loopback. Expose it on a control network only. Requests carry a bearer token. The health and metrics endpoints need no token so that load balancers and Prometheus can read them. Every response carries the node name, and errors are JSON with the HTTP status.

AreaWhat you can do
Status and healthNode summary, role, decision client state, media engine reachability, listeners
CallsList live calls with filters, read one call with its plan, dialogs and media, hang one up
PeersRead OPTIONS health and probe a peer now
TracesFetch the SIP trace of a call as JSON or text
Decision clientRead breaker and cache state, flush cached plans
ProvisioningRead the trunk list and revision in force
SecurityRead counters and blocked sources, block or unblock an address
ClusterRead HA status, trigger a planned step-down, read cluster configuration drift and push a cluster file
TelemetryRead event and CDR delivery state, replay set-aside records
AuditRead recent audited actions
WebRTCFetch STUN and TURN settings for a browser
ConfigurationReload the node file

sbcctl wraps every endpoint. It reads its URL and token from the environment or from flags, and prints raw JSON with --json.

sbcctl status
sbcctl calls --state ESTABLISHED
sbcctl peers
sbcctl security block 192.0.2.99 10m
sbcctl config reload

Health

GET /v1/health always answers HTTP 200 and reports ok or degraded with a check for the engine role, decision API and media engine. Parse the body. A separate tracking variant exists for keepalived and answers 503 while a step-down is pending, so do not use it for monitoring.

Metrics

Prometheus metrics are served on the management listener and optionally on a dedicated address. They cover:

GroupExamples
CallsActive calls, calls by state, calls per second, started, answered, failed and ended by code and reason, setup time and duration histograms
SIPRequests and responses by method and code, active transactions, retransmissions, timeouts, parse errors, drops, DNS lookups
Decision APIRequest outcomes, latency, errors, timeouts, decisions by source (live or cache)
EgressDestination attempts by outcome, peer status, round-trip time, probes
MediaOperations by result, active sessions, packets, loss, jitter
SecurityPackets dropped, invites rejected by reason, sources blocked
HARole, replication lag, standby connected, peer alive
DeliveryEvents and CDRs queued, sent and dropped, spool backlog, records set aside and held

Alert on the things that change call outcomes: no active node, no connected standby, decision API error rate and latency, peers down, media engine errors, failure ratio, dropped events and any records your receivers refuse or hold. A rule set for these ships with the reference deployment.

Admission rejections produce metrics but no CDR and no event, so graph the rejection counters if you need to see them.

Configuration changes

  • Reload. A reload, through the API or SIGHUP, re-reads the node file: trunk bootstrap, limits, peers, log level and TLS certificates. Established calls are not affected.
  • Cluster file. Settings shared between nodes live in one cluster file. Pushing it through the API validates it, applies it to the standby and then the active node, and reports whether a restart is needed. A partial result and any drift between the nodes are reported.
  • Policy changes. Routing policy lives in your decision service and needs no SBC change. Flush the decision cache if a change must apply before cache entries expire.

Logs

Logs are JSON lines with the node ID and, on call lines, the call UUID. The CDR file, event file and trace file are optional local mirrors of what is posted to your receivers.

Testing against a lab

The repository includes a decision mock and SIPp scenarios. A lab configuration runs the mock and a node without rtpengine so that you can send calls, inspect them with the CLI and read their traces before connecting your own service. The conformance checker covers the decision service itself. See The decision API.

Contact sales

Questions about YepSBC?

Ask an engineer about your deployment, or request the full interface specifications and a demonstration of YepSBC on a traffic profile like yours.

  1. We reply within one business day to arrange a time.
  2. A scoping call about your traffic, network and billing model.
  3. A demonstration on a traffic profile like yours, and a lab deployment if your engineers want one.

Prefer email? hello@yeptelcosoft.com

What would you like?
Interested in

We reply within one business day. We use your details only to respond to your request. Privacy notice