Send
Bind as bind_transmitter or bind_transceiver, then send each text, or each part of a long text, as one submit_sm. A submit_sm on a receiver bind is refused with ESME_RINVBNDSTS and the session closes.
submit_sm fields
| Field | Set it to |
|---|---|
| source_addr | Your Sender ID, such as ACME, approved for the number's operator. On a Channel that takes no Sender ID, the upstream sends from its own number or sender. A Sender ID that is not approved gives ESME_RINVSRCADR. |
| source_addr_ton / source_addr_npi | An alphanumeric sender (one with a letter in it) is always sent on as TON 5, NPI 0, whatever you set. For a numeric sender, set TON 1, NPI 1 yourself: Telrioz does not rewrite it. A message is never refused for its source TON/NPI. |
| destination_addr | The number in international digits, such as 6281234567890. Telrioz also accepts +62… and 08… (8 to 15 digits in all) and rewrites them to 62…. |
| dest_addr_ton / dest_addr_npi | TON 1, NPI 1. A number that Telrioz rewrites is sent on with TON 1, NPI 1. |
| service_type | OTP, NOTIF or MKT sends through your login's Gateway for that use case. If none is set, or for any other value, your login's default Gateway is used. Send the same service_type on every part of a long text: each part is routed and priced by its own value. |
| data_coding | 0x00 for GSM 7-bit, 0x08 for UCS-2. See Encodings. |
| esm_class | 0x00, or 0x40 when short_message starts with a UDH (a part of a long text). |
| registered_delivery | 1 for a receipt on every final result, 2 only on failure, 0 for none. See Delivery receipts. |
| short_message | The text, or one part of it. For a long text you can instead leave it empty and put the whole text in the message_payload TLV. |
submit_sm_resp
A submit_sm_resp with ESME_ROK means Telrioz accepted the part and held its price. Its message_id is the part's ID, a UUID such as 96ca0baa-5068-4481-b97a-7aa648dfd6d3. Keep it: the receipt and the webhook name the part by this ID. Any other status means the part was not accepted and costs nothing: see Errors.
Window and speed
- Up to 64
submit_smcan wait for their response on one session. At 64, Telrioz stops reading until a response goes out, so wait for responses before you send more. - Your login has a speed limit, in messages a second. Faster than that gives
ESME_RTHROTTLED: slow down and send the part again. - Each login allows a set number of binds at once (by default 1). One more bind gets
ESME_RBINDFAIL.
What it costs
Each part is its own segment and is charged as one once an upstream accepts it, whatever its final state. A part that no upstream accepted (not_sent, upstream_rejected) costs 0. See Charges.