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
| Coding | Use |
|---|---|
| GSM 03.38 | 7-bit default alphabet, including the extension table |
| UCS-2 | Any text that does not fit GSM 03.38 |
| 8-bit binary | Raw 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.