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.
Lead Telecom & Routing Architect · Lausanne, CH
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.
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
- Embedded Route Fallback Destination Weighting: Audit and Comparison Gates
Audit how fallback destinations are weighted across embedded routes, catch silent weight drift, and decide when to rebalance or renegotiate before volume shifts.
- Embedded Route Sandbox-to-Production Promotion Gates
How to decide an embedded SMS, voice, or email route is safe to promote: verify sandbox DLR receipts, schemas, credentials, and quotas transfer to live traffic.
- Embedded Route Cost-Band Quote Drift: Verify Before You Commit Volume
Prove partner-quoted per-route cost bands still hold after destination mix, encoding, and volume-tier shifts before you sign embedded messaging volume.












