Number Translation Rule Search Algorithm

The OSPrey Server uses the following logic to select a Number Translation Rule. This algorithm is the same for pre-routing translation, routing number manipulation and post routing translation.

  1. Search for the number translation rule which has the best match with the calling and called number. If found, select the rule. If not, continue to next step.

  2. Search for the number translation rule which has the best match with the calling number. If found, select the rule. If not, continue to next step.

  3. Search for the number translation rule which has the best match with the called number. If found, select the rule. If not, continue to next step.

  4. Search for any the number translation rule configured for “All Other”. If found, select the rule. If not, continue to next step.

  5. If the call is routed through a proxy device, determine which Customer the proxy device is assigned to. Repeat steps 1-4 using the number translation rules configured for the Customer that owns the proxy device. Stop when a rule is found. If not, continue to next step.

  6. Repeat steps 1-4 for the default Customer if the default Customer has been provisioned. The default name must be provisioned in lower case letters. Stop when a number translation rule is found.