YepSBC documentation

YepSBC documentation

How YepSBC works: a SIP back-to-back user agent that executes routing plans from an external decision service, with media anchoring and failover.

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

YepSBC is a carrier session border controller written in Go. It terminates SIP from customers and carriers, builds a separate outbound call for each inbound one, and carries the media through a media engine. It keeps no routing tables. For each new call it asks an external decision service what to do and executes the answer.

This section documents what the current release does. For the product summary see YepSBC.

Division of responsibility

The decision service ownsYepSBC owns
Customers, carriers and which sources may send callsSIP parsing, transactions, dialogs and the B2BUA
Routing, least-cost selection, time-of-day rulesOrdered destination attempts, retries, timeouts, DNS failover
Number normalisation and number ownershipIdentity rewriting and header manipulation as instructed
Rating, billing and balancesCDRs with a closed vocabulary and per-attempt outcomes
Commercial fraud policyInfrastructure protection: ACLs, rate limits, blocklists, admission control
Interpretation of peer health for routingOPTIONS probing with hysteresis and state reporting

The decision service can be YepBoss or any system you operate that implements the published contract.

Architecture

A node is one daemon, sbcd, plus a media engine. The daemon has these layers:

  • Transport serves UDP, TCP, TLS, WebSocket and secure WebSocket. A packet guard in front of the parser drops traffic from blocked or over-rate sources cheaply.
  • Parser and transactions implement RFC 3261 client and server transactions, including the RFC 6026 accepted states, with a fuzz-tested parser.
  • Engine is the B2BUA. Every call is an actor with its own mailbox, so there is no global lock on the call path.
  • Decision client speaks the versioned contract over HTTP/1.1 or HTTP/2, with deadlines, one idempotent retry on connection errors, a circuit breaker and an explicitly authorised cache.
  • Execution applies the returned plan: header operations, identity rewriting, destination sequencing and codec policy.
  • Media drives rtpengine over its control protocol. Lab modes without rtpengine exist for tests.
  • HA replicates established calls to a standby and restores them on takeover.
  • Telemetry provides Prometheus metrics, JSON logs, per-call SIP traces, events and CDRs.

A normal call

  1. An INVITE arrives. The guard identifies the trunk by source address and applies rate and concurrency limits. The transaction layer answers 100 Trying.
  2. The engine creates the call, assigns it a UUID, and sends a route request to the decision service. A CANCEL arriving meanwhile is honoured at once.
  3. The plan is stored with the call. A reject plan produces a final response. A route plan applies codec policy to the offer and hands it to the media engine.
  4. For each destination in order, the SBC sends a new INVITE with its own Call-ID, tags, Via and Contact, and the identity and headers the plan specified. Failures listed in the plan's retry set, and timeouts, advance to the next destination.
  5. On a 2xx the SBC acknowledges the egress leg, passes the answer through the media engine, answers the caller, and replicates the call to the standby.
  6. Mid-call requests are relayed end to end. A BYE on either leg releases the other.
  7. On termination the SBC removes the media session, collects RTP statistics, emits the final event and writes the CDR.

Session timers (RFC 4028) are negotiated with each side separately. REFER transfers are executed by the SBC and routed by the decision service like any other destination.

Failure behaviour

DependencyWhat YepSBC does
Decision serviceFail closed with a configured SIP response, or serve a matching cached plan, per deployment
Event receiverBounded queue with retries; optional on-disk spool for at-least-once delivery
CDR receiver or fileBounded queue; optional on-disk spool; the CDR file is written regardless
Media engineNew calls fail with 503; established calls continue
Standby nodeThe active node continues and reports the missing standby
Metrics and loggingNever block calls

In this section

The full OpenAPI 3.1 specification, example payloads and the conformance checker are provided to customers and evaluating teams on request. Get in touch.

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