Zoning Normalizer

The zoning normalizer determines a result by comparing two specified field values with a list of paired values listed in From and To fields.

Zoning normalizers can examine any data stored in a string or phone number MATRIXX Data Container (MDC) field. For example, a voice zoning normalizer could contain From and To prefixes for local and long distance call zones, where each result maps to an area code prefix pair for local or long distance calls. When a subscriber makes a phone call and the event is received, MATRIXX Charging Application matches the area code of the calling number and the area code of the called number with a From and To pair defined in the normalizer to determine whether the call is local or long distance. The normalizer uses the associated index for the matching pair.

The event is not distributed across multiple zones. For example, if a calling plan has different zones set up for local and long distance, when a subscriber makes a phone call, the zone containing the called number is used for the entire session. If it is a local number, it cannot switch to a long distance number during the session.

The beginning of each string value, from left to right, is used to find the matching normalized value. For example, a From or To value of 123 matches 123456, 123, or 123000, but does not match 124xxx.

For each matching pair of prefixes, the normalizer determines which prefix is longer and which is shorter and then selects the matching pair with the longest prefix. If two pairs have prefixes with the same longest length, then the pair with the longest shorter prefix is selected. If both pairs of prefixes have the same longest length, and the same shortest length (for example, the prefix pairs 123, 9 and 1, 987 both have a longest length of 3 and a shortest length of 1, and match field values 123, 987), then the first matching pair in the list is selected.

Zoning Example

In this example the zoning normalizer matches calling and called numbers for an incoming call with the prefixes defined in Zoning Normalizer Values. For a calling number of 123456789 and called number of 987654321, the normalizer would select entry 5 as the result.
Table 1. Zoning Normalizer Values
Name From To Result
Local 123456789 1403 Entry 1. Not a match as the To prefix fails.
Local 123 123 Entry 2. Not a match as the To prefix fails.
Long Distance 1403 987654321 Entry 3. Not a match as the From prefix fails.
Long Distance 1234 9 Entry 4. Match, but not used as a better match exists.
Long Distance 1234 987 Entry 5. Best match with longest prefix lengths of 4 and 3.
Long Distance 123 9876 Entry 6. Match (with prefix match lengths of 3 and 4), but not used as it is later in the list order.