Sending messages
How to fill in submit_sm for SMS YANU.
submit_sm fields
| Field | What to send |
|---|---|
source_addr_ton, source_addr_npi | Alphanumeric sender: 5 and 0. Number sender: 1 and 1. |
source_addr | Your sender ID, up to 11 letters and digits, or a number. It must be approved for the country. |
dest_addr_ton, dest_addr_npi | 1 and 1 (international, E.164). |
destination_addr | Full international number without +, for example 265990000000. |
esm_class | 0, or 0x40 when the message has a UDH (long messages). |
registered_delivery | 1 to get a delivery receipt. |
data_coding | 0 for GSM 7-bit, 8 for UCS2. See Encoding. |
short_message | The text, or one part of it. |
The reply
Every submit_sm gets a submit_sm_resp.
command_status = 0means we accepted the message. Themessage_idin the reply is the id you will see in the delivery receipt.- Any other
command_statusmeans the message was refused and not charged. See Errors.
Sender IDs
- SMS YANU does not filter sender IDs on SMPP binds. The networks in each country may block or change a sender ID they do not know.
- Some countries need sender IDs registered with the networks first. Ask your account manager before you send a new sender ID.
ESME_RINVSRCADRmeans the sender ID was refused further along. Use a registered one.
To be confirmed
Which countries need sender ID registration, and how long it takes, depends on each country's networks.