• No results found

Publish Pending Changes to the Voice Routing Configuration

Defining Normalization Rules

Lync Server 2010 normalization rules use .NET Framework regular expressions to translate dialed phone numbers to E.164 format. Each dial plan must be assigned one or more normalization rules.

For details about normalization rules, see Dial Plans and Normalization Rules in the Planning documentation.

For details about how to write regular expressions, see ".NET Framework Regular Expressions" at http://go.microsoft.com/fwlink/?LinkId=140927.

You can use either of the following methods to define or edit a normalization rule:

 Use the Build a Normalization Rule tool to specify values for the starting digits, length, digits to remove and digits to add, and then let Lync Server Control Panel generate the

corresponding matching pattern and translation rule for you.

 Write regular expressions manually to define the matching pattern and translation rule.

In This Section

 Create or Modify a Normalization Rule Manually

See Also

Create a Dial Plan Modify a Dial Plan

Create or Modify a Normalization Rule by Using Build a Normalization Rule

Complete the following steps if you want to create or modify a normalization rule by using Build a Normalization Rule in Microsoft Lync Server 2010 Control Panel. Alternatively, if you want to create or modify a normalization rule manually, see Create or Modify a Normalization Rule Manually.

To define a rule by using Build a Normalization Rule

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. (Optional) Follow the steps in Create a Dial Plan through step 11 or Modify a Dial Plan

through step 10.

4. In New Normalization Rule or Edit Normalization Rule, type a name that describes the number pattern being normalized in Name (for example, 5DigitExtension).

5. (Optional) In Description, type a description of the normalization rule (for example, "Translates 5-digit extensions").

6. In Build a Normalization Rule, enter values in the following fields:

 Starting digits (Optional) Specify the leading digits of dialed numbers you want the pattern to match. For example, type 425 if you want the pattern to match dialed numbers beginning with 425.

 Length Specify the number of digits in the matching pattern and select whether you want the pattern to match this length exactly, match dialed numbers that are at least this length, or match dialed numbers of any length.

 Digits to remove (Optional) Specify the number of starting digits to be removed from dialed numbers you want the pattern to match.

 Digits to add (Optional) Specify digits to be added to dialed numbers you want the pattern to match.

The values you enter in these fields are reflected in Pattern to match and Translation rule. For example, if you leave Starting digits empty, type 7 into the Length field and select Exactly, and specify 0 in Digits to remove, the resulting regular expression in the Pattern to match is:

^(\d{7})$

7. In Translation rule, specify a pattern for the format of translated E.164 phone numbers as follows:

 A value that represents the number of digits specified in the matching pattern. For example, if the matching pattern is ^(\d{7})$ then $1 in the translation rule represents 7-digit dialed numbers.

 (Optional) Type a value into the Digits to add field to specify digits to be prepended to the translated number, for example +1425.

For example, if Pattern to match contains ^(\d{7})$ as the pattern for dialed numbers and Translation rule contains +1425$1 as the pattern for E.164 phone numbers, the rule normalizes 5550100 to +14255550100.

8. (Optional) If the normalization rule results in a phone number that is internal to your organization, select Internal extension.

9. (Optional) Enter a number to test the normalization rule and then click Go. The test results are displayed under Enter a number to test.

Note:

You can save a normalization rule that does not yet pass the test and then reconfigure it later. For details, see Test Voice Routing.

10. Click OK to save the normalization rule. 11. Click OK to save the dial plan.

12. On the Dial Plan page, click Commit, and then click Commit all. Note:

Any time you create or change a normalization rule, you must run the Commit all command to publish the configuration change. For details, see Publish

documentation. See Also

Create or Modify a Normalization Rule Manually Create a Dial Plan

Modify a Dial Plan

Test Voice Routing

Publish Pending Changes to the Voice Routing Configuration

Create or Modify a Normalization Rule Manually

Complete the following steps if you want to create or modify a normalization rule manually. If you want to create or modify a normalization rule by using Build a Normalization Rule in

Microsoft Lync Server 2010 Control Panel, see Create or Modify a Normalization Rule by Using Build a Normalization Rule.

To define a normalization 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. (Optional) Follow the steps in Create a Dial Plan or Modify a Dial Plan.

4. In New Normalization Rule or Edit Normalization Rule, type a name that describes the number pattern being normalized in Name (for example, name the normalization rule 5DigitExtension).

5. (Optional) In Description field, type a description of the normalization rule (for example, "Translates 5-digit extensions").

6. In Build a Normalization Rule, click Edit.

7. Enter the following in Type a Regular Expression:

phone number.

 In Translation rule, specify a pattern for the format of translated E.164 phone numbers.

For example, if you enter ^(\d{7})$ in Match this pattern and +1425$1 in Translation rule, the rule normalizes 5550100 to +14255550100.

8. (Optional) If the normalization rule results in a phone number that is internal to your organization, select Internal extension.

9. (Optional) Enter a number to test the normalization rule and then click Go. The test results are displayed under Enter a number to test.

Note:

You can save a normalization rule that does not yet pass the test and then reconfigure it later. For details, see Test Voice Routing.

10. Click OK to save the normalization rule. 11. Click OK to save the dial plan.

12. On the Dial Plan page, click Commit, and then click Commit all. Note:

Any time you create or change a normalization 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.

See Also

Create or Modify a Normalization Rule by Using Build a Normalization Rule Create a Dial Plan

Modify a Dial Plan

Test Voice Routing

Publish Pending Changes to the Voice Routing Configuration