IOSOR Learn

USSD Menu Idempotency Guarantees for Silent Auth

Verify USSD menu operation idempotency across operator gateways to prevent duplicate auth requests and validate DLR correlation with retry semantics.

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

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

Engineers must confirm that every USSD menu interaction generates a deterministic transaction ID so operator gateways treat retries as duplicates rather than new auth requests. This prevents double-charge scenarios and ensures DLR receipts map 1:1 to the original session.

Transaction ID Generation and Scope

Each USSD session must embed a cryptographically unique identifier derived from MSISDN, session timestamp, and menu path hash. The ID travels unchanged through the operator gateway, SMSC, and back to the application webhook. Any deviation in ID format or truncation by an intermediary breaks idempotency and triggers duplicate processing. Enforce a maximum ID length of 64 characters; reject sessions where the ID exceeds this threshold or contains non-alphanumeric characters.

Gateway Deduplication Window Configuration

Operator gateways enforce deduplication windows typically between 30 and 300 seconds. Measure the effective window per corridor by sending controlled retry bursts and observing which attempts receive 'duplicate' versus 'accepted' status. Document the narrowest window across all active corridors to set the client-side retry ceiling. Configure webhook verification to poll DLR endpoints every 5 seconds with a 120-second timeout per transaction.

DLR Correlation and Status Mapping

Delivery receipts must carry the original transaction ID in the correlation field. Map each operator's DLR status codes (DELIVERED, EXPIRED, REJECTED) to a unified internal enum. Reject any DLR lacking the correlation ID or presenting a mismatched ID as a protocol violation requiring immediate partner escalation. Verify webhook HMAC signatures on every DLR; discard unsigned receipts and log the source IP for audit.

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

Retry Semantics and Backoff Alignment

Client retry logic must respect the gateway's deduplication window: first retry at 50 % of the window, second at 75 %, third at 90 %. Exponential backoff beyond the window risks creating new transactions. Log every retry attempt with the transaction ID, timestamp, and gateway response code for audit. Cap total retries at 3 per session; abort and flag for manual review if all attempts fail within the window.

Idempotency Test Matrix and Observability

Build a CI pipeline that replays recorded USSD flows against staging gateways. Assert that zero duplicate auth requests reach the verification service. Emit metrics for deduplication hit rate, DLR correlation success, and retry count distribution. Alert on any corridor where duplicate rate exceeds 0.1 %.

Start with IOSOR

Compare verified partner routes for your channel and corridor using the operator comparison tool. Cross-reference results with USSD menu state synchronization, USSD menu retry backoff policy, and DLR latency correlation audit.

IOSOR takeaway

Each USSD session must embed a cryptographically unique identifier derived from MSISDN, session timestamp, and menu path hash. Alert on any corridor where duplicate rate exceeds 0.1 % (/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