Lync

Remove UM DialPlan Associated with UM IP Gateway for Exchange UM and Lync Integration

Removing DialPlan that is associated with UM IP Gateway (after running ExchUCUtil.ps1 scrip …etc) is not a Next,Next, Finish task as deleting a standard DialPlans.

Andrew Morpeth explained how to do this with details in this very helpful article here: https://ucgeek.co/2014/04/removing-exchange-2013-um-dial-plan/

Below is my attempt to provide an alternate approach to the Powershell script provided in above article (You need to provide the DIalPlan Name in the first line):

$UMDialPlan = "<YourDialPlanName>"
Get-UMMailboxPolicy | where {$_.UMDialPlan -eq $UMDialPlan} | FL Name, UMDialPlan
Get-UMMailboxPolicy | where {$_.UMDialPlan -eq $UMDialPlan} | Remove-UMMailboxPolicy
Get-UMHuntGroup | where {$_.UMDialPlan -eq $UMDialPlan}
Get-UMHuntGroup | where {$_.UMDialPlan -eq $UMDialPlan} | Remove-UMHuntGroup
Get-UMService | where {$_.DialPlans -contains $UMDialPlan} | FL Name, DialPlans
Get-UMService | where {$_.DialPlans -contains $UMDialPlan} | Set-UMService -DialPlans @{Remove="$UMDialPlan"}
Get-UMService | Get-UMCallRouterSettings | where {$_.DialPlans -contains $UMDialPlan} | FL Identity, DialPLans
Get-UMService | Get-UMCallRouterSettings | where {$_.DialPlans -contains $UMDialPlan} | Set-UMCallRouterSettings -DialPlans @{Remove=$UMDialPlan}
Remove-UMDialPlan -Identity $UMDialPlan 

Disable Lync User Vs. Remove Lync User From ADSI Edit View

In this post, we will user ADSI Edit to look into a Lync Enabled user Properties, and note what changes when we temporarily disable, and remove the user from Lync.

Original Lync User properties:

2014-12-26 13_12_33-Disable Vs. Remove Lync User - Microsoft OneNote

Disable Lync User:

2014-12-26 13_13_57-Disable Vs. Remove Lync User - Microsoft OneNote

2014-12-26 13_15_02-Disable Vs. Remove Lync User - Microsoft OneNote

Remove Lync User:

2014-12-26 13_15_58-Disable Vs. Remove Lync User - Microsoft OneNote

2014-12-26 13_16_41-Disable Vs. Remove Lync User - Microsoft OneNote

2014-12-26 13_17_14-Disable Vs. Remove Lync User - Microsoft OneNote

2014-12-26 13_18_07-Disable Vs. Remove Lync User - Microsoft OneNote

Summary:

Selecting “Temporarily Disable For Lync Server” for a user: Will sets the msRTCSIP-UserEnabled value to FALSE, and will maintain all the user Lync attributes

Selecting “Remove From Lync Server” for a user: Will remove all Lync attributes from the user. and the Active Directory user itself will not be deleted.

RTCP active calls must be false if bypass is enabled and refer support is disabled Error

Issue:

In Lync Server 2010 While configuring a trunk to enable media bypass, and disable (un-enable) the refer support (as the recommended settings when creating a SIP trunk to Cisco Unified Communications Manager CUCM), you may receive the below error when you try to commit changes:

RTCP active calls must be false if bypass is enabled and refer support is disabled

 

image

 

Cause:

As the error message mention, RTCP active calls must be false if bypass is enabled and refer support is disabled,

RTCP active calls can’t be modified from the Lync Control panel, you need to open Lync management shell to configure it as false

Solution:

in the below example, my Trunk name is: PstnGateway:10.0.0.20

– in the trunk prosperities, Temporarily un-enable the media bypass, and commit to save changes:

 

image

 

– Now, let’s open Lync Management shell and check the status of RTCP Active Calls, and RTCP Calls on hold:

Get-CsTrunkConfiguration -Identity PstnGateway:10.0.0.20

clip_image001

We see both are True by default, Also note the EnableSessionTimer status is False.

– Now, run the below commands to set RTCPActiveCalls and RTCPCallsonHold as false:

Set-CsTrunkConfiguration –identity PstnGateway:10.0.0.20 –RTCPActiveCalls $false –RTCPCallsonHold $false

You will be prompted to set EnableSessionTimer as true, to do so, run the below command

Set-CsTrunkConfiguration –identity PstnGateway:10.0.0.20 –EnableSessionTimer $true

 

image

– Now lets check the status again:

Get-CsTrunkConfiguration -Identity PstnGateway:10.0.0.20

clip_image004

Now you can Enable Media Bypass on the Newly Created Trunk

clip_image006

Commit to save, and it should complete successfully this time

clip_image007