IOSOR Learn
Partial Delivery State Machine: Error Reference
Classify terminal vs retryable codes for multi-segment messages stuck in partial-delivery states, then validate failover paths and DLR consistency across providers.
Lead Telecom & Routing Architect · Lausanne, CH
Operators debugging multi-segment or multi-recipient messages stuck in partial-delivery states use this reference to classify terminal vs retryable codes, then trigger a partner route comparison to validate failover paths and DLR consistency across providers.
State Machine Topology
The partial-delivery state machine tracks each segment or recipient independently through queued, sent, delivered, failed, and expired states. A message enters partial-delivery when at least one segment reaches a terminal state while others remain in transit. Terminal states include carrier-rejected, expired, and blocked-by-STOP; retryable states cover temporary carrier throttling, queue-full, and handoff-timeout.
Terminal Code Taxonomy
Terminal codes are grouped by irreversibility: hard-block (carrier spam filter, invalid destination, STOP-list), soft-block (daily cap exceeded, content policy), and expiry (validity-period elapsed). Hard-block codes never retry — they require list hygiene or template re-approval. Soft-block codes may clear after cooldown but must not auto-retry without operator confirmation.
Retryable Code Taxonomy
Retryable codes split into transient-carrier (throttle, queue-full, SMSC-congestion), handoff (gateway-timeout, upstream-5xx), and routing (no-route, partner-down). Each carries a retry-after hint from the carrier or gateway. Operators must enforce exponential backoff with jitter and cap total attempts per segment. The state machine suppresses duplicate webhooks for identical retry codes within a 60-second window to reduce noise.
DLR Consistency Verification
Cross-provider DLR consistency is verified by matching segment-level receipts against the composite callback. Discrepancies arise when one provider reports delivered while another reports buffered or failed for the same logical segment. The audit checks timestamp drift > 5s, status-code translation drift, and missing finality callbacks. Any mismatch triggers an automatic partner route comparison to isolate the divergent path.
Partner Route Comparison & Failover Validation
Failover paths are validated by replaying the failed segment set through alternate providers in /tools/brief and comparing DLR latency, finality rates, and code translation fidelity. The comparison must cover at least two corridors per channel and confirm that terminal codes map identically across paths. Operators document the chosen failover order and the evidence threshold (e.g., 99.5% finality within 30s) in the runbook.
Start with IOSOR
Open partner route comparison to benchmark verified routes for your corridor and channel. Checklist: 1) Export last 48h partial-delivery incidents with per-segment DLRs. 2) Map each terminal/retryable code to the taxonomy above. 3) Run comparison across ≥2 providers per corridor. 4) Confirm failover order meets finality SLA. 5) Update runbook with evidence thresholds.
Related: balance reservation before first debit · Wallet stop-lines before production.
IOSOR takeaway
The partial-delivery state machine tracks each segment or recipient independently through queued, sent, delivered, failed, and expired states. Operators document the chosen failover order and the evidence threshold (e.g., 99.5% finality within 30s) in the runbook (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Suppression List Error Code Precedence: Audit Before Route Comparison
Resolve which code wins when suppression, upstream provider error, and channel rejection collide, then compare partner routes whose error contracts match your governance.
- Detecting Failover Route Drift in Error-Reference Code Contracts
How ops teams verify that failover routes preserve error-reference semantics after provider or corridor changes, using partner route comparison to prove error-code parity.
- Carrier Maintenance Windows: Mapping Error Codes to Failover Decisions
Classify carrier error codes as maintenance-window, true route failure, or ambiguous deferral, then choose failover vs retry with verification criteria.












