YepMsg documentation

YepMsg documentation

How YepMsg works: an SMPP v3.4 gateway for customer binds and carriers, with per-message routing, a durable store, receipt correlation and lease-based HA.

YepMsg documentation

YepMsg documentation

  1. Overview
  2. Binds, accounts and carriers
  3. Routing through the control plane
  4. Delivery receipts
  5. Encodings and concatenation
  6. HTTPS send API and webhooks
  7. High availability and durability
  8. Operations and monitoring

Other products

YepMsg is an SMS gateway written in Go. It is an SMPP v3.4 server for your customers (ESMEs) and a client pool towards your carriers (SMSCs), in one process. It executes decisions and does not make commercial ones. Which account may bind, where a message goes, what it costs and whether it is refused are decisions of a control plane, usually YepBoss.

For the product summary see YepMsg.

How a message moves

ESMEs --SMPP--> YepMsg --SMPP--> carriers
 HTTP send --->   |  ^
                  |  +-- routing hook (control plane)
                  +----- screen hook (YepShield, optional)
                  +----- durable store, receipt correlation, CDRs
  1. A customer submits over SMPP or the HTTP send API. The gateway authenticates the account, applies its limits and accepts the message into the durable store.
  2. If a firewall is configured, YepMsg asks YepShield for a verdict and performs the action it returns.
  3. YepMsg asks the routing hook where the message goes. The answer names a carrier connection, can rewrite the sender or destination, or refuses the message with an SMPP status.
  4. The message goes to the carrier connection, windowed and rate limited. The carrier's message ID is stored against the gateway's own ID.
  5. Delivery receipts from the carrier are correlated to the message and returned to the customer over SMPP or a signed webhook.
  6. A CDR is written for every message.

Inbound messages from carriers take the same route in reverse: optional screening, a routing decision to find the owning account, then delivery over the account's SMPP sessions or an MO webhook.

Design rules

  • One SMPP codec serves both the server and the carrier connections.
  • Unknown optional parameters (TLVs) and unmodelled PDU types are passed through byte for byte.
  • Segmentation is counted in septets, and text is never silently altered.
  • CDRs are an immutable stream: append-only files that are never rewritten.
  • The control plane may fail at any time without losing accepted messages.

Deployment shape

A single static binary driven by one YAML file. Unknown keys are errors and a validation mode checks a configuration before anything restarts. Production runs on PostgreSQL for the message store, receipt correlation, quotas and the HA lease. A memory backend exists for development. See High availability and durability and Operations.

In this section

The control-plane contract, the send API specification and the conformance tooling are provided to customers and evaluating teams on request. Get in touch.

Contact sales

Questions about YepMsg?

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