118 CHAPTER 2: DIAL PLAN
Customer Requirement 3. Assume that the telephone company
assigns a group of 4-digit DID/DDI numbers from 6000 through 6199;
however, you want to use internal telephone extensions from 3000
through 3199. Also, you want the number 6111 to connect the caller to
an Auto Attendant line for the customer service group.
Add these lines to the dial plan configuration file:
PreTranslator Create 1 6XXX to 3XXX Translator
Explanation: Creates PreTranslator 1, and names it “6XXX to 3XXX
Translator”
PreTranslatorEntry Create 1 1 6111
Explanation: Creates the first entry in Pretranslator 1. This entry looks
for the specific sequence of digits 6111.
PreTranslatorOperation Create 1 1 1 replace 5502
Explanation: Creates the first operation associated with PreTranslator 1,
PreTranslatorEntry 1. Defines a replace operation that replaces all digits in
the incoming sequence (6111) with 5502. In this example, 5502 connects
you to the Auto Attendant menu for customer service.
PreTranslatorEntry Create 1 2 6
Explanation: Creates, the second entry in Pretranslator 1; this entry
looks for any incoming digit string beginning with the number 6.
PreTranslatorOperation Create 1 2 1 stripLead 1
Explanation: Creates the first operation associated with PreTranslator 1,
PreTranslatorEntry 2. Defines a stripLead operation that removes (strips)
the first (leading) digit from the incoming 4-digit sequence. This removes
the 6 from the incoming numbers (6000 through 6199) leaving 3-digit
numbers from 000 through 199.
PreTranslatorOperation Create 1 1 2 prepend 3
Explanation: Creates the second operation associated with PreTranslator 1,
PreTranslatorEntry 2. Defines a prepend operation that adds the digit 3 at
the beginning of the 3-digit string (created by the previous operation). The
incoming numbers from 000 through 199 become numbers from 3000
through 3199.
The Incoming dial plan table may already contain this line. If necessary,
modify the line to match.