IOSOR Learn

Inbound MO Routing Rule Partial Match Precedence

Resolve ambiguous partial matches across sender IDs and keywords by verifying precedence logic, cost impact, and partner failover behavior before production promotion.

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

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

When multiple inbound rules partially match a sender ID or keyword, the engine evaluates specificity first: exact sender match outranks prefix match, which outranks wildcard. Keyword rules follow the same hierarchy — full keyword > prefix > suffix > contains. Tie-breakers apply rule priority (lower number wins), then creation timestamp. Verify each rule's cost tier in the Decision Brief before promoting; a lower-priority rule on a premium corridor can inflate MRC unexpectedly.

Specificity Hierarchy

Exact sender ID (E.164 normalized) beats any prefix or wildcard. Prefix length determines precedence among prefixes — longer prefix wins. Wildcard (*) matches last. Keyword rules mirror this: full keyword > longest prefix > longest suffix > contains. Document the hierarchy in your routing matrix to prevent silent misroutes.

Priority and Timestamp Tie-Breakers

If specificity is identical, the rule with the lower priority integer wins. Equal priority falls back to creation timestamp (older wins). Audit priority assignments quarterly; stale priorities cause drift when new corridors are added. Use the Decision Brief to simulate priority changes against live DLR receipts before committing.

Cost Impact Verification

Each rule maps to a partner route with a per-message cost. A partial match that routes to a premium corridor instead of a standard one adds MRC linearly with volume. Export the routing table, join with 30-day DLR volume, and compute delta cost per rule. Flag any rule where delta > 5% of corridor budget for review.

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

DLR and Webhook Validation

After rule changes, confirm DLR receipts arrive within SLA (p95 < 2 s) and webhook payloads contain the expected rule_id and matched_pattern fields. Missing or mismatched fields indicate evaluation-order bugs. Correlate webhook latency spikes with rule deployment timestamps to catch regressions early.

Sender and Template Gates

Enforce sender ID normalization (E.164) before rule evaluation. Reject messages where normalized sender fails registry whitelist. Template gates apply only to keyword rules — verify template_id exists in the approved registry; unknown templates route to quarantine for manual review. Both gates prevent spoofed partial matches from triggering premium routes.

Start with IOSOR

Compare verified partner routes for your corridor using the Decision Brief. Checklist: 1) Export current rule set with specificity, priority, cost tier. 2) Simulate 10k synthetic MOs across sender/keyword matrix. 3) Validate DLR rule_id matches expected precedence. 4) Confirm webhook latency p95 < 2 s. 5) Document cost delta per rule. 6) Promote only after Decision Brief sign-off. Related: Inbound MO Routing Rule Evaluation Order, Inbound MO Routing Rule Conflict Resolution, Inbound Sender ID Normalization Routing Logic.

IOSOR takeaway

Exact sender ID (E.164 normalized) beats any prefix or wildcard. Both gates prevent spoofed partial matches from triggering premium routes (/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