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
- 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.
- If a firewall is configured, YepMsg asks YepShield for a verdict and performs the action it returns.
- 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.
- The message goes to the carrier connection, windowed and rate limited. The carrier's message ID is stored against the gateway's own ID.
- Delivery receipts from the carrier are correlated to the message and returned to the customer over SMPP or a signed webhook.
- 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
- Binds, accounts and carriers: customer access, carrier connectors, limits.
- Routing through the control plane: the hooks, rejects, provisioning, records.
- Delivery receipts: correlation, lifecycle and what the customer sees.
- Encodings and concatenation: character sets, segmentation, binary.
- HTTPS send API and webhooks: sending without an SMPP stack.
- High availability and durability: the store, lease fencing, failover.
- Operations: admin API, metrics, flight recorder.
The control-plane contract, the send API specification and the conformance tooling are provided to customers and evaluating teams on request. Get in touch.