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.

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

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

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.

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

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

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