IOSOR Learn

Carrier SMS MT DLR Status Code Mapping Audit

Verify carrier-specific delivery receipt status code mappings against internal enums to prevent misclassification of failed messages as delivered, then compare providers with accurate DLR normalization in the Decision Brief.

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

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

Engineers audit carrier-specific DLR status code mappings against internal enums to catch misclassified delivery states before they corrupt billing and retry logic. Accurate normalization prevents failed messages from being recorded as delivered across webhook pipelines.

Carrier DLR Taxonomy Collection

Gather official delivery receipt status code tables from each upstream carrier and map every code to the internal enum set: DELIVERED, FAILED, EXPIRED, REJECTED, UNKNOWN. Flag codes that carriers overload — for example, a single code used for both expired and rejected — and document the disambiguation rule (timestamp delta, error sub-code, or SMSC response).

Enum Drift Detection Pipeline

Implement a nightly diff job that compares live webhook payloads against the stored mapping table. Any raw_code appearing in production that lacks a mapping entry triggers an alert with sample payload, carrier_id, and timestamp.

Webhook Latency & Ordering Guarantees

Measure end-to-end DLR webhook latency from carrier SMSC to internal ingestion endpoint. Establish p50/p95/p99 baselines per carrier and corridor. Verify ordering: for a given message_id, the final terminal state (DELIVERED/FAILED) must arrive after any intermediate states (BUFFERED, ACCEPTED). Out-of-order receipts are logged and excluded from real-time billing counters until reconciled.

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

Sender ID & Template Gate Correlation

Cross-reference DLR outcomes with sender_id registration status and template approval state at send time. A DELIVERED receipt on an unregistered sender_id or rejected template indicates carrier-side filtering that bypassed normal error codes. Build a correlation matrix: (sender_status, template_status) → observed DLR enum distribution.

Reconciliation & Billing Impact Audit

Run weekly reconciliation between internal message log, carrier billing CDR, and normalized DLR enum counts. Discrepancies >0.1% per carrier/corridor trigger a root-cause workflow: pull raw DLR samples, verify mapping logic, check for duplicate or missing receipts. Document each discrepancy class (duplicate DELIVERED, missing FAILED, enum flip) and the fix applied (mapping patch, deduplication key, webhook retry policy).

Start with IOSOR

Use the Decision Brief to compare verified partner routes for your channel and corridor: Compare ISV Embed routes. Establish p50/p95/p99 baselines per carrier and corridor. Verify ordering: for a given message_id, the final terminal state (DELIVERED/FAILED) must arrive after any intermediate states (BUFFERED, ACCEPTED).

PAYG hold before first debit · Wallet stop-lines before production.

IOSOR takeaway

Gather official delivery receipt status code tables from each upstream carrier and map every code to the internal enum set: DELIVERED, FAILED, EXPIRED, REJECTED, UNKNOWN. Document each discrepancy class (duplicate DELIVERED, missing FAILED, enum flip) and the fix applied (mapping patch, deduplication key, webhook retry policy) (/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