SRTP error on latest master with latest chrome

256 views
Skip to first unread message

kaiduan xie

unread,
Feb 8, 2022, 2:52:19 PM2/8/22
to meetech...@googlegroups.com
Hi,

It seems that the latest master is broken with the latest Chrome. For the video room test, the following error was thrown.

[ERR] [dtls.c:janus_dtls_srtp_incoming_msg:923] [1540491290345059] Oops, error creating inbound SRTP session for component 1 in stream 1??

[ERR] [dtls.c:janus_dtls_srtp_incoming_msg:924] [1540491290345059]  -- 1 (srtp_err_status_fail)

[1540491290345059] DTLS alert triggered on stream 1 (component 1), closing...


My last time to checkout the code was on November 19, and it worked before I upgraded Chrome recently. I upgraded to the latest master version of Janus, the above problem occurred.

commit b7979bb0666f41728ab9c1105f802839ea97324a (HEAD -> master, origin/master, origin/HEAD)

Author: Lorenzo Miniero <lmin...@gmail.com>

Date:   Tue Feb 8 17:49:09 2022 +0100


    Reset extensions struct when not used



Google Chrome99.0.4844.15 (Official Build) beta (x86_64) 
Revision9c3a2b5676cf5b65e0ca0ce5860f7eba320cf544-refs/branch-heads/4844@{#159}

Any idea to fix this issue?

Thanks,

/Kaiduan
--
Founder of Goodstartsoft

kaiduan xie

unread,
Feb 8, 2022, 4:54:10 PM2/8/22
to meetecho-janus
When installing GStreamer,

apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio

The above command installed libsrtp2-1, after removing libsrtp2-1, the problem SRTP error is gone.

However I would like to have GStreamer installed to try simple-whip-client. It looks like that I need to install GStreamer from source code.

/Kaiduan


kaiduan xie

unread,
Feb 8, 2022, 5:37:44 PM2/8/22
to meetecho-janus
Lorenzo,

How do you install GStreamer for simple-whip-client? I installed GStreamer per the instructions on https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c,

but this caused an issue on Janus as described above. The Ubuntu is Ubuntu 20.04.2 LTS.

Thanks,

/Kaiduan

--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/meetecho-janus/32044bb4-ef8e-4720-b060-c960bf52c382n%40googlegroups.com.

kaiduan xie

unread,
Feb 8, 2022, 9:46:54 PM2/8/22
to meetecho-janus
I used the LD_PRELOAD trick to ask Janus to use libsrtp 2.2 instead of the libsrtp 2.3 installed by GStreamer.

export LD_PRELOAD=/lib/libsrtp2.so.1

Alessandro Toppi

unread,
Feb 9, 2022, 5:05:13 AM2/9/22
to meetecho-janus
Both libsrtp v2.3 and v2.4 are fine if compiled from sources.
The problem is with some binary distributions that miss needed symbols or ciphers.
I recommend using Docker to isolate processes that might have dependencies conflicts. In particulat having gstreamer and janus installed on the same machine (as you discovered) is often a bad idea.

Reply all
Reply to author
Forward
0 new messages