Webex Teams Media Node Discovery

This is mostly a note to myself.

If you dig into the Webex Teams logs you can find a section with the reachability metrics to Cisco and any onprem media nodes you might have. The log file for this is the normal current_log.txt or the last_run_current_log.txt. Do a search for "traceResult" and you will see something like this below.

2020–06–25T11:48:26.971Z <Debug> [11460] MediaManager.cpp:1995 MediaManager::onTraceServersCompleted:In onReachabilityResultReady: earlyResult: 0, success: 1, traceResult:{some JSON formated result}

Here is a very simple and rudimental JS script to get those printed with just the UDP values next to each node. I am by no means a JS guru so there might be better ways to do that.

An important thing to remember is that the decision which node is chose is taken in the Webex cloud and cannot be seen clearly in the client logs.

let clusters = {

”wjfk.wjfk.*”:{

“clusterUsability”:{“usable”:”true”},

”tcp”:{“latencyInMilliseconds”:”79",”reachable”:”true”},

”udp”:{“latencyInMilliseconds”:”31",”reachable”:”true”},

”xtls”:{“latencyInMilliseconds”:”65",”reachable”:”true”}

},

”wsyd.wsyd.*”:{

“clusterUsability”:{“usable”:”true”},

”tcp”:{“latencyInMilliseconds”:”409",”reachable”:”true”},

”udp”:{“latencyInMilliseconds”:”232",”reachable”:”true”},

”xtls”:{“latencyInMilliseconds”:”399",”reachable”:”true”}

}};

keys = Object.keys(clusters)

for (key of keys) {

subKeys = Object.keys(clusters[key])

for (subKey of subKeys){

if (subKey == “udp”){

console.log(`${key}, ${subKey}, ${clusters[key][subKey].latencyInMilliseconds}`)

}}}

Output looks like:

wjfk.wjfk.*, udp, 31
wsyd.wsyd.*, udp, 232

I do all stuff Webex and Cisco Collab at Frink Advanced Services GmbH

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