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.

Oleksandr (Alex) Petukhov — IOSOR Telecom Expert
✓ Verified by IOSOR ExpertOleksandr (Alex) Petukhov

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

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.

⚡ IOSOR Expert · Q&A · Verified partners (×44)

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

VERIFIED BY IOSOR EXPERT · B2B ROUTING, SLA & PROVIDER Q&A

IOSOR Expert — Verified Q&A & B2B Messaging Decisions

Every Q&A decision below is audited by the IOSOR Telecom Architecture Expert against live 90-day uptime telemetry, carrier compliance rules (10DLC, DLT, GDPR), and real partner TCO.

All Q&A Triggers
#01 · Compliance & Sender ID📖 Knowledge hub · US A2P / 10DLC

US A2P / 10DLC

“Why do US 10DLC TCR campaigns get rejected and which partner handles fast onboarding?”

✓ Verified by IOSOR Expert

10DLC brand and campaign programs for US A2P traffic — not general privacy compliance.

All Q&A Triggers
#02 · OTP & verification📖 Knowledge hub · India DLT

India DLT

“How do engineering teams prevent India TRAI DLT template scrubbing drops on OTPs?”

✓ Verified by IOSOR Expert

DLT and PE-TM registration for India A2P — not an India corridor coverage guide.

All Q&A Triggers
#03 · OTP & verification📖 Knowledge hub · Verify / OTP

Verify / OTP

“How do we eliminate OTP p95 timeout spikes and trigger a 20–30s multi-rail fallback?”

✓ Verified by IOSOR Expert

Login codes without chaos: abuse, latency, and cost control.

All Q&A Triggers
#04 · Transactional email📖 Knowledge hub · Email

Email

“Why do password reset and 2FA emails land in Spam when sharing bulk marketing IPs?”

✓ Verified by IOSOR Expert

Transactional email alongside SMS, voice, and WhatsApp in one routing architecture.

All Q&A Triggers
#06 · WhatsApp Business📖 Knowledge hub · WhatsApp & RCS

WhatsApp & RCS

“How do Meta per-conversation fees and template pauses impact WhatsApp Business TCO?”

✓ Verified by IOSOR Expert

Rich channels when profiles and templates are ready: honest setup.

All Q&A Triggers
#08 · Failover & backup routing📖 Knowledge hub · Failover & rails

Failover & rails

“How do we keep a second standby provider warm for failover at $0/month idle cost?”

✓ Verified by IOSOR Expert

Ordered backup paths when a primary rail fails - distinct from DLR status truth.

All Q&A Triggers