Topic Last Modified: 2011-05-04

After deploying Microsoft Lync Server 2010, a Mediation Server for this site is not configured. In order to use the Mediation Server being used by Microsoft Office Communications Server 2007 R2, Lync Server 2010 must be configured to use this server.

If a Voice Route and Voice Policy existed in the legacy pool, after you merge Office Communications Server 2007 R2 with Lync Server 2010 and run the Import-CsLegacyConfiguration cmdlet, the Lync Server 2010 pilot pool now has all the necessary configuration information to

Note:
Lync Server 2010 Mediation Server features will not be functional until all Mediation Server components are configured, which occurs later in this document. For details about configuring Lync Server 2010 Mediation Server, see Migrate Mediation Server.
Note:
For details about finding qualified public switched telephone network (PSTN) gateways, IP-PBXs and SIP trunking services that work with Lync Server 2010, see "Microsoft Unified Communications Open Interoperability Program" at http://go.microsoft.com/fwlink/?LinkId=206015.

To enable the Lync Server 2010 pilot pool to use the legacy Mediation Server, you must have a Voice Route and Voice policy configured that point to the legacy Mediation Server. If you do not have a legacy Voice Route or Voice Policy, use the following the procedure to configure these settings using Lync Server 2010 Control Panel or by using the Lync Server Management Shell.

To create a voice route to the legacy Mediation Server by using Lync Server Control Panel
  1. Log on to the computer with an account that is a member of the RTCUniversalServerAdmins group or is assigned to the CsVoiceAdministrator administrative role.

  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. Click Voice Routing, and then click the Route tab.

  4. Click New to create a New Voice Route.

  5. Fill in the following fields:

    • Name: enter a descriptive name of the voice route. For this document we will use W13PSTNRoute.

    • Description: enter a short description of the voice route.

  6. Skip all remaining sections until you reach Associated gateways, and then click Add. Select the default gateway listed, and then click OK.

  7. Under Associated PSTN Usages, click Select.

  8. From the Select PSTN Usage Record page, select the legacy Mediation Server fully qualified domain name (FQDN), and then click OK.

  9. From the New Voice Route page, click OK to create the Voice Route.

  10. From the Voice Routing page, select Route.

  11. Move the newly created route to the top of the list, and then click Commit.

To create a voice route to the legacy Mediation Server by using Lync Server Management Shell
  1. Log on to the computer with an account that is a member of the RTCUniversalServerAdmins group or is assigned to the CsVoiceAdministrator administrative role.

  2. Start the Lync Server Management Shell: Click Start, click All Programs, click Microsoft Lync Server 2010, and then click Lync Server Management Shell.

  3. Get the FQDN of the legacy Mediation Server by running the following command:

    Copy Code
    Get-CsService -MediationServer
    

    The Identity parameter will contain the name of the legacy Mediation Server. In this example, the value is this: MediationServer:medsvr01.contoso.net

  4. Next, verify that a voice policy exists for the legacy Mediation Server by running the following command:

    Copy Code
    Get-CsVoicePolicy
    

    The PSTNUsages parameter should not be empty, but return a value of {Local} or the name of any customer PSTNUsage created on the legacy Mediation Server.

  5. Now that we have verified that a legacy Mediation Server exists and it has a voice policy, we create a route in the Lync Server 2010 pool that points to this legacy Mediation Server.

    The following code defines a generic voice route that routes any outbound calls from the Lync Server 2010 pool to the legacy Mediation Server.

    Copy Code
    New-CsVoiceRoute -Name W13PSTNRoute -NumberPattern ".*" -PstnUsages Local -PstnGatewayList @{Add="MediationServer:medsvr01.contoso.net "}
    
  6. Finally, run the following command to set the default voice route for this pool.

    Copy Code
    Set-CsVoiceRoute -Identity W13PSTNRoute -Priority 0
    
  7. Run the Get-CsVoiceRoute cmdlet to verify the voice route settings.

    For our example, the Identity parameter should be set to W13PSTNRoute. The PSTNUsages should be set to {Local} and the PSTNGatewayList should point to the FQDN of the legacy Mediation Server, Mediation:medsvr01.contoso.net.