Truth table for tags

Truth table for tags is used for better understanding how different modes of routing tag comparation are used for selecting dialpeers that are related to the current call. Rows, in the table bellow, represent eight different states of Dialpeer Tags each of them are presented by two comparation modes (OR & AND). At same time, columns represent four different states of Call Tags. In the cells at the intersection of these states different levels of matching are presented. The highest level of matching is 3, the lowest level is 0. During selection of Dialpeers, in case if two or more Dialpeers have level of matching with current call (by comparation Dialpeer Tags and Call Tags) more than 0, Dialpeers with highest level of matching will be selected.

Dialpeer Tags

Comparation

mode

Call Tags

No tags

Tag 1

Tag 1, Tag 2

Tag 2

No tags

OR

3

0

0

0

AND

3

0

0

0

Tag 1

OR

0

3

0

0

AND

0

3

0

0

Tag 1,Tag 2

OR

0

2

3

2

AND

0

0

3

0

Tag 1,Tag 2, Any

OR

0

2

3

2

AND

0

0

3

0

Tag 1,Any

OR

0

3

1

1

AND

0

3

1

0

Tag 2

OR

0

0

0

3

AND

0

0

0

3

Tag 2,Any

OR

0

1

1

3

AND

0

0

1

3

Any

OR

0

1

1

1

AND

0

1

1

1

Note

Levels of matching:

  • 0 - Dialpeer does not match;

  • 1 - Dialpeer could be selected because ANY TAG mode was enabled;

  • 2 - Dialpeer could be selected because one of the Tags is coincided (only for OR mode);

  • 3 - Dialpeer could be selected because all Dialpeer’s tags are the same as call’s tags.