Share via


Create or Modify a Translation Rule Manually

 

Topic Last Modified: 2010-12-13

Follow these steps if you want to define a translation rule by writing a regular expression for the matching pattern and translation rule. Alternatively, you can enter a set of values in the Build a Translation Rule tool and allow Lync Server Control Panel to generate the corresponding matching pattern and translation rule for you. For details, see Create or Modify a Translation Rule by Using the Build a Translation Rule Tool.

To define a translation rule manually

  1. Log on to the computer as a member of the RTCUniversalServerAdmins group, or as a member of the CsVoiceAdministrator, CsServerAdministrator, or CsAdministrator role. For details, see Delegate Setup Permissions.

  2. Open a browser window, and then enter the Admin URL to open the Lync Server Control Panel. For details about the different methods you can use to start Lync Server Control Panel, see Open Lync Server Administrative Tools.

  3. To begin defining a translation rule, follow the steps in Configure Media Bypass on a Trunk through step 10 or Configure a Trunk Without Media Bypass through step 9.

  4. In the Name field on the New Translation Rule or Edit Translation Rule page, type a name that describes the number pattern being translated.

  5. (Optional) In Description field, type a description of the translation rule, for example US International long-distance dialing.

  6. Click Edit at the bottom of the Build a Translation Rule section.

  7. Enter the following in the Type a Regular Expression dialog box:

    • In the Match this pattern field, specify the pattern that will be used to match the numbers to be translated.

    • In the Translation rule field, specify a pattern for the format of translated numbers.

    For example, if you enter ^\+(\d{9}\d+)$ in the Match this pattern field and 011$1 in the Translation rule field, the rule will translate +441235551010 to 011441235551010.

  8. Click OK to save the translation rule.

  9. Click OK to save the trunk configuration.

  10. On the Trunk Configuration page, click Commit, and then click Commit all.

    Note

    Any time you create or modify a translation rule, you must run the Commit all command to publish the configuration change. For details, see Publish Pending Changes to the Voice Routing Configuration in the Operations documentation.