This is a static, read-only archive of Wireshark Q&A. Older questions and answers from October 2017 and earlier can be found at osqa-ask.wireshark.org.
0

Capture encrypted VoIP calls with Wireshark ?

asked Nov 18 '17

updated Nov 19 '17

I'm trying to capture wired VoIP calls between 2 TextNow apps installed on different Windows 10 workstations on the same LAN, by running Wireshark 2.4.2 on one of these workstations. However, after the call is captured, nothing shows up under Telephony - VoIP Calls, or any other Telephony Wireshark menu option. Why is that, and how to make these calls to show up in the Telephony window, so I can listen to them and analyze? Captured traffic during such call is presented by Wireshark as primarily UDP and STUN packets between one TextNow client and a TextNow web server running at Amazon Cloud redirecting the call to another TextNow client on my LAN, but no SIP packets.

1 Answer

0

answered Nov 18 '17

Hard to say without seeing a capture, but in general, SIP and RTP are just the most well-known protocols used to transport VoIP signalling and media respectively. Some applications use their own protocols for the same purpose, and if these are new or obscure enough, Wireshark may not be able to identify them as VoIP-related ones yet. And if they are encrypted, it may never be.

Comments

Is there a way to send you the .pcap file, may be to PM or email? These files usually contain too much specific data to post them on a public forum unedited. I doubt TextNow uses their own protocol since this app allows to call any other softphones, ATAs, mobiles and landlines.

User 83662 ( Nov 18 '17 )

I'm afraid I was right. Your capture contains a bi-directional RTP exchange using an unknown codec (payload type number 111 can only be dynamically assigned per session so no codec is associated to it by default) and the call control protocol uses TLS encryption. The STUN requests contain username RTC-d50.... which suggests (although doesn't guarantee) that WebRTC technology is used.

I doubt TextNow uses their own protocol since this app allows to call any other softphones

An app like this rarely lives on its own, it usually has got some support infrastructure somewhere in the cloud, which provides gateway functionality allowing to interwork with other services. See this Wikipedia article for the idea. Depending on the business model, even calls to/from landline/mobile phones are possible via SIP.

There was a chance that the codec used was Opus - this was a wild guess based on the fact that packet sizes differ. However, my pcapng -> wav toolchain for Opus has failed to produce any audio. So it is either iSAC or something else (iLBC is often assigned 111 as payload type number but it uses fixed packet size if I remember well).

User 73968 ( Nov 18 '17 )

Thanks for the feedback. I think you're right regarding the cloud infrastructure and protocol exchange gateway. Does that mean Wireshark looses some ground in capturing and analyzing modern VoIP traffic? In that regard, what package would you suggest to capture and listen to this traffic? Also, any VoIP Recording package you know allows to capture a single call randomly directed by Windows via several NICs at different call stages, even if not encrypted like this?

User 83662 ( Nov 18 '17 )

Well, the very idea of encryption is that witty folks using Wireshark (or anything else for that matter) would not be able to record the calls and listen to them.

So if you can get the TLS sessions' secrets from your browser, you can decrypt your own TLS sessions (unless DH key negotiation was used), but without that data - game over. If the app is self-sufficient, i.e. doesn't run in browser window, you'll not be able to decipher even your own calls.

Which brings me to an idea that the codec used might have actually been Opus but the RTP may have been an SRTP in fact - the two are indistinguishable as the only difference is the payload, so only the signalling information could tell whether SRTP was used or not.

User 73968 ( Nov 18 '17 )
cc-by-sa Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.