IOSOR Learn
Regional Route DLR State Machine Conformance Gate
Validate DLR state transitions across regional routes before using partner receipts for billing or SLA reporting.
Lead Telecom & Routing Architect · Lausanne, CH
Verify that every regional route emits delivery receipts following the exact state sequence: sent → delivered/failed/expired, with no skipped or duplicate transitions. This gate blocks routes that emit ambiguous or reordered states before they feed billing or SLA dashboards.
State Sequence Definition
Each route must publish a formal state diagram covering sent, buffered, delivered, failed, expired, and rejected. Transitions must be deterministic: sent → buffered is optional; sent → delivered/failed/expired is mandatory. Any route allowing sent → delivered → failed or sent → expired → delivered fails the gate. Enforce a maximum of 3 state transitions per message_id within a 60-second window; routes exceeding this threshold are quarantined. Verify that buffered → delivered/failed/expired occurs within a 300-second TTL, otherwise the state is auto-marked expired.
Webhook Payload Contract
DLR webhooks must include message_id, partner_id, timestamp_utc, state, sub_state, and error_code when applicable. Timestamps must be monotonic per message_id. Missing fields or non-monotonic timestamps trigger automatic quarantine. Verify HMAC-SHA256 signatures on every webhook using the partner's registered secret; reject payloads with invalid signatures or clock skew > 60 seconds. Confirm idempotency by deduplicating webhooks with identical message_id + state pairs within a 10-second window.
During pre-flight verification, validate that automatic failover thresholds trigger deterministic rerouting without duplicating outbound segments or exhausting retry backoff budgets under peak regional load.
Sender and Template Guardrails
Routes that rewrite sender IDs or template variables after the sent state must log the rewrite as a sub_state transition. Silent rewrites that change delivery outcome without a visible state change are non-conformant. Log all sender ID rewrites with the original and rewritten value in the audit record; routes with > 0.5 % silent rewrite rate fail the gate.
Latency and Ordering SLA
Webhook delivery must achieve p95 < 5 s from partner acknowledgment. Out-of-order webhooks arriving > 30 s after the expected state are flagged for reconciliation. Partners exceeding 2 % out-of-order rate enter review. Track webhook acknowledgment latency per partner_route_id; routes with p99 > 10 s are throttled.
Reconciliation and Audit Trail
Every state transition writes an immutable audit record with partner_route_id, correlation_id, and hash of the raw partner payload. Monthly sampling of 0.1 % volume validates hash integrity. Discrepancies open a conformance ticket before any billing close. Reconciliation jobs must complete within 24 hours of state transition; unresolved discrepancies beyond 72 hours block billing close for the affected partner_route_id.
Related: PAYG hold before first debit · Wallet stop-lines before production · OTP TTL and resend cooldown.
Start with IOSOR
Verify regional routes using the route comparison tool to select partners whose DLR state machines pass this gate. Run the validation gate in /tools/brief, enforce transition integrity via /tools/brief, and schedule reconciliation audits with /tools/brief.
IOSOR takeaway
Each route must publish a formal state diagram covering sent, buffered, delivered, failed, expired, and rejected. Discrepancies open a conformance ticket before any billing close (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Regional Sender ID Whitelist Drift: Audit Before You Scale
Audit sender ID whitelists and registrations across regions before scaling SMS volume. Verify DLR receipts, webhook latency, and registry drift with a partner route comparison.
- Regional Number KYC Verification Gates for Cross-Border Route Buyers
Map regional number KYC document and attestation gates before committing to a cross-border route, then compare partners whose verification workflows fit your target regions.
- Regional Opt-Out Keyword Localization and Consent Audit
Verify localized STOP keywords, consent evidence, and DLR/webhook confirmations per region before scaling. Compare partner routes via /tools/brief when audit trails fail.












