IOSOR Learn
SMPP ESME Address TON/NPI Rejection Code Mapping
Map SMPP ESME address TON/NPI rejection codes across providers to build failover routing rules and trigger partner comparison for SMPP gateway selection.
Lead Telecom & Routing Architect · Lausanne, CH
Operators standardize SMPP bind and submit_sm ESME address TON/NPI rejection codes across providers to build accurate failover routing rules and trigger partner comparison for SMPP gateway selection. This reference maps each provider-specific code to a unified taxonomy so routing logic can react deterministically.
TON/NPI Rejection Taxonomy
Each SMPP gateway returns distinct command_status values when the ESME address TON or NPI is invalid, unknown, or unsupported. Common codes include 0x0000000B (Invalid Source Address TON), 0x0000000C (Invalid Source Address NPI), 0x0000000D (Invalid Dest Address TON), and 0x0000000E (Invalid Dest Address NPI). Some third parties extend this range with proprietary subcodes for alphanumeric sender restrictions or short-code class mismatches.
Provider-Specific Code Variants
the rail-compatible stacks often return 0x0000000B for any TON mismatch, while Sinch-style gateways split 0x0000000B (TON) and 0x0000000C (NPI) cleanly. Infobip adds 0x00000064 for alphanumeric sender TON=5 rejection. Plivo uses 0x00000065 when NPI=1 (E.164) is required but TON=0 is sent. Map each variant to the unified taxonomy before routing logic consumes it.
Normalization Pipeline Stages
Ingest raw command_status from PDU logs, enrich with provider metadata (gateway ID, region, contract tier), then apply a deterministic mapping table that outputs a canonical rejection reason: INVALID_TON, INVALID_NPI, UNSUPPORTED_TON_NPI_COMBO, SENDER_CLASS_MISMATCH. Store the canonical reason alongside the raw code for audit and replay.
Failover Routing Rule Construction
Routing engines consume the canonical reason to decide: retry with corrected TON/NPI, switch to a gateway that accepts the original TON/NPI, or escalate to operator review. Rules must be idempotent and versioned; each rule change increments a routing policy version logged in IOSOR for traceability.
Observability & Drift Detection
Emit metrics per canonical reason per gateway per corridor. Alert when a gateway's rejection rate for INVALID_TON spikes >5% above its 7-day baseline, indicating a provider-side validation change. Correlate with DLR receipt latency and webhook callback success to distinguish validation drift from transport degradation.
Start with IOSOR
Use the partner comparison tool to evaluate verified SMPP gateway routes for your corridors. Checklist: confirm each gateway's TON/NPI acceptance matrix, validate normalization pipeline against live PDU captures, version routing rules in IOSOR, and set drift alerts on canonical rejection reasons.
IOSOR takeaway
Each SMPP gateway returns distinct command_status values when the ESME address TON or NPI is invalid, unknown, or unsupported. Correlate with DLR receipt latency and webhook callback success to distinguish validation drift from transport degradation (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Suppression List Error Code Precedence: Audit Before Route Comparison
Resolve which code wins when suppression, upstream provider error, and channel rejection collide, then compare partner routes whose error contracts match your governance.
- Detecting Failover Route Drift in Error-Reference Code Contracts
How ops teams verify that failover routes preserve error-reference semantics after provider or corridor changes, using partner route comparison to prove error-code parity.
- Carrier Maintenance Windows: Mapping Error Codes to Failover Decisions
Classify carrier error codes as maintenance-window, true route failure, or ambiguous deferral, then choose failover vs retry with verification criteria.












