Integrating Lync 2010 Voicemail and Exchange 2010 UM
If you have deployed or plan to deploy MSExchange in your organization, you can use Exchange UM features to provide voice mail to Enterprise Voice users.
Configuring UM on MS Exchange to Work with Lync 2010
Configuring ExchangeUM to work with Enterprise Voice consists of the following tasks:
- Configuring certificates on the server running MSExchangeUM
- Creating one or more UM SIP URI dial plans, along with their subscriber access phone numbers as needed, and then creating corresponding Lync dial plans
- Using the exchucutil.ps1 script to:
- Create UM IP gateways.
- Create UM hunt groups.
- Grant Lync permission to read UM Active Directory Domain Services (AD DS) objects.
- Creating a UM auto-attendant object
- Creating a subscriber access object
- Creating a SIP URI for each user and associating users with a UM SIP URI dial plan
Requirements and Recommendations
Before you begin, the documentation in this section assumes that you have deployed the following Exchange roles: HUB, Client Access, Mailbox, and UM.
Also note the following:
- If Exchange UM is installed in multiple forests, the Exchange integration steps must be performed for each UM forest. In addition, each UM forest must be configured to trust the forest in which Lync is deployed, and the forest in which Lync is deployed must be configured to trust each UM forest.
- Integration steps are performed on both the server running ExchangeUM and the server running Lync. You should perform the ExchangeUM integration steps before you perform the Lync integration steps.
- The following tools must be available on each server running Exchange UM:
- Exchange Management Shell
- The script exchucutil.ps1, which performs the following tasks:
- Creates a UM IP gateway for each Lync.
- Creates a hunt group for each gateway. The pilot identifier of each hunt group specifies the UM SIP URI dial plan used by the Front End pool or Standard Edition server that is associated with the gateway.
- Grants Lync permission to read Exchange UM objects in Active Directory Domain Services (AD DS).
Configure Certificates on the Server Running MSExchangeUM
If you have deployed Exchange UM (UM), as described in On-Premises Exchange UM Integration in the Planning documentation, to provide Exchange UM features to Enterprise Voice users in your organization, use the following procedures to configure the certificate on the server running Exchange UM.
The Exchange must be configured with a server certificate in order to connect to Lync:
- Download the CA certificate for the Exchange.
- Install the CA certificate for the Exchange.
- Verify that the CA is in the list of trusted root CAs of the Exchange.
- Create a certificate request for the Exchange and install the certificate.
- Assign the certificate for the Exchange.
To download the CA certificate:
- On the server running Exchange UM, click Start, click Run, type http://<name of your Issuing CA Server>/certsrv, and then click OK.
- Under Select a task, click Download a CA certificate, certificate chain, or CRL.
- Under Download a CA Certificate, Certificate Chain, or CRL, select Encoding Method to Base 64 and click Download CA certificate.
- In the File Download dialog box, click Save, and then save the file to the hard disk on the server. (The file will have either a .cer or a .p7b file extension, depending on the encoding that you selected in the previous step.)
To install the CA certificate:
- On the server running Exchange UM, open MS Management Console (MMC) by clicking Start, clicking Run, typing mmc in the Open box, and then clicking OK.
- On the File menu, click Add/Remove Snap-in, and then click Add.
- In the Add Standalone Snap-ins box, click Certificates, and then click Add.
- In the Certificate snap-in dialog box, click Computer account, and then click Next.
- In the Select Computer dialog box, ensure that the Local computer: (the computer this console is running on) check box is selected, and then click Finish.
- Click Close, and then click OK.
- In the console tree, expand Certificates (Local Computer), expand Trusted Root Certification Authorities, and then click Certificates.
- Right-click Certificates, click All Tasks, and click Import.
- Click Next.
- Click Browse to locate the file, and then click Next. (The file will have either a .cer or a .p7b file extension, depending on the encoding that you selected in step 3 of To download the CA certificate.
- Click Place All Certificates in the following store.
- Click Browse, and then select Trusted Root Certification Authorities.
- Click Next to verify the settings, and then click Finish.
To verify that the CA is in the list of trusted root CAs:
- On the server running Exchange UM, in MMC expand Certificates (Local Computer), expand Trusted Root Certification Authorities, and then click Certificates.
- In the details pane, verify that your CA is on the list of trusted CAs.
To create a certificate request and install the certificate on Exchange 2007 (SP1):
- On the server running Exchange UM, click Start, click Run, type http://<name of your Issuing CA Server>/certsrv, and then click OK.
- Under Select a task, click Request a Certificate.
- Under Request a Certificate, click Advanced certificate request.
- Under Advanced Certificate Request, click Create and submit a request to this CA.
- Under Advanced Certificate Request, select Web server or another server certificate template configured for server authentication.
- Under Identifying Information for Offline Template, in the Name box, type the FQDN of the Exchange.
- \Under Key Options, click the Store certificate in the local computer certificate store check box.
- Click the Submit button in the bottom of the webpage.
- In the dialog box that opens asking for confirmation, click Yes.
- On the Certificate Issued page, under Certificate Issued, click Install this certificate.
- In the dialog box that opens asking for confirmation, click Yes.
- Verify that the message "Your new certificate has been successfully installed" appears.
Configure UM on MS Exchange
This topic describes how to configure UMon a MSExchange for use with Enterprise Voice.
To configure a server running Exchange UM:
- 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).
- If you use the Exchange Management Shell, type:
- 2. Run the following cmdlet to obtain the fully qualified domain name (FQDN) for each UM dial plan:
- Record the dial plan name of each UM dial plan. Depending on your version of Exchange, you may need to use the FQDN of each dial plan name later as the name of each UM dial plan’s corresponding Lync dial plan so that the dial plan names match.
- Add the dial plan to the server running Exchange UM as follows:
- If you choose to use the Exchange Management Console, you can add the dial plan from the property sheet for the server. For specific instructions, see the Exchange product documentation.
- If you use the Exchange Management Shell, run the following for each of your Exchange UM servers:
$ums=get-umserver;
$dp=get-umdialplan -id <name of dial-plan created in step 1>;
$ums[0].DialPlans +=$dp.Identity;
set-umserver -instance $ums[0]
- Navigate to <Exchange installation directory>\Scripts, and then if Exchange is deployed in a single forest, type:
- 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.
- If you use the Exchange Management Shell, disable each IP gateway by running the following command:
- If you use the Exchange Management Console, clear the Allow outgoing calls through this IP gateway check box.
- Create a UM auto-attendant for each Lync dial plan.
- 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.
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>
new-umdialplan -name <dial plan name> -UriType "SipName" -VoipSecurity <SIPSecured|Unsecured|Secured> -NumberOfDigitsInExtension <number of digits> -AccessTelephoneNumbers <access number in E.164 format>
(Get-UMDialPlan <dialplanname>).PhoneContext
exchucutil.ps1
Or, if Exchange is deployed in multiple forests, type:
exchucutil.ps1 -Forest:"<forest FQDN>"
whereforest FQDN specifies the forest in which Lync is deployed.
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.
Set-UMIPGateway <gatewayname> -OutcallsAllowed $false
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
The following step should be performed for each user after you have enabled Lync users for Enterprise Voice and know their SIP URIs.
