IOSOR Learn
Replay MT Short-Code Queues After an Outage Without Duplicates or DLR Gaps
Prove queued MT short-code messages can be replayed within carrier send windows: idempotent send APIs, replay-safe queues, stale MO checks, and DLR reconciliation.
Lead Telecom & Routing Architect · Lausanne, CH
Replay is only safe when every queued MT row carries a stable idempotency key, the aggregator queue exposes a replay cursor, and DLR webhooks reconcile to the same key. Capture three numbers before you approve replay: duplicate rate, DLR gap rate, and carrier send-window headroom.
Map the queue before you touch replay
Start by exporting the aggregator MT queue as a flat table: message id, idempotency key, submitted-at, carrier, sender, template id, MO linkage, and last known DLR state. Split rows into three buckets: queued but never submitted, submitted with no DLR, and DLR-received. Only the first bucket replays as fresh sends.
Verify the idempotent send contract
Ask for written evidence that the send API deduplicates on the client-supplied key, not on message body or timestamp. Test it in a staging corridor: submit the same key twice within 60 seconds and confirm the second call returns the original message id and DLR reference rather than a new send. Check key scope — per sender, per carrier, per day — and confirm the scope survives an outage.
Lock the stale MO linkage rule
Queued MT often references an inbound MO from before the outage. That MO may have expired, been answered by a support agent, or crossed a session window. Define one rule per message class: transactional templates replay with the MO reference intact; session replies drop and re-issue only if the inbound is still open; marketing MT never replays to a stale MO and instead re-qualifies consent.
Reconcile DLRs to a single key
A DLR gap after replay is a billing and proof problem, not a cosmetic one. Require DLR webhooks that echo your idempotency key and message id, with delivery-attempt timestamps and final status. Measure webhook latency p50 and p95 during replay, and confirm out-of-order DLRs converge to final state. Run a reconciliation pass 24 hours post-replay: for every replayed key, expect exactly one final DLR.
Respect carrier send windows during replay
Replay volume spikes collide with carrier rate limits and send windows. Before replaying, pull the corridor rate limit, the per-sender MRC, and the send-window schedule for each carrier. Size replay batches to stay under both limits with 20 percent headroom, and stagger sender groups so no single sender exceeds its window.
Start with IOSOR
Run this as a partner comparison, not a one-off cleanup. Build a scoring sheet with six rows: idempotent send key scope, replay cursor availability, DLR key echo and latency p95, stale MO rejection rule, carrier send-window pacing controls, and reconciliation report format. For each candidate route, capture the staging test result for duplicate rate and DLR gap rate, then compare at your actual volume band.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
Start by exporting the aggregator MT queue as a flat table: message id, idempotency key, submitted-at, carrier, sender, template id, MO linkage, and last known DLR state. Size replay batches to stay under both limits with 20 percent headroom, and stagger sender groups so no single sender exceeds its window (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Short Code Provisioning Lead Time: Forecast Before You Commit
Forecast carrier and aggregator short code provisioning lead times so launch dates and budget locks stay realistic. Compare verified partner routes before you commit.
- Verify RCS fallback timeout budget and backpressure control on short-codes routes
Check RCS fallback timeout budgets, backpressure gates, DLR receipts and webhook latency on short-code routes before you raise send volume.
- Short Code Provisioning Lead Time: Compare Carrier Approval Windows
Compare carrier and aggregator short code provisioning lead times, documentation gates, and go-live guarantees before locking a launch date and paying idle inventory.












