Identify Lync/Skype Caller and Callee location

I have got several calls recently with my other UC expert friend eager to know “How Can identify Lync caller location“. There are several option to trace it including wire shark, Fiddler and Netmon live traces. But instead of siting to do live trace you can do it offline with the help of lync CDR monitoring console.

Of course you must have it, no choice 🙂 !!

Its pretty simple, login to your Lync monitoring console and search with Caller “User URI prefix”. Click on the audio call which you want and jump directly into “Media Line (Main Audio)” section.

I have two example as below

a)Caller is in outside/internet and callee is in corporate network

1jpg

b)Caller and callee both is in corporate network

2

Hope it will help you 🙂

Advertisements
Categories: Lync 2013, Skype For Business Tags:

Lync dropping calls after 1-2 seconds!

Problem Description:-

Dealing with a single user problem which is complaining that when someone call him to Lync, the call popup appear for 1-2 second and disappear.

Workaround:-

Disabling Enterprise voice feature solved the problem but left user to do not make call outside which was another problem/Limitation.

Troubleshooting:-

We started looking the UCCP and CDR logs from monitoring server for user SIP URI and understand that call is getting transfer to UM and failing as we do not have UM integration.

1

2

I also tested “Test-CSPSTN” call to user SIP and see the different error message which was pulling us to check routing problem. Most of the call were test by lync-lync  call which does not use gateway so Below error was surprises.

3

Solution:-

We started to think the use CSData corruption which may causing the problem. I follow below steps

## Backup specific user data
a) Export-CsUserData -PoolFqdn “POOL-FQDN” -UserFilter “test@Domain.com” -FileName “C:\temp\Testuserdata.zip ”
## this command will remove all Lync attributes from the AD accounts, it’s identical to the “Remove from lync server” in control panel.
b) Remove-CsUser –Identity Test@Domain.com
c) Re-create user in Lync, manually assign polices, enterprise voice extension etc..
## this command will restore Lync user data (contact list, logs etc..) it will append the user data instead of overrating data like in the “Import-CsUserData” cmdlet.
d) Update-CsUserData -Filename “C:\temp\Testuserdata.zip” -UserFilter test@Domain.com

Problem Solved ?? , UHH, Guess ??.  NO NO L, We have still same issue !!!!!

Again tried to above steps but did not use “Update-CsUserData” as I thought there could be some stale/bad entry in the contacts, Conference, LIS data which may be causing the issue.
Now, The problem is solved.

“We can’t get more message right now” Error in Lync 2013 chat room

July 28, 2015 2 comments

You are laughing to see the subject line I have used in this post “We can’t get more message right now”. Yes this is one of the error message been reported by one of my Lync 2013 persistent chat user.

He is active member of many chat room and use it very often. Other members of chat room can use the room without any issue. I did lots of research over web and also thought to open case with Microsoft but doing it before i tried something funny.

The error message got by user is below.

PRChat

I added user as additional manager in the room as below.

cmdlet

User exit lync clients and tried to post message back the chat rooms, all’s started working fine. I am still not sure what is the root cause of this behavior and trying to get it from MS :).

Unable to create CMS database for the Lync FE pool Error “Install-CsDatabase : Command execution failed: The requested object does not exist. “

We were in transition phase to move CMS database from lync 2010 to Lync 2013 server. All users were migrated and now migrating CMS.

Lync 2010 Environment:

Lync 2010 Front End Pool contain two front end servers and one of the front end server is CMS master Server. This pool has one standalone SQL server which is holding CMS database along with other database.

Lync 2013 Environment:

Lync 2013 have three front end servers. This front end pool have two node cluster SQL which is holding backend datasbe for this pool. Backend SQL cluster is also holding instance for one other front end pool called “BIG Meeting”.

 Problem :
As per MS article we issues the below command to create the new Central Management store database in the Lync Server 2013 SQL Server database which is a prereqsuite to start the CMS realocation

Install-CsDatabase -CentralManagementDatabase -SqlServerFqdn “FQDN SQLInstance” -SqlInstanceName “SQLInstance”

Above command failed with below error

Install-CsDatabase : Command execution failed: The requested object does not exist. (Exception from HRESULT: 0x80010114)”

Solution: As we have SQL cluster hosting all lync 2013 BE instance, we must use database and log file path to tell the cmdlets to create CMS database.

Then we used a command as below with ‘DatabasePaths’ switch.

Install-CsDatabase -CentralManagementDatabase -SqlServerFqdn “FQDN SQLInstance” -SqlInstanceName “SQLInstance” -DatabasePaths “E:\CSLog”,”F:\CSLog”,”G:\CSDB”

This command was able to successfully created the xds database.

We also move the CMS from Lync 2010 to Lync server 2013 pool, it was completed successfully.

Hope it will help others hosting Lync 2010/2013 database in SQL cluster form 🙂 !!!

 Reference :

Install-CsDatabase

https://technet.microsoft.com/en-us/library/gg399044.aspx

Configure SQL Server clustering for Lync Server 2013

https://technet.microsoft.com/en-us/library/dn383982.aspx

Database installation using Lync Server Management Shell in Lync Server 2013

https://technet.microsoft.com/en-us/library/gg398832.aspx

 

Categories: Lync 2013, Uncategorized

Importance of High Port Range (50,000 – 59,999) between two Edge Pool

December 10, 2014 4 comments

We were working on building of second lync 2013 Edge Pool to achieve HA and Load balancing for our Lync infrastructure and came across with lots of funny and nice things. I cannot highlight all funny things here,But going to explain the most funniest part.

In our environment, we have two edge pool, one pool is for lync 2010 frond end pool media association and new edge pool is for lync 2013 media association. Environment has few mediation pool which is connected with lync 2010 edge server for media association.

If someone call from remote access to desk phone (connected Via Mediation server) using lync 2013 edge server it was getting failed. When we saw the lync traces and netstat logs it was showing that, lync 2013 edge servers and remote client is trying to reach 50k port ranges of Lync 2010 edge server (This is enterprise voice calls and going to use lync 2010 mediation which is associated with lync 2010 edge servers)

So we must have to open 50K port ranges for both of edge pool servers so client can connect and do the enterprise voice calling seamlessly. Below is the technet forum discussion which also helped us to understand more and taking decision to open this high port ranges

https://social.technet.microsoft.com/Forums/office/en-US/faf15263-8950-44e5-af6e-6eaf8b23f0b5/lync-2013-client-still-tries-to-connect-to-lync-edge-on-ports-5000059999?forum=lyncconferencing

Hope, it will help someone else J

Categories: Lync 2013

How to track account locked out in TMG 2010 SP2

November 15, 2014 Leave a comment

Started noticing that few AD accounts are getting locked out within Active Directory where the source, as per the monitoring reports shows that the TMG Servers of your environment, which is working as a reverse proxy for mobile clients.

An account lockout occurs after several failed authentication attempts that are made by incoming web proxy or web publishing requests (for example, an ActiveSync device that has a user’s old password saved).

To track it , go into Log & Reportss in TMG Array and find out failed authentication attempts information below.

  • Run Forefront TMG 2010 console
  • Select Logs & Reports item on the left pane
  • Select Logging tab on the center pane
  • Select Tasks tab on the right pane
  • Select Edit Filter under Logging task

1-1
The TMG logs cannot be used to identify the source of the request hence still you are not able to find any denied connection and device detail which may casing the account locking problem.

3

By default, the change in behavior is not enabled, and the following script should be run to enable the new behavior. After you enable the new behavior, TMG will log the username that is associated with a failed logon attempt in the Username field as follows, instead of being logged as Anonymous:

domain\username (!)

Go thro with the below KB article to enable script for search failed login.

http://support2.microsoft.com/kb/2592929

4-4

Now you can see the below logs report which shows the several denied connection.

2-2

You can also see more information about device expanding “Additional Information” section into one of the log

Disable Video modalitese for certian CSusers in Lync 2013

September 24, 2014 Leave a comment

I have a requirement to disable video for few lync users sitting in remote site dealing with low bandwidth. This whole exercise is to provide good user experience for Audio

To do this, we need to follow below steps

  1. Create a Conferencing policy using below cmdlet

NewCSPolicy2

2. Disable Video by set Boolean value $false for EnableP2PVideo

SetCSpolicy2

I have disabled sharing too, hence you can change other parameter on base of your requirement

See this article for more details about parameter and CS conferencing policy

http://blogs.technet.com/b/csps/archive/2011/08/11/confpoliciesintro.aspx

3. See below CS conferencing policy which shows the EnableP2PVideo & EnableAppDesktopSharing

3.2

Now you can assign this policy for individual users or group of users thru CSV file

Use below cmdlet to assign for single user

Get-CsUser Useralias | Grant-CsConferencingPolicy -PolicyName Policyname

Use below cmdlet for a list thru CSV file (Change location accordingly)

import-csv C:\input.CSV | ForEach-Object {

write-host “Login” $_.login

Get-CsUser $_.login | Grant-CsConferencingPolicy -PolicyName DisableVideoANDSharing }

Hope it will help someone dealing with same need 🙂 !!!

Categories: Lync 2013