在 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 中的「透過 媒體旁路」設定主幹 中的步驟,或在 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} \ +) $** 和轉譯規則中的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. 按一下 ** [確定]** 儲存主幹組態。Click OK to save the trunk configuration.

  10. [主幹組態] 頁面上,按一下 [認可],再按一下 [全部認可]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. 如需詳細資訊,請參閱 Operations 檔中的在 Lync Server 2013 中發佈擱置的變更至語音路由 設定。For details, see Publish pending changes to the voice routing configuration in Lync Server 2013 in the Operations documentation.