Interperability with Linphone

42 views
Skip to first unread message

Ihor Olkhovskyi

unread,
May 28, 2024, 4:16:15 AMMay 28
to Sipwise rtpengine
Hello,

What is the best way to debug the following issue:

Linphone 5.2.5 (Android) <- SRTP -> rtpengine 12.3.1.2

Linphone by default proposing these suites:
AEAD_AES_128_GCM
AEAD_AES_256_GCM
AES_CM_128_HMAC_SHA1_80
AES_CM_265_HMAC_SHA1_80

On answer, RTPengine by default offers
AEAD_AES_128_GCM, 
but the sound is definitely not decoded, I can hear only distorted voice.

When I'm explicitly disabling AEAD_AES_* suites (with SDES-no-XXX), sound is work as expected on negotiated
AES_CM_128_HMAC_SHA1_80
suite

How is the best to find out who's messing with encryption?

Cheers,
Ihor

Richard Fuchs

unread,
May 28, 2024, 8:36:42 AMMay 28
to rtpe...@googlegroups.com
The best way is to pull a pcap and try to manually decode the SRTP, or at least compare the SRTP media to the RTP media. Also comparing the encrypt direction with the decrypt direction can be helpful.

AEAD is a bit of a challenge as there aren't many tools that support it. But you can use rtpengine itself to decrypt or verify AEAD. I have a half-finished and uncommited script sitting here for that very purpose.

Also try disabling just AEAD_AES_128_GCM - perhaps the 256-bit version works?

Feel free to post some sample packets here together with the crypto keys if you need help decrypting/verifying them.

Cheers
--
You received this message because you are subscribed to the Google Groups "Sipwise rtpengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtpengine+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rtpengine/c2bc403d-d1e3-458c-aee1-769c4c4156fan%40googlegroups.com.
Message has been deleted

Ihor Olkhovskyi

unread,
Jun 28, 2024, 7:24:49 AMJun 28
to Sipwise rtpengine
Richard,

I've manage to solve the issue. It's famous SDES-pad. Sorry for the noize!
Reply all
Reply to author
Forward
0 new messages