Short Code Matching Examples
The default dialing short codes for North American U-Law systems are a good example of the interactions within a set of short codes using several special characters.
The short codes are:
Explanation
-
Short Code 1: 9/./Secondary Dial Tone
This short code returns secondary dial tone immediately a user dials 9. This is a special short code as despite a match having occurred, the IP Office puts the digits back through short code matching again.
-
Short Code 2: [9]0N;/0N/Dial
This short code contains a number of special characters; [ ], N and ;.
-
-
The [9] allows this short code to be used as a follow on match to the previous 9 that triggered secondary dial tone.
-
The 0N matches any dialing following the 9 that begins with a 0.
-
The ; tells the IP Office to use the dial delay timer expiring or the user dialing # to indicate that dialing is complete. That allows this short code to be used as an exact match even though there is also a possible match to the [9]XXXXXXXXXX short code.
-
In North America this short code is used for international calls.
-
Short Code 3: [9]1N;/1N/Dial
This short code is similar to short code 2 but is used for dialing that begins 91.
-
-
Short Code 4: [9]N;/N/Dial
This short code is again similar to short codes 2 and 3. It matches any dialing that begins with a 9. However it is not used until the dial delay timer expires. When that occurs, a match to 90 (short code 2) or 91 (short code 3) is used as the more exact match.
-
-
Short Code 5: [9]XXXXXXXXXX/XXXXXXXXXX/Dial
This short code used X characters to match single digits, in this case up to 10.
-
-
This is a possible match to all dialing that begins with a 9. However the ; in the other possible matches allows them to be used when the dial delay timer expires or the user dials #.
-
If the user dials 9 and then continues dialing without allowing the inter-digit dial delay time to expire, as soon as they have dialed the 10 additional digits this short code is used.
-
In North America this short code is used for 10 digit local numbers.
Further Examples
The following examples are not meant as practical examples. However they are simple to implement and test on real system without conflicting with its normal operation. They illustrate the interaction between different short codes in resolving which short code is an exact match. They assume that extension numbers are in the 200 to 299 range.
The term 'dials' means dialing the indicated digit or digits without the inter-digit Dial Delay Time expiring.
The term 'pause' means a wait that exceeds the inter-digit Dial Delay Time.
Scenario 1 |
Short Code 1 = 60/203/DialExtn.
Dial Delay Count = 0. Dial Delay Time = 4 seconds. |
Test |
Dialing |
Effect |
1 |
8 |
No possible match, incompatible returned immediately |
2 |
6 |
No exact match but there is a potential match, so the system waits. When the Dial Delay Time expires, no exact match is found so incompatible is returned. |
3 |
60 |
Exact match to Short Code 1. Extension 203 called immediately. |
4 |
61 |
No possible match, the system returns incompatible. |
Scenario 2 |
Short Code 1 = 60/203/DialExtn.
Short Code 2 = 601/210/Dial Extn.
Dial Delay Count = 0. Dial Delay Time = 4 seconds. |
Test |
Dialing |
Effect |
1 |
8 |
No possible match, incompatible returned immediately |
2 |
60 |
Exact match to Short Code 1. Extension 203 called immediately. |
3 |
601 |
Exact match to Short Code 1 as soon as the 0 is dialed. The user cannot manually dial 601. The only way they can dial 601 is using a Phone Manager speed dial set to dial that string. |
Scenario 3 |
Short Code 1 = 60/203/DialExtn.
Short Code 2 = 601/210/Dial Extn.
Dial Delay Count = 3. Dial Delay Time = 4 seconds. |
Test |
Dialing |
Effect |
1 |
8 |
Insufficient digits to trigger matching. The system waits for additional digits or for Dial Delay Time to expire. When Dial Delay Time expires, no possible match is found so incompatible is returned. |
2 |
60 |
Insufficient digits to trigger matching. The system waits for additional digits or for Dial Delay Time to expire. When Dial Delay Time expires, matching started and exact match to Short Code 1 occurs. . |
3 |
601 |
Third digit triggers matching. Exact match to Short Code 2. Extension 210 dialed immediately. |
4 |
60# |
# is treated as a digit and as the third digit triggers matching. No exact match found. The system returns incompatible. |
Scenario 4 |
Short Code 1 = 60;/203/DialExtn.
Short Code 2 = 601/210/Dial Extn.
Dial Delay Count = 3. Dial Delay Time = 4 seconds. |
Test |
Dialing |
Effect |
1 |
8 |
Insufficient digits to trigger matching. The system waits for additional digits or for Dial Delay Time to expire. When Dial Delay Time expires, no possible match is found so incompatible is returned. |
2 |
6 |
Insufficient digits to trigger matching. The system waits for additional digits or for the inter-digit Dial Delay Time to expire. If the Dial Delay Time expires, a potential match exists to a short code that uses ; so the system waits for an additional digit until the off-hook timer expires. |
3 |
60 |
As above but an additional digit now may create a match.
If 1 is dialed, it creates an exact match to Short Code 2 and is used immediately.
If 0, * or 2 to 9 is dialed, no possible match exists. The system returns incompatible.
If the next digit is a #, it is treated as signaling dialing complete rather than being a digit. Short code 1 becomes an exact match and is used immediately. |
4 |
601 |
Third digit triggers matching. Exact match to Short Code 2. Extension 210 dialed immediately. |
Scenario 5 |
Short Code 1 = 601/203/DialExtn.
Short Code 2 = 60N/210/Dial Extn.
Dial Delay Count = 0. Dial Delay Time = 4 seconds. |
Test |
Dialing |
Effect |
1 |
6 |
No exact match but there is a potential match, so the system waits for additional dialing. If the Dial Delay Time expires, no exact match is found so incompatible is returned. |
2 |
60 |
Potential match to both short codes. The system waits for additional dialing. If the Dial Delay Time expires, Short Code 2 becomes an exact match with N blank. |
3 |
601 |
Exact match to Short Code 1. Used immediately |
4 |
602 |
Exact match to Short Code 2. Used immediately. |
Scenario 6 |
Short Code 1 = 601/203/DialExtn.
Short Code 2 = 60N/210/Dial Extn.
Short Code 3 = 60X/207/DialExtn.
Dial Delay Count = 0. Dial Delay Time = 4 seconds. |
Test |
Dialing |
Effect |
1 |
6 |
No exact match but there are potential matches so the system waits for additional dialing. If the Dial Delay Time expires, no exact match has occurred so incompatible is returned. |
2 |
60 |
Potential match to all short codes. System waits for additional dialing. If the Dial Delay Time expires, Short Code 2 becomes an exact match with N blank. If a digit is dialed, Short Code 3 becomes a more exact match and is used. |
3 |
601 |
Exact match all short code, however Short Code 1 is treated as being more exact (more matching digits) and is used immediately |
4 |
602 |
Exact match to short codes 2 and 3, however the Short Code 3 is treated as being more exact (length match) and is used immediately. |
Scenario 7 |
Short Code 1 = 601/203/DialExtn.
Short Code 2 = 60N/210/Dial Extn.
Short Code 3 = 6XX/207/DialExtn.
Dial Delay Count = 0. Dial Delay Time = 4 seconds. |
Test |
Dialing |
Effect |
1 |
6 |
No exact match but there are potential matches so the system waits for additional dialing. If the Dial Delay Time expires, no exact match has occurred so incompatible is returned. |
2 |
60 |
Potential match to all short codes. System waits for additional dialing. If the Dial Delay Time expires, Short Code 2 becomes an exact match with N blank. If a digit is dialed, Short Code 3 becomes an more exact match and is used. |
3 |
601 |
Exact match all short code, however Short Code 1 is treated as being more exact (more matching digits) and is used immediately |
4 |
602 |
Exact match to short codes 2 and 3, however the Short Code 2 is treated as being more exact (more matching digits) and is used immediately. |
5 |
612 |
Exact match to Short Code 3. |
|