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.

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

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

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.

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

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

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