YepBoss is the control plane and billing system for wholesale voice and SMS. The YepSBC session border controller and the YepMsg SMS gateway execute calls and messages. YepBoss decides how each one is routed, records what happened and turns it into charges, invoices and ledger entries. Every answered call is rated twice, against the customer's sell deck and the vendor's buy deck, so margin is known per call.
This documentation is for billing, operations and evaluation teams. It describes the behaviour of the product as built. For the commercial summary see the YepBoss product page.
What YepBoss does
| Area | What it covers | Page |
|---|---|---|
| Model | Accounts, customers and vendors, ingress and egress connections, products, entities | Core concepts |
| Routing | Profiles, least-cost, priority, weighted and quality strategies, margin protection, portability | Routing |
| Prices | Versioned rate decks, effective dates, vendor sheets by email, customer rate notices | Rate decks |
| Rating | Billing increments, rounding, dual rating, margin per call | Rating and margin |
| Control | Prepaid and postpaid credit, mid-call cut-off, fraud rules, block rules | Credit and fraud control |
| Billing | Billing runs, invoices, payments, credit notes, disputes | Invoicing, Payments and disputes |
| Finance | Foreign currency, FX gain and loss, UBL e-invoices, the general ledger | Multi-currency, E-invoicing and ledger |
| SMS | Decks by network code, per-part rating, termination | SMS billing |
| Payables | Vendor bills reconciled against your own buy charges | Vendor bills |
| Access | Reports, the customer portal, REST API, MCP server | Reports and portal, API and MCP |
Architecture at a glance
YepBoss is a set of small services around one PostgreSQL database and one Redis instance. Only the routing service sits on the call path. Everything else works from the records the SBC and the gateway send afterwards.
| Component | Role |
|---|---|
| Routing service | Answers the SBC's routing request for each call from an in-memory snapshot of policy. It makes no database query while a request is open. The design target is a 99th percentile under 30 ms. |
| Provisioning | Gives each SBC node the list of ingress connections and egress peers it should accept and probe. |
| Ingest | Receives call events and call detail records from the SBC and message records and receipts from the gateway. Deliveries are idempotent, so a retry or a replay does not create a second record. |
| Rating | Prices every finished call and message against the sell and buy decks, writes the charges and the ledger entries, and updates balances. |
| Guard | Once a second, prices calls in progress to keep each account's credit reservation. It also evaluates the fraud rules. It acts through the SBC's management interface. |
| Health monitor and notifier | Check the installation and its egress connections, and tell the chosen staff by email and in the back office. |
| Back office, portal and API | The staff interface, the customer portal and the REST API, built on PHP 8.3 and Symfony 7. |
| MCP server | An endpoint for AI assistants. Every key reads, and an Admin key also adds, assigns and routes numbers. See API and MCP. |
| Batch tools | Rate-deck import, billing runs, FX import, reconciliation and ledger export, written in Perl and run on a schedule or on demand. |
Data flow for one call
- The SBC receives an INVITE on a customer's ingress connection and asks the routing service for a decision.
- The routing service identifies the ingress connection and its account, normalises the numbers through the dial plan, applies block rules and the caller ID policy, checks credit, finds the sell price, then orders the candidate egress peers by the routing profile. It returns a plan: the peers to try, how to present the call, and what to do on failure. The decision is stored with the explanation of each step.
- The SBC executes the plan and streams call events. YepBoss keeps the live state, which is what the guard prices once a second.
- When the call ends the SBC posts one call detail record, with every attempt.
- The rating service picks the record up, prices the sell side from the customer's deck and the buy side from the deck of the egress peer that carried the call, and posts both to the ledger in one transaction.
- A billing run later gathers the uninvoiced charges of an account into an invoice.
Calls that were not answered are not charged but still feed answer ratio, delay and duration statistics, which the quality routing strategy reads.
Storage
Reference data (accounts, connections, decks, profiles) is normalised. Records that grow without limit (call detail, attempts, charges, events, decisions, ledger entries) are partitioned by time, so retention and maintenance work by partition. The SQL schema is the single source of truth. A change to a price, a connection or a profile bumps a policy revision, and the routing service reloads in the background and swaps the new snapshot in atomically. A change made to a draft deck version never disturbs routing.
What YepBoss reads
YepBoss rates the records of YepSBC and YepMsg natively. It can also import TelcoBridges ProSBC text call detail records as a legacy source, which lets a carrier bill history from a previous switch. Importers for other switch formats are added on request.
Deployment
The services ship as container images and run under Docker Compose for evaluation and development, or on Kubernetes. Staff and customer access use a web interface with role-based access: Admin, NOC, Billing and Customer.
Getting the specification
The full OpenAPI 3.1 specification of the REST API is provided to customers and evaluating teams on request. Use the contact form to ask for it, or for a demonstration.