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.
Lead Telecom & Routing Architect · Lausanne, CH
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.
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
- Inbound MO Route Failover: Verifying Drain Rate and Cutover Safety
Verify inbound MO failover by measuring drain rate, DLR finality alignment, and cutover safety before switching primary routes. Compare failover-ready partners via /tools/brief.
- Inbound MO Webhook Retry Storms: Backpressure Gates and Partner Route Comparison
Diagnose retry amplification, set backpressure gates, and compare verified inbound partner routes on retry semantics, DLR receipts, and failover before committing volume.
- Inbound Webhook Signature Rotation: Cutover Audit Checklist
Audit signature verification, replay windows, and rollback readiness before rotating inbound webhook secrets, then compare verified partner routes on cutover support.












