Digit Matching

 

The IMG 2020 utilizes digit matching for number selection and validation by matching on a specific digit string within a dialed or originating number. Digit matching is available for all types of translation tables and when a translation table is created that includes more than one entry, the IMG 2020 selects the most specific digit string match. When a call is received at the IMG 2020, the IMG 2020 searches the entries in a specified translation table until it finds a match for the digit string and all applicable call parameters (Based on the values in the String to Match and String fields). When it finds a match, the IMG 2020 performs the associated translation or error detection.

To prevent unmatched calls from failing, define a match string for each Translation Table that will match all numbers. For example: &. 

Sort Order in Translation and Routing Tables

Dialed number strings in a translation tables or route table are sorted according to a set of rules configured in the IMG 2020. The table below displays the rules for sorting through a translation or route table. The order in which the entries within a translation or routing table are accessed are displayed in the table below.

Rules for sorting entries in a translation or routing table

Rules for sorting entries in a translation or routing table

Entries are first sorted from highest to lowest. (9 - 0)

Entries are then sorted from most specific to least specific. (For example: 9 is selected before 9&)

Entries are then sorted from shortest to longest on identical matches. (For example: 99 is selected before 999)

 

Below is an example displaying twelve entries in a translation or routing table and how they would be sorted.

Entry ID:

Entry in translation table

Entry ID:

Entry in translation table

Entry ID: 2

Dialed Number = 8888

Entry ID: 18

Dialed Number = 8331

Entry ID: 19

Dialed Number = 5828

Entry ID: 8

Dialed Number = 55555

Entry ID: 11

Dialed Number = 5551

Entry ID: 1

Dialed Number = 5348

Entry ID: 14

Dialed Number = 5347

Entry ID: 5

Dialed Number = 5088623000

Entry ID: 4

Dialed Number = 5&

Entry ID: 9

Dialed Number = 3778

Entry ID: 13

Dialed Number = 3777

Entry ID: 0

Dialed Number = 3& 

Digit Matching Examples

The table below displays several examples of digit matching. Once the string is matched to an entry in the translation or routing table, it can then be used for routing the call or translating the number. The IMG 2020 has a set of wildcard characters that can be used in place of numbers to aid in matching or translating a number. Refer to the topic for information

Incoming Number to match

Entries in Translation Table

Matched String

Description

Incoming Number to match

Entries in Translation Table

Matched String

Description

5088623200

Entry 1 - 5088623200
Entry 2 - 5087783000
Entry 3 - 508862&
Entry 4 - 508xxx3000 Entry 5 - 508&

5088623200

Exact Match.

5087783000

Entry 1 - 5088623200
Entry 2 - 5087783000
Entry 3 - 508862&
Entry 4 - 508xxx3000
Entry 5 - 508&

508xxx3000

Matched string can be any number where the first three digits are 508, the next three can be any value and the last four digits are 3000.

5088622400

Entry 1 - 5088623200
Entry 2 - 5087783000
Entry 3 - 508862&
Entry 4 - 508xxx3000
Entry 5 - 508&

508862&

Matched string can be any number where the first six digits are 508862. The remaining digits are any value.

5083859999

Entry 1 - 5088623200
Entry 2 - 5087783000
Entry 3 - 508862&
Entry 4 - 508xxx3000
Entry 5 - 508&

508&

Matched string can be any number where the first three digits are 508 and the remaining digits are any value

5088623000

Entry 1 - 5088623200
Entry 2 - 5087783000
Entry 3 - 508862&
Entry 4 - 508xxx3000
Entry 5 - 508&

508&

Matched string can be any number where the first 3 digits are 508 and the remaining digits are any value  

 

Return to Documentation Home I Return to Sangoma Support