IOSOR Learn
Aligning Multi-Carrier DLR State Machines for Consistent Delivery Receipts
Operations teams verify DLR state transitions map consistently across carrier routes to prevent false success reporting and trigger partner comparison when discrepancies exceed threshold.
Lead Telecom & Routing Architect · Lausanne, CH
Operations teams must validate that delivery receipt state transitions — sent, delivered, failed, expired — map identically across every carrier route to eliminate false success reporting and enable automated partner comparison when discrepancies breach defined thresholds.
Carrier DLR State Taxonomy Normalization
Each carrier exposes a unique DLR state vocabulary: some collapse 'buffered' and 'accepted' into a single 'sent' state, others distinguish 'delivered_to_handset' from 'delivered_to_network'. Build a canonical state matrix that translates every carrier-specific code into the IOSOR standard set {QUEUED, SENT, DELIVERED, FAILED, EXPIRED, UNKNOWN}.
Webhook Ingestion Idempotency & Ordering Guarantees
Carriers may redeliver DLR webhooks out of order or duplicate them during retries. Enforce idempotency keys composed of (carrier_id, message_id, dlr_timestamp, state_code) and persist the highest-seen state per message using a monotonic state rank (QUEUED=1 … EXPIRED=6). Reject any webhook that would downgrade the stored state.
Sender ID & Template Gate Alignment
DLR state meaning shifts when sender ID registration status or template approval state differs across routes. A 'FAILED' on route X may mean 'sender not registered' while route Y returns 'template rejected'. Tag every DLR with the active sender_id_registration_status and template_approval_status at send time.
Discrepancy Detection Thresholds & Alerting
Define per-corridor discrepancy budgets: maximum allowed divergence in terminal-state rates (DELIVERED vs FAILED) between any two routes serving the same destination prefix over a rolling 1-hour window. Default budget = 2.5 percentage points. When budget is breached, emit a structured alert containing corridor, carrier pair, state delta, sample message_ids, and a direct link to the comparison tool.
Reconciliation Dashboard & Drill-Down
Surface a real-time dashboard showing per-carrier state distribution, transition latency percentiles (p50, p95, p99), and discrepancy budget consumption. Enable drill-down from any corridor cell to a message-level waterfall view displaying the raw carrier DLR payload, the normalized state, sender/template tags, and webhook receipt timestamps.
Start with IOSOR
Compare verified partner routes for your channel and corridor using the route comparison tool to identify carriers whose DLR state machines align with your canonical taxonomy and discrepancy budgets.
Related: balance reservation before first debit · Wallet stop-lines before production.
IOSOR takeaway
Each carrier exposes a unique DLR state vocabulary: some collapse 'buffered' and 'accepted' into a single 'sent' state, others distinguish 'delivered_to_handset' from 'delivered_to_network'. Enable drill-down from any corridor cell to a message-level waterfall view displaying the raw carrier DLR payload, the normalized state, sender/template tags, and webhook receipt timestamps (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Route Failover DNS TTL Propagation: Verifying Cutover Before Traffic Shifts
Audit DNS TTLs, resolver caches, and propagation lag so failover cutover completes before traffic shifts; then compare partner failover readiness via /tools/brief.
- Verify Route Failover Drain Windows Before Committing Volume
Check failover drain windows, in-flight SMS and voice handling, and cutover timing per route before you commit volume, then compare verified partner routes.
- Verify Route Failover Drain State Before Traffic Shift
Confirm drain state, in-flight message accounting, and failover cutover consistency before shifting volume so you don't strand DLRs or double-send during a route transition.












