在 Lync Server 2013 中手动创建或修改转换规则Create or modify a translation rule manually in Lync Server 2013

 

上次修改的主题: 2012-08-06Topic Last Modified: 2012-08-06

如果要通过为匹配模式和转换规则编写正则表达式来定义转换规则,请执行以下步骤。Follow these steps if you want to define a translation rule by writing a regular expression for the matching pattern and translation rule. 或者,也可以在 " 生成转换规则 " 工具中输入一组值,并启用 Lync Server 控制面板以生成对应的匹配模式和转换规则。Alternatively, you can enter a set of values in the Build a Translation Rule tool and enable Lync Server Control Panel to generate the corresponding matching pattern and translation rule for you. 有关详细信息,请参阅 创建或修改转换规则,方法是使用 Lync Server 2013 中的 "构建转换规则" 工具For details, see Create or modify a translation rule by using the Build a Translation Rule tool in Lync Server 2013.

手动定义转换规则To define a translation rule manually

  1. 以 RTCUniversalServerAdmins 组成员的身份或者以 CsVoiceAdministrator、CsServerAdministrator 或 CsAdministrator 角色成员的身份登录计算机。Log on to the computer as a member of the RTCUniversalServerAdmins group, or as a member of the CsVoiceAdministrator, CsServerAdministrator, or CsAdministrator role. 有关详细信息,请参阅 Lync Server 2013 中的委派安装权限For details, see Delegate setup permissions in Lync Server 2013.

  2. 打开浏览器窗口,然后输入管理员 URL 以打开 "Lync Server 控制面板"。Open a browser window, and then enter the Admin URL to open the Lync Server Control Panel. 有关可用于启动 Lync Server 控制面板的不同方法的详细信息,请参阅 Open Lync server 2013 "管理工具"。For details about the different methods you can use to start Lync Server Control Panel, see Open Lync Server 2013 administrative tools.

  3. 若要开始定义转换规则,请按照在 lync server 2013 中的 "使用媒体旁路配置中继 " 中的步骤,通过步骤10或 在 lync server 2013 中 的步骤9中配置不使用媒体旁路的中继。To begin defining a translation rule, follow the steps in Configure a trunk with media bypass in Lync Server 2013 through step 10 or Configure a trunk without media bypass in Lync Server 2013 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, 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 Type a Regular Expression:

    • 在“匹配此模式”**** 中,指定将用于匹配要转换的号码的模式。In Match this pattern, specify the pattern that will be used to match the numbers to be translated.

    • 在“转换规则”**** 中,指定转换号码格式的模式。In Translation rule, specify a pattern for the format of translated numbers.

    例如,如果在转换规则中输入** ^ \ + (\ d {9} \ d +) $** 与此模式011 $ 1相匹配,则该规则会将 + 441235551010 转换为011441235551010。For example, if you enter ^\+(\d{9}\d+)$ in Match this pattern and 011$1 in Translation rule, the rule will translate +441235551010 to 011441235551010.

  8. 单击“确定”**** 保存转换规则。Click OK to save the translation rule.

  9. 单击“确定”**** 保存 Trunk 配置。Click OK to save the trunk configuration.

  10. 在“Trunk 配置”**** 页上,单击“提交”****,然后单击“全部提交”****。On the Trunk Configuration page, click Commit, and then click Commit all.

    备注

    每当创建或修改转换规则时,都必须运行“全部提交”命令以发布配置更改。Whenever you create or modify a translation rule, you must run the Commit all command to publish the configuration change. 有关详细信息,请参阅操作文档中的在 Lync Server 2013 中发布待处理的语音路由配置的更改For details, see Publish pending changes to the voice routing configuration in Lync Server 2013 in the Operations documentation.