Reassign the PSTN Gateway

 

Topic Last Modified: 2011-04-11

Public switched telephone network (PSTN) gateways do not prevent you from removing a server role. The Mediation Server depends on the PSTN gateway. However, if a PSTN gateway is not configured to communicate with a Mediation Server, the trunk connected to the PSTN gateway cannot send or receive calls until it is associated with another Mediation Server. Also, media bypass settings can play a role in how your Lync Server 2010 deployment uses a Mediation Server. Before you remove a Mediation Server, make sure that you understand the function of the Mediation Server and the PSTN gateway in your environment and reassign the PSTN gateway to a Mediation Server as needed.

To move the PSTN gateway

  1. Log on to the computer where Lync Server Management Shell is installed as a member of the Domain Admins group or the RTCUniversalServerAdmins group.

  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. In Lync Server Management Shell, type:

    Get-CsService -PstnGateway
    
  4. Type:

    Set-CsPstnGateway -Identity "PstnGateway:<Xds Identity of PSTN Gateway>" -MediationServer:"MediationServer: <Name of Mediation Server Identity>"
    

    For example:

    Set-CsPstnGateway -Identity "PstnGateway:pstngwred01.contoso.net" -MediationServer "MediationServer:mediation01.contoso.net"