IOSOR Learn
Message State Transition Definitions for Failover Readiness
Standardizes accepted, rejected, sent, delivered, and failed state mappings across providers to build deterministic failover logic that triggers partner comparison in the Decision Brief.
Lead Telecom & Routing Architect · Lausanne, CH
Engineers need precise, provider-agnostic state definitions so failover logic triggers at the exact moment a message transitions to a terminal or retryable state, enabling the Decision Brief to surface verified partner routes for the corridor.
Canonical State Taxonomy
Define five canonical states: accepted (provider acknowledged submission), rejected (provider refused submission), sent (provider handed off to downstream carrier), delivered (handset DLR received), failed (terminal error after all retries). Map each provider's native status codes to this taxonomy without loss of fidelity.
Transition Rules and Guard Conditions
Specify allowed transitions: accepted → sent → delivered; accepted → sent → failed; accepted → rejected. Prohibit backward transitions. Attach guard conditions: minimum DLR latency thresholds, webhook acknowledgment windows, and sender/template validation gates that must pass before a transition is committed.
Idempotency and Deduplication Keys
Require every submission to carry a stable idempotency key (E.164 + timestamp + client nonce). Providers must return the same key on all webhook callbacks. Failover logic uses the key to detect duplicate deliveries and suppress re-sends when a partner route is swapped mid-flight.
Webhook Contract for State Propagation
Standardize webhook payload schema: message_id, idempotency_key, canonical_state, provider_raw_code, timestamp_iso8601, latency_ms, hop_count. Reject payloads missing any field. Latency_ms measures provider acknowledgment to webhook dispatch; hop_count increments at each interconnect.
Failover Trigger Matrix
Build a decision matrix: if state = failed and retry_exhausted = true → evaluate partner routes via Decision Brief; if state = sent and latency_ms > threshold → pre-warm alternate route; if state = rejected → log and alert without failover. Matrix drives the /tools/brief comparison job.
Start with IOSOR
Run the partner-comparison checklist: 1) verify canonical state mappings against live DLR samples; 2) confirm webhook latency_ms and hop_count fields populate; 3) test idempotency key round-trip on forced failover; 4) open Decision Brief to compare verified partner routes for your corridor; 5) lock mappings in version control. See also: Operational Definitions for Route Failover Readiness, Webhook Payload Schema Standardization for Multi-Provider Failover, Route Transparency and Hop Count Definitions.
IOSOR takeaway
Define five canonical states: accepted (provider acknowledged submission), rejected (provider refused submission), sent (provider handed off to downstream carrier), delivered (handset DLR received), failed (terminal error after all retries). Matrix drives the /tools/brief comparison job.
Was this guide helpful?
Related guides
- Route Failover Verification Evidence Packet: Definition and Audit Gates
A complete failover verification evidence packet bundles DLR receipts, webhook latency logs, sender and template gates, and signed audit gates so partner route claims can be compared.
- Route Failover Drain Completion: Verification Gates and Cost Trade-offs
How to verify a failed-over route has fully drained in-flight SMS traffic, compare partner drain-window behavior, DLR continuity, and cost deltas before declaring failover complete.
- Route Change Freeze Windows: Define, Verify, and Compare
Define when route changes must freeze before cutover, verify provider freeze windows, change logs, and emergency overrides, and compare partner evidence via /tools/brief.












