Skip to content

Test on SANDBOX step by step SANDBOX ​

This guide walks you through testing SMS Gateway on SANDBOX end to end. No real SMS is sent; the outcome depends on the last 4 digits of the destination number (scenario table).

Every example on this page was run against the real dev system (API http://localhost:30080, SMPP localhost:2775). Keys, secrets, passwords and ids on this page are sample values; use your own.

WayGood forYou need
1. Admin "Test send" pagequick look, no codean admin account with message.send
2. HTTP APIsystems that send with POST /v1/messagesan API key (keyId + secret)
3. SMPPsystems that already talk SMPP 3.4 to an SMSCan SMPP account (system_id + password) + IP allowlist

Overview: 4 combinations and where the DR goes ​

Clients connect over 2 channels (HTTP / SMPP) and can send out over 2 SANDBOX routes. All combinations use the same logic (route, sender name, TPS, duplicate guard, DR, MO).

  • route SANDBOX simulates an HTTP provider: SANDBOX posts DR/MO back to the Gateway's /provider/sandbox/dr and /provider/sandbox/mo
  • route SANDBOX_SMPP simulates an SMPP provider: DR/MO arrive as deliver_sm on a simulated bind, with a bind state (BOUND / UNBOUND)
Client connects overrouteHow the route is pickedDR / MO reach the client as
HTTPSANDBOXroute field of each requestwebhook message.status / message.inbound
HTTPSANDBOX_SMPProute field of each requestwebhook message.status / message.inbound
SMPPSANDBOXRoute of the SMPP account (set in admin)deliver_sm on an RX/TRX session
SMPPSANDBOX_SMPPRoute of the SMPP account (set in admin)deliver_sm on an RX/TRX session
text
HTTP client ── POST /v1/messages ─┐                        ┌─ route SANDBOX ──── DR/MO as HTTP POST ─┐
                                  ├─> Gateway (service.Send) ┤                                         ├─> Gateway ─┬─> webhook   (HTTP client)
SMPP client ── submit_sm :2775 ───┘                        └─ route SANDBOX_SMPP ─ DR/MO as deliver_sm ┘            └─> deliver_sm (SMPP client)

How the client gets results depends on the channel the message was sent on, not on the route: messages sent over HTTP report by webhook, messages sent over SMPP report by deliver_sm.

Before you start (administrator) ​

Dev has a ready SANDBOX set (client smsup, routes SANDBOX / SANDBOX_SMPP, sender name SANDBOX). To test with a new client, open admin → Clients → pick the client:

  1. Routes tab: add route SANDBOX → account SANDBOX HTTP and SANDBOX_SMPP → account SANDBOX SMPP, then Save routes
  2. Senders page: add sender SANDBOX of provider sandbox for this client with status APPROVED
  3. Way 2 needs an API key, way 3 needs an SMPP account (see each way)

Way 1: admin "Test send" page ​

  1. Open the admin site and log in
  2. Menu Test send
  3. Client: pick a client, e.g. smsup
  4. Route: SANDBOX or SANDBOX_SMPP
  5. Sender name: SANDBOX
  6. SANDBOX scenario: pick a case, e.g. 0001 undeliverable; the page sets the last 4 digits of the destination for you
  7. Text: type a message (Thai over 70 characters or GSM over 160 is split into parts)
  8. Press Send test, then Open timeline to see the message events (submitted → sent → delivered …)

Messages sent from this page take the same path as the HTTP API: the chosen client's webhook is called too (if a URL is set), and the calls show on the Webhooks page.

Way 2: HTTP API ​

2.1 Create an API key ​

  1. Admin → Clients → pick the client → API keys tab
  2. Press Create API key with a label such as sandbox-test
  3. Copy the Key ID and Secret now; the secret is shown once
  4. If the client has an IP allowlist, call from a listed IP or get 403 IP_NOT_ALLOWED (empty = not checked; fine for testing only)

All examples read these environment variables:

bash
export GW_URL=http://localhost:30080
export GW_KEY_ID=gw_0123456789abcdef   # sample value
export GW_SECRET='<secret from key creation>'

2.2 Sign and send ​

Signature = hex(HMAC-SHA256(secret, rawBody + "." + timestamp)) in headers X-GW-Key-ID, X-GW-Timestamp, X-GW-Signature (details). A request without a body (GET) signs "" + "." + timestamp.

bash
#!/usr/bin/env bash
# usage: GW_KEY_ID=... GW_SECRET=... ./send.sh 66812340001
set -euo pipefail
GW_URL="${GW_URL:-http://localhost:30080}"
TO="${1:-66812345678}"

body=$(printf '{"clientRef":"sbx-%s","route":"SANDBOX","from":"SANDBOX","to":"%s","text":"ทดสอบ SANDBOX"}' "$(date +%s)-$RANDOM" "$TO")
ts=$(date +%s)
sig=$(printf '%s.%s' "$body" "$ts" | openssl dgst -sha256 -hmac "$GW_SECRET" -hex | sed 's/^.* //')

curl -sS -X POST "$GW_URL/v1/messages" \
  -H 'Content-Type: application/json' \
  -H "X-GW-Key-ID: $GW_KEY_ID" \
  -H "X-GW-Timestamp: $ts" \
  -H "X-GW-Signature: $sig" \
  --data-raw "$body"
echo
js
// usage: GW_KEY_ID=... GW_SECRET=... node send.mjs 66812340001
import { createHmac } from 'node:crypto'

const GW_URL = process.env.GW_URL ?? 'http://localhost:30080'

function sign(rawBody, timestamp) {
  return createHmac('sha256', process.env.GW_SECRET).update(`${rawBody}.${timestamp}`).digest('hex')
}

async function call(method, path, payload) {
  const body = payload === undefined ? '' : JSON.stringify(payload)
  const timestamp = Math.floor(Date.now() / 1000).toString()
  const res = await fetch(GW_URL + path, {
    method,
    headers: {
      'Content-Type': 'application/json',
      'X-GW-Key-ID': process.env.GW_KEY_ID,
      'X-GW-Timestamp': timestamp,
      'X-GW-Signature': sign(body, timestamp),
    },
    body: body || undefined,
  })
  return { status: res.status, json: await res.json() }
}

const sent = await call('POST', '/v1/messages', {
  clientRef: `sbx-${Date.now()}`,
  route: 'SANDBOX',
  from: 'SANDBOX',
  to: process.argv[2] ?? '66812345678',
  text: 'ทดสอบ SANDBOX',
})
console.log(sent.status, sent.json)

if (sent.json.messageId) {
  await new Promise((r) => setTimeout(r, 5000))
  const got = await call('GET', `/v1/messages/${sent.json.messageId}`)
  console.log(got.json.status, got.json.events.map((e) => e.stage))
}
python
# usage: GW_KEY_ID=... GW_SECRET=... python3 send.py 66812340001
import hashlib, hmac, json, os, sys, time, urllib.error, urllib.request

GW_URL = os.environ.get("GW_URL", "http://localhost:30080")


def call(method, path, payload=None):
    body = b"" if payload is None else json.dumps(payload, ensure_ascii=False).encode()
    ts = str(int(time.time()))
    sig = hmac.new(os.environ["GW_SECRET"].encode(), body + b"." + ts.encode(), hashlib.sha256).hexdigest()
    req = urllib.request.Request(GW_URL + path, data=body or None, method=method, headers={
        "Content-Type": "application/json",
        "X-GW-Key-ID": os.environ["GW_KEY_ID"],
        "X-GW-Timestamp": ts,
        "X-GW-Signature": sig,
    })
    try:
        with urllib.request.urlopen(req) as r:
            return r.status, json.load(r)
    except urllib.error.HTTPError as e:
        return e.code, json.load(e)


status, sent = call("POST", "/v1/messages", {
    "clientRef": f"sbx-{time.time_ns()}",
    "route": "SANDBOX",
    "from": "SANDBOX",
    "to": sys.argv[1] if len(sys.argv) > 1 else "66812345678",
    "text": "ทดสอบ SANDBOX",
})
print(status, sent)
if "messageId" in sent:
    time.sleep(5)
    _, got = call("GET", f"/v1/messages/{sent['messageId']}")
    print(got["status"], [e["stage"] for e in got["events"]])

Answer 200:

json
{
  "messageId": "5d98416a-0000-4000-8000-000000000001",
  "clientRef": "sbx-1796033791-12345",
  "status": "SUBMITTED",
  "parts": 1,
  "operator": "SANDBOX",
  "duplicate": false
}
  • Sending the same clientRef again returns the original message with "duplicate": true and sends nothing; always retry with the same clientRef
  • Errors come as { "error": { "code", "message", "retryable" } }, see Error codes

2.3 Get the status: GET /v1/messages/{messageId} ​

bash
#!/usr/bin/env bash
# usage: GW_KEY_ID=... GW_SECRET=... ./get.sh <messageId>
set -euo pipefail
GW_URL="${GW_URL:-http://localhost:30080}"
ts=$(date +%s)
# GET has no body: sign "" + "." + timestamp
sig=$(printf '.%s' "$ts" | openssl dgst -sha256 -hmac "$GW_SECRET" -hex | sed 's/^.* //')

curl -sS "$GW_URL/v1/messages/$1" \
  -H "X-GW-Key-ID: $GW_KEY_ID" \
  -H "X-GW-Timestamp: $ts" \
  -H "X-GW-Signature: $sig"
echo

About 3 seconds after sending to a normal number you should get "status": "DELIVERED" with events submitted → sent → delivered (full example in Get message status). Look up by clientRef with GET /v1/messages?clientRef=....

2.4 Receive the DR by webhook ​

  1. Admin → Clients → edit the client → set Status webhook to e.g. http://127.0.0.1:8787/gw-webhook (Inbound (MO) webhook empty = same URL)
  2. Run the receiver below, then press Send test webhook on the Webhook tab, or send a new message

The Gateway signs webhooks with the secret of the client's latest usable API key, same formula as requests, and sends X-GW-Key-ID to say which key. Answer 2xx fast; otherwise the Gateway retries (up to 12 times within 24 hours), so de-duplicate on eventId.

js
// usage: GW_SECRET=... node webhook.mjs   (listens on :8787)
import { createHmac, timingSafeEqual } from 'node:crypto'
import { createServer } from 'node:http'

const seen = new Set() // eventId already handled (use a DB table in real code)

function valid(rawBody, timestamp, signature) {
  if (Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false
  const expected = createHmac('sha256', process.env.GW_SECRET).update(`${rawBody}.${timestamp}`).digest('hex')
  const a = Buffer.from(expected)
  const b = Buffer.from(String(signature))
  return a.length === b.length && timingSafeEqual(a, b)
}

createServer((req, res) => {
  const chunks = []
  req.on('data', (c) => chunks.push(c))
  req.on('end', () => {
    const raw = Buffer.concat(chunks).toString('utf8')
    if (!valid(raw, req.headers['x-gw-timestamp'], req.headers['x-gw-signature'])) {
      res.writeHead(401).end()
      return
    }
    const event = JSON.parse(raw)
    if (!seen.has(event.eventId)) {
      seen.add(event.eventId)
      console.log(event.type, event.stage ?? '', event.status ?? '', event.code ?? '', event.messageId ?? '')
      console.log(raw)
    }
    res.writeHead(200).end('ok') // answer 2xx fast; do slow work after
  })
}).listen(8787, () => console.log('webhook on http://127.0.0.1:8787'))

Send to 66812340001 and the receiver should print 3 lines:

text
message.status submitted PENDING  5d98416a-...
message.status sent PENDING  5d98416a-...
message.status failed FAILED UNDELIVERED 5d98416a-...

Body formats of every type are on Webhooks.

dev vs production

On dev, webhooks may call localhost. In production the Gateway does not call internal addresses (loopback, private, link-local); use a URL reachable from the internet.

Way 3: SMPP ​

3.1 Create an SMPP account ​

  1. Admin → Clients → pick the client → SMPP tab → Add SMPP account
  2. system_id: 1–15 characters, e.g. demo01
  3. Bind types: TX, RX, TRX (the examples use TRX)
  4. Route: SANDBOX or SANDBOX_SMPP; every message of this account uses it (SMPP has no route field)
  5. IP: the IPs that will bind, e.g. 127.0.0.1/32 and ::1/128 for your own machine. Empty = use the client's IPs; empty on both = bind refused
  6. Save, then copy the Password now; it is shown once (use Reset password if lost)

Defaults: max sessions 2, window 10, TPS 50, keep DRs waiting for a bind 72 hours.

bash
export SMPP_SYSTEM_ID=demo01                # sample value
export SMPP_PASSWORD='<password from account creation>'

3.2 Bind TRX, submit_sm, receive deliver_sm ​

python
# pip install smpplib
# usage: SMPP_SYSTEM_ID=... SMPP_PASSWORD=... python3 smpp_client.py 66812345678 "ทดสอบ SMPP"
import os, sys, time

import smpplib.client
import smpplib.consts

HOST, PORT = os.environ.get("SMPP_HOST", "localhost"), int(os.environ.get("SMPP_PORT", "2775"))
to = sys.argv[1] if len(sys.argv) > 1 else "66812345678"
text = sys.argv[2] if len(sys.argv) > 2 else "ทดสอบ SMPP"
wait_s = int(os.environ.get("WAIT", "15"))  # how long to keep the bind open for DR / MO
state = {"done": False}


def on_sent(pdu):
    # submit_sm_resp: message_id = messageId of the gateway (UUID)
    print("submit_sm_resp status=0x%08X message_id=%s" % (pdu.status, pdu.message_id.decode()))
    if pdu.status != 0:
        state["done"] = True


def on_deliver(pdu):
    body = pdu.short_message or pdu.message_payload or b""
    if pdu.esm_class & 0x04:  # delivery receipt
        print("DR :", body.decode())
    else:  # MO from the handset (data_coding 8 = UCS2)
        print("MO :", body.decode("utf-16-be") if pdu.data_coding == 8 else body.decode())
    return 0  # deliver_sm_resp ESME_ROK


client = smpplib.client.Client(HOST, PORT, timeout=1, allow_unknown_opt_params=True)
client.set_message_sent_handler(on_sent)
client.set_message_received_handler(on_deliver)
client.connect()
try:
    client.bind_transceiver(system_id=os.environ["SMPP_SYSTEM_ID"], password=os.environ["SMPP_PASSWORD"])
except smpplib.exceptions.PDUError as e:
    print("bind_resp status=0x%08X" % e.args[1])
    sys.exit(1)

payload = text.encode("utf-16-be")
client.send_message(
    source_addr_ton=smpplib.consts.SMPP_TON_ALNUM,
    source_addr=os.environ.get("SMPP_FROM", "SANDBOX"),
    dest_addr_ton=smpplib.consts.SMPP_TON_INTL,
    dest_addr_npi=smpplib.consts.SMPP_NPI_ISDN,
    destination_addr=to,
    data_coding=smpplib.consts.SMPP_ENCODING_ISO10646,  # 8 = UCS2 (Thai)
    registered_delivery=1,  # 1 = send a DR for every result
    # up to 140 bytes in short_message; longer text goes in the message_payload TLV
    **({"short_message": payload} if len(payload) <= 140 else {"short_message": b"", "message_payload": payload}),
)

end = time.time() + wait_s
while time.time() < end and not state["done"]:
    try:
        client.read_once()  # handles submit_sm_resp, deliver_sm, enquire_link
    except smpplib.exceptions.PDUError as e:  # submit_sm_resp with an error command_status
        print("submit_sm_resp status=0x%08X" % e.args[1])
        break
    except OSError:  # socket timeout: nothing arrived within 1 s
        pass
client.unbind()
client.disconnect()
go
// go get github.com/linxGnu/gosmpp
// usage: SMPP_SYSTEM_ID=... SMPP_PASSWORD=... go run . 66812345678 "ทดสอบ SMPP"
package main

import (
	"fmt"
	"log"
	"os"
	"time"

	"github.com/linxGnu/gosmpp"
	"github.com/linxGnu/gosmpp/data"
	"github.com/linxGnu/gosmpp/pdu"
)

func main() {
	to, text := "66812345678", "ทดสอบ SMPP"
	if len(os.Args) > 2 {
		to, text = os.Args[1], os.Args[2]
	}
	addr := os.Getenv("SMPP_ADDR")
	if addr == "" {
		addr = "localhost:2775"
	}

	done := make(chan struct{}, 1)
	sess, err := gosmpp.NewSession(
		gosmpp.TRXConnector(gosmpp.NonTLSDialer, gosmpp.Auth{
			SMSC:     addr,
			SystemID: os.Getenv("SMPP_SYSTEM_ID"),
			Password: os.Getenv("SMPP_PASSWORD"),
		}),
		gosmpp.Settings{
			EnquireLink: 30 * time.Second,
			ReadTimeout: 60 * time.Second,
			OnAllPDU: func(p pdu.PDU) (pdu.PDU, bool) {
				switch p := p.(type) {
				case *pdu.SubmitSMResp:
					// message_id = messageId of the gateway (UUID)
					fmt.Printf("submit_sm_resp status=0x%08X message_id=%s\n", uint32(p.CommandStatus), p.MessageID)
					if p.CommandStatus != data.ESME_ROK {
						done <- struct{}{}
					}
				case *pdu.DeliverSM:
					msg, _ := p.Message.GetMessage()
					if p.EsmClass&0x04 != 0 {
						fmt.Println("DR :", msg) // id:<messageId> sub:001 dlvrd:001 ... stat:DELIVRD err:000 text:
					} else {
						fmt.Println("MO :", msg)
					}
					return p.GetResponse(), false // deliver_sm_resp ESME_ROK
				case *pdu.EnquireLink:
					return p.GetResponse(), false
				}
				return nil, false
			},
		}, 5*time.Second) // rebind 5 s after the link drops
	if err != nil {
		log.Fatal(err) // a refused bind shows its command_status, e.g. ESME_RINVPASWD
	}
	defer sess.Close()

	sm := pdu.NewSubmitSM().(*pdu.SubmitSM)
	_ = sm.SourceAddr.SetAddress("SANDBOX")
	sm.SourceAddr.SetTon(5) // alphanumeric
	_ = sm.DestAddr.SetAddress(to)
	sm.DestAddr.SetTon(1) // international
	sm.DestAddr.SetNpi(1) // ISDN
	sm.RegisteredDelivery = 1 // DR for every result
	if err := sm.Message.SetMessageWithEncoding(text, data.UCS2); err != nil {
		log.Fatal(err) // UCS2 short_message holds 70 characters; send longer text in message_payload
	}
	if err := sess.Transceiver().Submit(sm); err != nil {
		log.Fatal(err)
	}

	select {
	case <-done:
	case <-time.After(15 * time.Second): // keep the bind open to receive DR / MO
	}
}

Output (normal number, then 0001):

text
submit_sm_resp status=0x00000000 message_id=18ed20a2-0000-4000-8000-000000000001
DR : id:18ed20a2-0000-4000-8000-000000000001 sub:001 dlvrd:001 submit date:2611301726 done date:2611301726 stat:DELIVRD err:000 text:

submit_sm_resp status=0x00000000 message_id=03543593-0000-4000-8000-000000000002
DR : id:03543593-0000-4000-8000-000000000002 sub:001 dlvrd:000 submit date:2611301726 done date:2611301726 stat:UNDELIV err:001 text:
  • message_id in submit_sm_resp and id: in the DR are the Gateway messageId, the same one the admin site shows
  • Over SMPP only the final result of the whole message is sent (no ENROUTE for the sent stage); a multi-part message gets one DR
  • DR times are Thailand time, YYMMDDhhmm, with TLVs receipted_message_id (0x001E) and message_state (0x0427)
  • If no RX/TRX session is bound when a DR arrives, the Gateway keeps it and sends it on the next bind (within keep DRs waiting for a bind, 72 hours by default)
  • Bound sessions and a Disconnect button are on the client's SMPP tab

3.3 command_status values ​

CasePDUcommand_status
acceptedsubmit_sm_resp0x00000000 ESME_ROK
wrong password, or account requires TLS but bound on the plain portbind_resp0x0000000E ESME_RINVPASWD
unknown system_idbind_resp0x0000000F ESME_RINVSYSID
IP not in the allowlist, account off, bind type not allowedbind_resp0x0000000D ESME_RBINDFAIL
more binds than max sessionsbind_resp0x00000005 ESME_RALYBND
sender name (source_addr) not approved or suspendedsubmit_sm_resp0x0000000A ESME_RINVSRCADR
invalid destination numbersubmit_sm_resp0x0000000B ESME_RINVDSTADR
empty or too long textsubmit_sm_resp0x00000001 ESME_RINVMSGLEN
data_coding not accepted (0, 3, 8 are) or text that does not decodesubmit_sm_resp0x00000104 ESME_RINVDCS
over the account TPS or the windowsubmit_sm_resp0x00000058 ESME_RTHROTTLED
provider rejects or is unavailable (0004, 0005, 0006, 0013)submit_sm_resp0x00000045 ESME_RSUBMITFAIL
unsupported command (data_sm, query_sm, submit_multi …)generic_nack0x00000003 ESME_RINVCMDID

Repeated bind failures block the IP

10 failed binds within 5 minutes from one IP and the Gateway drops every connection from that IP without an answer for 15 minutes (a good bind does not reset the count). Mind this when testing wrong passwords.

On 0x58 wait and resend. On 0x45 from a retryable case (0005, 0013) you may resend, but SMPP has no clientRef, so duplicates are not prevented (limitations).

Scenarios: what you should see ​

Use 668123400XX with XX set to the case (e.g. 66812340001); any other number is the normal case. Times are SANDBOX defaults.

EndingHTTP: answer on sendFinal status (GET)Webhooks (HTTP client)SMPP client gets
other200 SUBMITTEDDELIVERED in ~3 ssubmitted → sent → deliveredROK + DR stat:DELIVRD err:000
0001200 SUBMITTEDFAILED errorCode: UNDELIVERED… → failed code: UNDELIVEREDROK + DR stat:UNDELIV err:001
0002200 SUBMITTEDEXPIRED errorCode: EXPIRED… → failed code: EXPIREDROK + DR stat:EXPIRED
0003200 SUBMITTEDFAILED errorCode: SENDER_SUSPENDEDsubmitted → failed code: SENDER_SUSPENDED; the 3rd within 60 min also brings sender.suspendedROK + DR stat:UNDELIV err:300; after the threshold, sends get 0x0A
0004502 SUBMIT_FAILED details.providerCode: INVALID_DESTINATIONSUBMIT_FAILEDfailed code: INVALID_DESTINATION0x45, then a DR stat:REJECTD
0005503 PROVIDER_UNAVAILABLE retryable: true— (no message stored)—0x45
0006502 SUBMIT_FAILED details.code: TIMEOUT after ~30 sUNKNOWNfailed code: TIMEOUT0x45 after ~30 s
0007200 SUBMITTEDstays SUBMITTED until the DR wait ends (72 h by default), then UNKNOWN NO_DRsubmitted, then nothingROK, no DR
0008200 DELIVERED (the DR came before the answer)DELIVEREDsubmitted → deliveredROK + DR stat:DELIVRD
0009200 SUBMITTEDDELIVERED (2 delivered events and a late sent)delivered onceone DR
0010200 SUBMITTEDDELIVEREDnormalnormal
0011200 SUBMITTEDDELIVEREDnormal, then ~5 s later message.inbound keyword: STOPDR, then MO STOP (deliver_sm esm_class 0x00)
0012200 SUBMITTEDSENT for ~60 s, then DELIVEREDsent, then delivered after ~60 sDR after ~60 s
0013route SANDBOX: 503 PROVIDER_UNAVAILABLE (providerCode: 502), sending the same number again succeeds / route SANDBOX_SMPP: 503 and the link is UNBOUND for 5 sDELIVERED after the resendnormal after the resend0x45

Notes

  • 0013 on SANDBOX_SMPP drops the link every time this number is sent. For those 5 seconds every message on route SANDBOX_SMPP gets 503. Watch it recover by sending a normal number after 5 seconds; see the link state with GET /v1/routes (bindState) or the Providers page
  • 0003 counts per sender name of the client: 3 within 60 minutes (configurable in settings) suspends the sender, and later sends get 422 SENDER_SUSPENDED until an administrator approves it again on the Senders page
  • Over HTTP, 0005 and 0013 are safe to retry with the same clientRef. Do not auto-retry 0004 and 0006 (retryable: false): 0006 may already have reached the handset

Long messages ​

TextPartsWhat you should see
GSM 7-bit up to 160 / Thai (UCS2) up to 70 characters1normal
GSM, 200 characters2 (153 per part)"parts": 2; sent / delivered events carry partNo 1 and 2
Thai, 100 characters2 (67 per part)"parts": 2 as well

The message status is the worst part: any part failed makes the message failed; all parts delivered makes it delivered. Over SMPP, send long text in the message_payload TLV (or send UDH parts yourself; each part is one message with its own DR).

Known limitations ​

  • registered_delivery: 0 = no DR and 1 = DR for every result are supported. 2 (DR on failure only) works like 1: you also get a DR on success
  • SMPP cannot prevent duplicates: SMPP has no clientRef; sending the same submit_sm twice sends 2 messages. Without a submit_sm_resp (e.g. the link dropped), check the admin site before resending. HTTP prevents duplicates with clientRef
  • sender.suspended is webhook only: SMPP clients are not told; they see 0x0A ESME_RINVSRCADR on the next send. Set a webhook URL too if you need to know at once
  • DR for a rejected submit_sm: in case 0004 an SMPP client gets 0x45 (no message_id) and later a DR stat:REJECTD whose id: matches none of its messages; ignore it
  • SMPP v1 supports submit_sm only; no data_sm, submit_multi, query_sm, cancel_sm, replace_sm