YepMsg documentation

Encodings and concatenation

How YepMsg handles GSM 03.38, UCS-2 and binary messages, counts segments in septets, reassembles concatenated inbound messages and refuses lossy conversion.

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 treats message text as data that must survive the trip. It does not substitute characters silently and it counts segments the way handsets do.

Character sets

CodingUse
GSM 03.387-bit default alphabet, including the extension table
UCS-2Any text that does not fit GSM 03.38
8-bit binaryRaw payloads, with or without a user data header

Both the SMPP path and the HTTP send API select the coding the same way. With automatic selection, the gateway uses GSM 03.38 when every character fits and UCS-2 otherwise.

No silent substitution

A character outside GSM 03.38 in a message forced to GSM is rejected, or explicitly replaced where a replacement is asked for. It is never replaced quietly. The HTTP send API returns a validation error for a forced 7-bit message that does not fit, so the sender can choose UCS-2 or edit the text.

Segmentation

The gateway splits long messages into segments with concatenation headers.

  • GSM 03.38 text is counted in septets. Characters in the extension table count as two.
  • UCS-2 text is counted in 16-bit units, with the capacity of each segment reduced by the concatenation header.
  • The segment count is computed once and given to the control plane in the routing request, so rating uses the same count that the carrier leg will send.

A message that cannot be segmented at all is refused with an SMPP error after routing, and the routing request says so by reporting zero segments.

When the routing answer rewrites the body, the gateway re-segments it and records the segment count after the rewrite.

Inbound concatenation

Inbound messages that arrive as several segments from a carrier can be reassembled into one message before they are routed and delivered. With reassembly enabled, the gateway collects segments by reference number, delivers the whole message once, and discards an incomplete set after a timeout, counting the expiry. Without reassembly, segments are passed on as received.

Binary messages

A binary message is delivered to the carrier as 8-bit data. A user data header can accompany it, for port-addressed payloads. The HTTP send API takes the payload as base64 in data and the header as base64 in udh, and rejects binary data without it.

On inbound, the gateway delivers a binary body to webhooks as base64 in data and a text body as decoded text in text.

Firewall rewrites

When YepShield labels a message, it returns a rewritten body in the same encoding fields. The gateway applies it and re-segments, and the record shows the segment count after the rewrite.

Unknown parameters

Unknown TLVs and PDU types pass through byte for byte, so optional parameters a carrier or customer relies on are not lost.

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