IOSOR Learn

Inbound MO Routing Rule Evaluation Order & Precedence

Defines the deterministic evaluation sequence for inbound routing rules across gateways, covering precedence logic, conflict resolution, and partner route verification via Decision Brief.

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

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

Inbound messages traverse a strict top-down rule chain where the first matching condition wins; gateway-specific weights, sender ID filters, and template gates are evaluated before cost metrics to prevent misrouting.

Rule Chain Architecture

Each gateway maintains an ordered rule list indexed by priority integer; lower integers evaluate first. Rules carry match criteria — sender pattern, keyword, short code, or E.164 prefix — and an action: route to partner, autoreply, or drop. The engine stops at the first satisfied rule; no fall-through occurs unless explicitly chained.

Precedence Hierarchy

  1. Hard blocks (STOP/opt-out lists) — absolute first. 2. Verified sender allowlists — bypass cost logic. 3. Template-matched campaigns — locked to pre-approved routes. 4. Keyword/short code exact matches. 5. E.164 prefix ranges. 6. Catch-all cost-optimized route. Gateway weights only apply inside tier 6; they never promote a lower-tier rule.

Conflict Detection & Resolution

When two rules share identical match criteria but different actions, the engine flags a configuration error at deploy time. Runtime conflicts from overlapping prefixes (e.g., +1415 vs +1) resolve to the longest prefix match. DLR receipts and webhook latency logs surface misroutes within 90 seconds for immediate rollback.

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

Gateway-Specific Evaluation Nuances

Provider A evaluates sender ID before keyword; Provider B reverses order. Normalize by pinning sender gates at tier 2 universally. Webhook timeout buffers (default 5 s) must exceed the slowest partner P99 latency; otherwise the engine treats silence as failure and drops to the next rule.

Observability & Audit Trail

Every evaluation emits a structured log: rule_id, match_tier, matched_criteria, selected_partner, latency_ms. Correlate with DLR webhook reconciliation to prove end-to-end correctness. Alert on rule_hit_count divergence >5 % from baseline.

Start with IOSOR

Compare verified partner routes for your corridor and channel using Decision Brief to lock evaluation order against live latency, delivery rate, and cost data. Checklist: 1) Export current rule chain per gateway. 2) Validate tier ordering against precedence hierarchy. 3) Run shadow traffic through /tools/brief comparison. 4) Promote winning route to tier 6 catch-all. 5) Enable DLR audit alerts. Related: Inbound MO Routing Rule Conflict Resolution, Inbound MO Routing Priority Cost Optimization, Inbound Payload Normalization Gateway Route Mapping.

IOSOR takeaway

Each gateway maintains an ordered rule list indexed by priority integer; lower integers evaluate first. Alert on rule_hit_count divergence >5 % from baseline (/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