IOSOR Learn
Message Disposition Final State Reconciliation
Reconcile terminal message states across provider DLRs, webhooks, and internal logs to close billing gaps and trigger partner route comparison for disputed dispositions.
Lead Telecom & Routing Architect · Lausanne, CH
Operations teams must align terminal message states across provider DLRs, webhook callbacks, and internal audit logs to eliminate billing discrepancies and surface disputed dispositions for partner route comparison. This reconciliation ensures every message reaches a verified final state — delivered, failed, expired, or rejected — before finance closes the period.
DLR Receipt Normalization
Provider DLRs arrive with inconsistent status codes, timestamps, and message reference formats. Map each provider's terminal states to a canonical taxonomy: DELIVERED, UNDELIVERED, EXPIRED, REJECTED, UNKNOWN. Reject any DLR lacking a valid message-id, timestamp, or final status code. Log normalization failures for manual review.
Webhook Latency and Ordering Guarantees
Webhook callbacks may arrive out of order or with variable latency. Enforce idempotent processing using deduplication keys (message-id + provider + attempt). Apply a configurable hold window (default 300s) before finalizing state to absorb late-arriving DLRs. Track webhook-to-DLR latency per provider to identify systemic delays.
Sender and Template Gate Validation
Verify that each terminal state aligns with the originating sender-id, template registration, and consent record. Reject dispositions where sender/template gates were bypassed — these indicate routing anomalies or partner misconfiguration. Cross-reference template approval status at send time versus disposition time.
Internal Log State Machine Audit
Reconstruct the internal message lifecycle: QUEUED → SENT → DLR_RECEIVED → FINAL_STATE. Identify gaps where messages stall in SENT without DLR_RECEIVED beyond the provider SLA window. Flag messages with conflicting internal and provider final states for dispute escalation.
Billing Gap Closure and Dispute Packaging
Aggregate reconciled states into billing-period snapshots. Calculate delivery-rate variance between provider-reported and internally-verified finals. Package disputed dispositions with full evidence chains (DLR raw payload, webhook timestamps, internal state transitions, sender/template context) for partner route comparison.
Start with IOSOR
Run the reconciliation job for the target corridor and period, then compare verified partner routes using partner route comparison to identify disposition-rate outliers. Checklist: 1) Pull DLR exports from all active providers. 2) Ingest webhook logs with deduplication. 3) Apply canonical state mapping. 4) Validate sender/template gates. 5) Audit internal state machine completeness. 6) Generate dispute packages for variances >0.5%. 7) Route disputes to Reports must match DLR, not submit counts, Deduplication and Idempotency Gap Audit Framework, Failover Route Attribution and Margin Integrity Audit.
IOSOR takeaway
Provider DLRs arrive with inconsistent status codes, timestamps, and message reference formats. Package disputed dispositions with full evidence chains (DLR raw payload, webhook timestamps, internal state transitions, sender/template context) for partner route comparison (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Storage Tiering vs Retention Cost: Audit Report Lifecycle Tradeoffs
Audit whether aggregated messaging and voice reports sit on the right storage tier for access frequency and compliance retention, then compare export latency and cost per provider.
- Sender ID Reputation Decay Reporting Threshold Verification
Verify whether decay thresholds in delivery reports fire on real carrier feedback or reporting lag, then decide between rotating sender IDs and renegotiating routes.
- Audit Report Timezone Normalization Before a Cutover
Verify DLR timestamps, billing windows, and export partitions share one timezone model before a reporting cutover so daily aggregates and cost attribution stay stable.












