365 UC
Published in

365 UC

Troubleshooting Network Topology in Microsoft Teams Direct Routing

If you are playing around with location based routing or local media optimization in Microsoft Teams Direct Routing, you will have no doubt had to configure Trusted IPs and network sites in Microsoft Teams. In order for LBR or LMO to work correctly, a client needs to be determined to be “internal”. This is done using Trusted IPs and network subnets in the Network Topology section of the Teams Admin Center. It is often wise to check if what you have configured is correct. I’ve also found that trusted IPs can take a while to filter through the Teams service, so instead of waiting for stuff to miraculously work you can use the process below to check what your client thinks is going on.

Alternatively, maybe the networking team has snuck in a new subnet without telling you, or the security team have changed the firewall IP and the clients no longer think they’re internal?

I have also found that the MediaLine_Description_ReflexiveLocalIPAddress_IPAddr or Connectivity_LocalSite IP shown in the calling logs in the TAC also don’t accurately reflect the actual Trusted IP you need to enter. We use Zscaler, so things like whatismyip.com don’t actually show the IP Microsoft sees when your client makes the REST API call during call setup.

The Teams client doesn’t easily surface this amount of data, so you need to generate some debug log files in order to see it.

While in Microsoft Teams, hold down Ctrl + Alt + Shift + 1 (or Option + Command + Shift + 1 for Mac) and the Teams client will automatically download a series of logs in your Downloads folder (%userprofile%\Downloads in Windows, and ~/Downloads on Mac).

The folder will be called “MSTeams Diagnostics Log” with a timestamp after it:

There are 3 subfolders:

The one we’re interested in is the web folder. In the web folder you will see a series of log files:

There are loads of interesting log files here but the one we want for this has a suffix of: _calling

At the top of the file you will see a list of previously placed calls showing you termination reasons and subcodes etc.

Further down you will see a Current known location section. In the example below you will see that my client has matched for a Trusted IP which matches a Zscaler IP range. However, there is no site match since my client is at home.

Current known location showing matched trusted IP, but no matching site info.

It’s worth noting that if the external/trusted IP is not matched, Teams will not try and match the subnet as it’s already considered an external client.

This following example shows a client that has matched both a trusted IP and a site subnet:

Current known location showing matched trusted IP as well as matching site info.

So, that’s pretty much it. I have found that you might need to logout and back in to the Teams client if you have only very recently made changes to the network topology in the TAC. I’m not sure how often the client pulls down the new topology.

Anyway, happy troubleshooting!




Stories from the world of UC by a bunch of UC professionals…

Recommended from Medium

Clean up your act: User Stories and Backlog best practices

Make a GIF a Zoom background

Programming Environments

Packer the Imaging tool - Azure

5 Tips to Speedup Software Development & Become a Leader

Hello World — My Live Documented Journey of Becoming a Successful Mobile App/Game Dev (EP: 1)

Essential tips for scripting in Bash and Python

Create Custom Domain on Xampp Localhost

An example Image

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Matt Ellis

Matt Ellis

Unified Communications Architect, Pompey fan, burger eater, coffee drinker...

More from Medium

Apple’s Privacy Changes

Photo displays message iPhones will show is user searches to report child abuse or searches for abuse material.

How to implement an approval admin rights mechanism on Mac !!!

3D Printer Week 1

Anycubic Releases New Generation of Resin Printers With Their M3 Series