Sending messages
How to fill in submit_sm for JT Noble SMS.
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 2348030000000. |
esm_class | 0, or 0x40 when the message has a UDH (long messages). See Encoding. |
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. Up to 160 bytes (140 for UCS2). |
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
- The networks in each country may block or change a sender ID they do not know. A sender rule set by JT Noble SMS on your bind can also replace or refuse a sender.
- Some countries need sender IDs registered with the networks first. Ask your account manager before you send a new sender ID.
- A sender refused by a rule answers
0x00000045ESME_RSUBMITFAIL. Use a registered one. - Which countries need registration, and how long it takes, depends on each country's networks.