YepBoss documentation

Routing

How YepBoss decides where a call goes: pipeline steps, routing profiles, LCR, priority, weighted and quality strategies, margin protection and portability.

YepBoss documentation

YepBoss documentation

  1. Overview
  2. Core concepts and glossary
  3. Routing
    1. The decision pipeline
    2. Routing profiles
    3. Number portability at routing time
    4. Numbers you hold
    5. Caching and failure behaviour
    6. In the back office
  4. Rate decks and effective dates
  5. Rating and margin
  6. Credit and fraud control
  7. Invoicing and billing cycles
  8. Payments, credit notes and disputes
  9. Multi-currency and FX gain and loss
  10. E-invoicing and the general ledger
  11. SMS billing
  12. Vendor bill reconciliation
  13. Reports, report builder and customer portal
  14. REST API and MCP access

Other products

For every call the SBC asks YepBoss where to send it. The answer is a plan: an ordered list of egress peers, how to present the call to each, and what to do if they fail. The routing service builds it from an in-memory snapshot, so nothing touches the database while a request is open.

The decision pipeline

Each step is recorded in the explanation stored with the decision. The same pipeline serves a route tester screen and an API call that returns the full explanation for any number, with what-if options for another time of day or for egress peers treated as down.

  1. Idempotency. A repeated request returns the same plan.
  2. Ingress connection. An unknown or disabled connection, or an account that is not active, is refused with 403.
  3. Normalise. The called and calling numbers go through the connection's dial plan, or the default plan, to E.164 digits.
  4. Classify. The longest matching prefix in the destination catalogue gives a destination name, country and kind.
  5. Block rules. Rules for everyone, for the account or for the ingress connection can block by called prefix, calling prefix or destination kind. A prefix rule can also be an allow that makes an exception to a shorter block. A refused call gets 403.
  6. Caller ID policy. Pass through, enforce (the calling number must match an allowed prefix, otherwise the call is refused or the number replaced) or replace.
  7. Credit. A prepaid account needs a positive balance. A postpaid account must be inside its credit limit. Credit reserved for calls in progress is subtracted. See Credit and fraud control.
  8. Sell price. The longest prefix in the connection's sell deck. If that deck has no row at all for the number, the fallback deck is tried. A row marked blocked is a decision and stops the search. No price at all gives 404.
  9. Numbers you hold. If the called number is in your inventory as assigned or active with a delivery egress, that egress is the only candidate and the profile is not consulted.
  10. Candidates. The most specific rule in the routing profile lists egress peers. Each is dropped if it is disabled, belongs to another site, belongs to an inactive vendor account, has no buy price for the number, or would leave less than the minimum margin.
  11. Order. By the rule's strategy, then truncated to the profile's maximum attempts.
  12. Plan. One destination per peer, with the number written as that peer expects, identity and header handling, media and codec choices, and the failure policy.

When no candidate is left the answer is 503, so the customer's switch can fail over to its next carrier. A refusal never falls back to a shorter prefix.

Reject codes are fixed and documented, so a customer's switch can act on them: 403 for blocked, credit and unknown connections, 404 for no price, 503 for no route.

Routing profiles

A profile holds:

  • Rules by called prefix. The longest enabled matching prefix wins. An empty prefix is the catch-all.
  • Retry on SIP codes that move the call to the next egress. The default list is 408, 500, 502, 503 and 504. A busy callee (486) is never retried, because a busy party must stay busy.
  • Maximum attempts. Zero means every candidate left.
  • Minimum margin, as an amount and as a percentage.
  • On exhausted, an optional code returned when every egress failed.
  • Skip DOWN egress connections, on by default. Peers the SBC's health probes report as down go to the end of the list and are used only when nothing else is left.

Within a rule each egress carries a position and a weight, and can be disabled for that rule only.

Strategies

StrategyOrderUse it when
lcrLowest buy price first, converted to the sell currency. Ties go to the better quality score, then to positionCost matters most. This is the default
priorityBy position, lowest firstThere is a preferred vendor and there are backups
weightedA new random order for every call, in proportion to weightTraffic is shared, for example 70 and 30
qualityHighest quality score first, then lowest buy priceQuality matters most, for instance on mobile destinations

The quality score covers the last 24 hours of calls to the same destination through that egress. It weighs answer ratio at 60 percent, average call duration up to three minutes at 30 percent and short post-dial delay up to ten seconds at 10 percent. With too few attempts the score is neutral, so a new route is not penalised or promoted on a handful of calls.

Margin protection

The margin of a candidate is the sell price for the number minus its buy price, per minute. A buy price in another currency is converted at the latest stored rate first. At the default minimum margin of zero, an egress that costs more than you sell for is never used. If no exchange rate exists the margin cannot be checked, the peer is kept and the decision says so.

Number portability at routing time

When an ingress connection has portability lookup switched on, the called number is looked up after the dial plan has run. A ported number returns the routing prefix of the network it is on now. Then:

  • a routing rule whose prefix begins with that routing prefix is tried first, so the call goes to the current network;
  • if the deck has a row for the routing prefix followed by the number, that price applies to the sell and to the buy side, which allows network-specific mobile prices;
  • an egress marked send routing prefix receives the routing prefix in front of the number, and other egress peers receive the plain number.

The ported-number list can hold a whole national register. Entries come from a daily register feed, manual entry, file import or the API. A manual entry always wins over the feed, and the feed refuses a file that would remove an unusually large share of the list. An HTTP lookup provider can replace the table when a register is not held locally. The lookup is built for the call path: the list is held in memory in a compact form and searched by binary search.

Numbers you hold

For a number whose status is assigned or active and that has a delivery egress, the routing step skips the profile. It still needs a sell price and applies the usual checks to the delivery peer. It tries that peer even when marked down, because there is nothing else, and answers 503 if it fails. Plans for these numbers are never cached on the SBC, so a reassigned number never goes to its old destination. When an answered call is delivered to one of your numbers through an egress that has an inbound deck, the number's holder is charged an inbound (origination) amount, shown next to the other charges. See Rating and margin.

Caching and failure behaviour

A plan may be cached by the SBC only when nothing in it can differ between two calls with the same ingress connection and called string: postpaid without limits, pass-through caller ID, no time-banded deck, no portability and so on. The cache lifetime is cut at the next scheduled deck change.

In the back office

Routing profiles, the destination catalogue, dial plans, ported numbers and block rules sit in their own sections. The route tester shows the plan and every step for any number, ingress connection and time. Staff roles can all use it.

Contact sales

Questions about YepBoss?

Ask an engineer about your deployment, or request the full interface specifications and a demonstration of YepBoss 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