I'm not sure if this helps you to at least route correctly. Play around and set the DDI Lookup from Right to left, then try cutting the DDI number. Iirc, if the remaining digits are less than the digits of the number in the DDI plan, it will still match. But if the remaining digits are greater than the number of digits in DDI plan,
it will NOT match.