Dial Plan Pretranslators 43Example: Say that the DDI/DID (Direct Inward Dial/Direct Dial Inward)telephone numbers range from 508-555-4200 through 508-555-4299.The telephone company sends you the last 4 digits of the total telephonenumber. Internally, you want to use extensions 2000 through 2099. Youcan define a pretranslator to:■ Remove (stripLead) the first two digits of the incoming 4-digitsequence.■ Add (prepend) the digits 20 in front of the remaining 2 digits.See “Managing Dial Plan Pretranslators” on page 69 for detailedinformation and examples on creating and managing dial planpretranslators.Pretranslators forIncoming CallsFor incoming calls, pretranslation reformats the dialed number before it ispassed to the Incoming dial plan table (Table ID 2). See “Incoming DialPlan Table” on page 40. For information on how to properly handle callerID information over incoming VTL calls, see “Creating a Pretranslator forVTL Calls” on page 70.Incoming Pretranslator Example 1If, for an incoming telephone call, the telephone company passes you4-digit numbers from 6100 through 6199, the system can use apretranslator to remove the first digit; the remaining 3 digits can then beused as internal extension numbers in a 3-digit dial plan. Tell the systemwhich pretranslations that you want to perform by defining digitmanipulation operations (append, prepend, replace, stripLead, orstripTrail) within the PreTranslator section of the dial plan configurationfile.Incoming Pretranslator Example 2Assume the telephone company passes 10-digit numbers to the systemfor each incoming telephone call (for example, numbers in the range4567-89-3000 to 4567-89-3500). If the system uses 4-digit extensions inthe range 2000 to 2500, you could pass an incoming 10-digit numbersuch as 4567-89-3210 to extension 2210.This strategy requires two pretranslation operations: The first operationperforms a stripLead operation to remove the initial 7 digits, leaving 210.The second operation prepends the number 2 in front of the remaining 3digits. The result is 2210, which matches an extension within theextension range. “Sample Solutions Using Dial Plan Configuration File