IOSOR Learn

Stale lookup cache routes OTP wrong and wastes PAYG

A cached line-type that still says “mobile” after the number moved to VoIP (or the reverse) sends OTP down the wrong path. Set TTL, refresh on risk, and keep lookup on the same PAYG ledger as SMS.

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

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

Lookup is a routing signal with a timestamp, not a permanent tattoo on the number. A cached line-type — mobile, VoIP, landline, unknown — that outlives the number’s real path will send OTP SMS into a dead range, skip a voice fallback a real mobile needed, or add friction to a customer who ported yesterday. You still pay the lookup row and the wasted segment.

IOSOR packages lookup beside messaging in one white-label PAYG wallet. Catalog live means the check is ready; in setup is not a production gate you cache around. Near USD 1,000+ monthly usage, cache age and wasted OTP segments become commercial review material. No platform subscription to keep checks available.

Stale line-type is a routing bug with a wallet cost

Yesterday’s “mobile” is today’s VoIP range, or a port the other way. Product still fires SMS. DLR comes back undelivered or the user never sees the code. Finance sees a lookup debit plus an SMS debit for zero conversion — stale cache, not “lookup ROI.” Contrast VoIP vs mobile before OTP.

Cache is allowed.

Cache TTL is a product decision, not a convenience

TTL is not “as long as the database likes.

  • Short TTL (minutes–hours) on signup, promo, or any path where VoIP abuse or ports are common.
  • Medium TTL on returning users where the number is bound to a verified account — still refresh on risk signals.
  • Do not cache “unknown” as if it were mobile. Unknown is a decision to check again or fail closed.

A global 30-day cache looks cheap until one recycled range burns a week of OTP. Publish hit rate and age buckets, not only “lookup calls saved.” Pair with lookup ROI on the OTP path so finance sees when a cache “saving” is a wasted SMS.

VoIP versus mobile: when a refresh is mandatory

Refresh before send when any of these fire:

  1. Line-type is VoIP, unknown, or older than the corridor TTL. 2. Multiple OTP requests against the same number or range in a short window. 3. The user changed the number on the account. 4. Last OTP on this number expired or came back undelivered. 5. Destination class is expensive enough that a wrong SMS costs more than a fresh check. Landline still should not receive SMS. VoIP is a routing signal, not a fraud verdict. When a check belongs in budget: lookup reconnaissance before send.
⚡ IOSOR Expert · Q&A · Verified partners (×44)

When a fresh lookup pays for itself

Line-type is VoIP, unknown, or older than the corridor TTL. Multiple OTP requests against the same number or range in a short window.

Operational Controls and Threshold Enforcement

  • Line-type with no freshness or confidence.
  • “Unknown” cached as mobile.
  • Lookup sold as 100% delivery.
  • No wallet line for checks separate from SMS.
  • Blanket VoIP block with no live refresh path.
  • OTP retries on undelivered without a new lookup.
  • Catalog in setup while product caches empty results.

Start with IOSOR

Audit your current lookup caching rules in the IOSOR console to set corridor-specific TTL caps for line-type data. Gate high-risk signup paths with forced live refreshes whenever a cached record marks a number as unknown or VoIP. Configure webhook triggers so that failed DLRs on cached numbers instantly invalidate the saved line-type and mandate a fresh lookup before the next OTP retry.

IOSOR takeaway

Stale lookup caches turn valid OTP attempts into silent delivery failures and double debits across your PAYG wallet. Caching a number as mobile indefinitely ignores active ports and range reassignments, forcing your system to dispatch expensive SMS down dead or unsupported channels.

Do set short TTLs on signups and force immediate live lookups when DLRs fail or risk signals spike. Don't treat number metadata as static permanent records or cache 'unknown' line-types as deliverable mobile destinations.

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