在 Microsoft Exchange 上为 Lync Server 2013 配置统一消息Configure Unified Messaging on Microsoft Exchange for Lync Server 2013


上次修改的主题: 2013-02-24Topic Last Modified: 2013-02-24

本主题介绍如何在 Microsoft Exchange Server 上配置 Exchange 统一消息(UM),以便与企业语音配合使用。This topic describes how to configure Exchange Unified Messaging (UM) on a Microsoft Exchange Server for use with Enterprise Voice.


本主题中的 cmdlet 示例提供了 Exchange 2007 版本的 Exchange 命令行管理程序的语法。The cmdlet examples in this topic provide syntax for the Exchange 2007 version of Exchange Management Shell. 如果您运行的是 Exchange 2010 或 Exchange 2013,请参阅参考的相应文档。If you are running Exchange 2010 or Exchange 2013, see the appropriate documentation as referenced.

配置运行 Exchange Server UM 的服务器To configure a server running Exchange Server UM

  1. 为每个企业语音位置配置文件创建 UM 会话初始协议 (SIP) 统一资源标识符 (URI) 拨号计划。如果选择使用 Exchange 管理控制台,则创建一个具有安全设置 Secured(首选) 的新拨号计划。Create a UM Session Initiation Protocol (SIP) Uniform Resource Identifier (URI) dial plan for each of your Enterprise Voice location profiles. If you choose to use the Exchange Management Console, create a new dial plan with the security setting Secured (preferred).


    如果将安全设置值设置为 SIP Secured 来要求仅加密 SIP 流量(如之前所建议),请注意,如果前端池配置为要求加密(表明该池要求对 SIP 和 RTP 流量都进行加密),则拨号计划上的该安全设置是不够的。If you set your security setting value to SIP Secured to require encryption for SIP traffic only, as previously recommended, note that this security setting on a dial plan is insufficient if the Front End pool is configured to require encryption, which means the pool requires encryption for both SIP and RTP traffic. 当拨号计划和池安全设置不兼容时,来自前端池的对 Exchange UM 的所有呼叫都将失败,从而导致出现错误,指示您具有 "不兼容的安全设置"。When the dial plan and pool security settings are not compatible, all calls to Exchange UM from the Front End pool will fail, resulting in an error indicating that you have an "Incompatible security setting."

    如果使用 Exchange 命令行管理程序,则键入:If you use the Exchange Management Shell, type:

     New-UMDialPlan -Name <dial plan name> -UriType "SipName" -VoipSecurity <SIPSecured|Unsecured|Secured> -NumberOfDigitsInExtension <number of digits> -AccessTelephoneNumbers <access number in E.164 format>

    有关详细信息,请参阅:For details, see:


    选择 SIPSecured 还是 Secured 安全级别,取决于对媒体加密是激活还是停用了安全实时传输协议 (SRTP)。Whether you select a security level of SIPSecured or Secured depends on whether secure real-time transport protocol (SRTP) is activated or deactivated for media encryption. 对于与 Exchange UM 的 Lync Server 2010 集成,这应与 Lync Server 媒体配置中的加密级别相对应。For the Lync Server 2010 integration with Exchange UM, this should correspond to the encryption level in the Lync Server media configuration. 可以通过运行set-csmediaconfiguration cmdlet 来查看 Lync Server 媒体配置。The Lync Server media configuration can be viewed by running the Get-CsMediaConfiguration cmdlet. 有关详细信息,请参阅 Lync Server 命令行管理程序文档中的 Set-csmediaconfiguration。For details, see Get-CsMediaConfiguration in the Lync Server Management Shell documentation.
    有关选择适当的 VoIP 安全设置的详细信息,请参阅集成本地统一消息和 Lync Server 2013 的部署过程For details about selecting the appropriate VoIP Security setting, see Deployment process for integrating on-premises Unified Messaging and Lync Server 2013.

  2. 运行以下 cmdlet 获取每个 UM 拨号计划的完全限定的域名 (FQDN):Run the following cmdlet to obtain the fully qualified domain name (FQDN) for each UM dial plan:

    (Get-UMDialPlan <dialplanname>).PhoneContext  

    有关详细信息,请参阅:For details, see:

  3. 记录每个 UM 拨号计划的拨号计划名称。Record the dial plan name of each UM dial plan. 根据您的 Exchange Server 版本,您可能需要在以后将每个拨号计划名称的 FQDN 用作每个 UM 拨号计划对应的 Lync Server 拨号计划的名称,以便与拨号计划名称相匹配。Depending on your version of Exchange Server, you may need to use the FQDN of each dial plan name later as the name of each UM dial plan’s corresponding Lync Server dial plan so that the dial plan names match.


    只有在 UM 拨号计划运行在 exchange 2010 SP1之前的 exchange 版本上时,Lync Server 拨号计划名称才必须与 um 拨号计划名称相匹配。Lync Server dial plan names must match UM dial plan names only if the UM dial plan is running on a version of Exchange earlier than Exchange 2010 SP1.

  4. 将拨号计划添加到运行 Exchange UM 的服务器上,如下所示:Add the dial plan to the server running Exchange UM as follows:


    执行以下步骤之前,请确保已为所有企业语音用户配置了 Exchange Server 邮箱。Before you perform the following step, make sure that all Enterprise Voice users have been configured with an Exchange Server mailbox.
    对于 Exchange 2007,请参阅上https://go.microsoft.com/fwlink/p/?LinkId=268685的 exchange Server 2007 TechNet 库。For Exchange 2007, see the Exchange Server 2007 TechNet Library at https://go.microsoft.com/fwlink/p/?LinkId=268685.
    对于 Exchange 2010,请参阅上https://go.microsoft.com/fwlink/p/?LinkId=268686的 exchange Server 2010 TechNet 库。For Exchange 2010, see the Exchange Server 2010 TechNet Library at https://go.microsoft.com/fwlink/p/?LinkId=268686.
    为在步骤 1 中创建的每个拨号计划指定邮箱策略时,既可以选择默认策略,也可以选择已创建的策略。When specifying a mailbox policy for each dial plan that you created in step 1, select either the default policy or one that you have created.

  5. 导航到<exchange 安装目录>\脚本,然后如果 exchange 部署在一个林中,请键入:Navigate to <Exchange installation directory>\Scripts, and then if Exchange is deployed in a single forest, type:


    否则,如果 Exchange 部署在多个林中,则键入:Or, if Exchange is deployed in multiple forests, type:

    exchucutil.ps1 -Forest:"<forest FQDN>"

    其中,林 FQDN 指定要在其中部署 Lync Server 的林。where forest FQDN specifies the forest in which Lync Server is deployed.

    如果具有与多个 IP 网关关联的一个或多个 UM 拨号计划,则继续步骤 6。如果每个拨号计划仅与单个 IP 网关关联,则跳过步骤 6。If you have one or more UM dial plans that are associated with multiple IP gateways, continue to step 6. If your dial plans are each associated with only a single IP gateway, skip step 6.


    运行 exchucutil.ps1 后,请确保重新启动“Lync Server 前端”服务 (rtcsrv.exe)。Be sure to restart the Lync Server Front-End service (rtcsrv.exe) after you run exchucutil.ps1. 否则,Lync Server 将不会在拓扑中检测到统一消息。Otherwise, Lync Server will not detect Unified Messaging in the topology.

  6. 通过使用 Exchange 命令行管理程序或 Exchange 管理控制台,禁用所有 IP 网关的出站呼叫(与每个拨号计划关联的 IP 网关除外)。Using either the Exchange Management Shell or Exchange Management Console, disable outbound calling for all but one of the IP gateways associated with each of your dial plans.


    需要执行此步骤,以确保运行 Exchange Server 统一消息的服务器对外部用户(例如,在电话上播放方案中)可靠地遍历企业防火墙的出站呼叫。This step is necessary to make sure that outbound calls by the server running Exchange Server Unified Messaging to external users (for example, as is the case with play-on-phone scenarios) reliably traverse the corporate firewall.


    当选择允许传出呼叫通过的 UM IP 网关时,请选择有希望处理最多流量的 UM IP 网关。When selecting the UM IP gateway through which to allow outgoing calls, choose the one that is likely to handle the most traffic. 不允许传出流量通过连接到 Lync Server 控制器池的 IP 网关。Do not allow outgoing traffic through an IP gateway that connects to a pool of Lync Server Directors. 此外,避免池位于其他中央站点或分支站点中。Also avoid pools in another central site or a branch site. 可以使用以下任意一种方法阻止传出呼叫通过 IP 网关传递:You can use either of the following methods to block outgoing calls from passing through an IP gateway:

    • 如果使用的是 Exchange 命令行管理程序,则可通过运行以下命令来禁用每个 IP 网关:If you use the Exchange Management Shell, disable each IP gateway by running the following command:

      Set-UMIPGateway <gatewayname> -OutcallsAllowed $false

      有关 Exchange 2007,请参阅位于处https://go.microsoft.com/fwlink/p/?LinkId=268687的 "UMIPGateway: Exchange 2007 帮助"。For Exchange 2007, see "Set-UMIPGateway: Exchange 2007 Help" at https://go.microsoft.com/fwlink/p/?LinkId=268687.

      有关 Exchange 2010,请参阅位于处https://go.microsoft.com/fwlink/p/?LinkId=268688的 "UMIPGateway: Exchange 2010 帮助"。For Exchange 2010, see "Set-UMIPGateway: Exchange 2010 Help" at https://go.microsoft.com/fwlink/p/?LinkId=268688.

    • 如果使用 Exchange 管理控制台,请清除 “允许通过此 IP 网关的传出呼叫” 复选框。If you use the Exchange Management Console, clear the Allow outgoing calls through this IP gateway check box.


    如果您的 UM SIP URI 拨号计划仅与单个 IP 网关关联,则不禁止传出呼叫通过此网关。If your UM SIP URI dial plan is associated with only a single IP gateway, do not disallow outgoing calls through this gateway.

  7. 为每个 Lync Server 拨号计划创建一个 UM 自动助理。Create a UM auto-attendant for each Lync Server dial plan.


    请勿在自动助理的名称中包含任何空格。Do not include any spaces in the name of the auto attendant.

    New-umautoattendant -name <auto attendant name> -umdialplan < name of dial plan created in step 1> -PilotIdentifierList <auto attendant phone number in E.164 format> -SpeechEnabled $true -Status Enabled

    有关详细信息,请参阅:For details, see:

    为每个用户启用了适用于企业语音的 Lync Server 用户并了解其 SIP Uri 后,应执行以下步骤。The following step should be performed for each user after you have enabled Lync Server users for Enterprise Voice and know their SIP URIs.

  8. 将 Exchange UM 用户(他们中的每一个应该都配置了 Exchange 邮箱)与 UM 拨号计划关联,并为每个用户创建一个 SIP URI。Associate Exchange UM users (each of whom should be configured with an Exchange mail box) with the UM dial plan and create a SIP URI for each user.


    以下示例中的SIPResourceIdentifier必须是 Lync Server 用户的 SIP 地址。The SIPResourceIdentifier in the following sample must be the SIP address of the Lync Server user.

    enable-ummailbox -id <user name> -ummailboxpolicy <name of the mailbox policy for the dial plan created in step 1> -Extensions <extension> -SIPResourceIdentifier "<user name>@<full domain name>" -PIN <user pin>

    有关详细信息,请参阅:For details, see: