<div dir="ltr"><div dir="ltr">I still can't resolve the issue. <div>Can someone with dtls plugin experience analyze the log attached and tell me what is wrong and how to fix it?</div><div><br></div><div>DTLS plugin exists. Openssl is available on my camera device:</div><div><div>root@tina:~# openssl version</div><div>OpenSSL 1.1.0i  14 Aug 2018</div></div><div><br></div><div>So why webrtc can't connect due to dtls issue?</div><div><br></div><div>Same code was working on gstreamer version 1.16.0. The issue appeared when I migrated to gstreamer version 1.18.2.</div><div><br></div><div>I have also updated libnice to the latest version. </div><div><br></div><div>Please help me.</div><div><br></div><div>Thanks,</div><div>Vladimir</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 24, 2020 at 10:48 AM Vladimir Tyutin <<a href="mailto:vladimir.tyutin@gmail.com">vladimir.tyutin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="ltr">Thanks Anton,</div><div dir="ltr">Do you know if there any command in Linux to verify OpenSSL exists and running well?</div><div dir="ltr">In my build for openwrt Linux OpenSSL is included. </div><div dir="ltr"><br><blockquote type="cite">On 24 Dec 2020, at 10:25, Anton Pryima <<a href="mailto:zingfrid@gmail.com" target="_blank">zingfrid@gmail.com</a>> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="auto"><div>Hello Vladimir.</div><div dir="auto"><br></div><div dir="auto">According to both logs provided, I see an issue with OpenSSL. Please ensure that both ends have correct and working versions of OpenSSL.</div><div dir="auto"><br></div><div dir="auto">Best regards,</div><div dir="auto">Anton<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Thu, Dec 24, 2020, 08:40 Vladimir Tyutin <<a href="mailto:vladimir.tyutin@gmail.com" target="_blank">vladimir.tyutin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="ltr">Hello everyone,</div><div dir="ltr">Can someone help me with issue below?</div><div dir="ltr">Please review the log from previous mail and suggest what is the issue with dtls and how to fix it. </div><div dir="ltr"><br></div><div dir="ltr">Thanks,</div><div dir="ltr">Vladimir </div><div dir="ltr"><br><blockquote type="cite">On 20 Dec 2020, at 09:53, Vladimir Tyutin <<a href="mailto:vladimir.tyutin@gmail.com" rel="noreferrer" target="_blank">vladimir.tyutin@gmail.com</a>> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">Please find the log attached with dtls log level set to 7. <div>Please help me to understand what is wrong and why peer connection is failing. </div><div><br></div><div>Thanks,</div><div>Vladimir</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 20, 2020 at 8:56 AM Vladimir Tyutin <<a href="mailto:vladimir.tyutin@gmail.com" rel="noreferrer" target="_blank">vladimir.tyutin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Sean,<div>Thanks for your reply. Could you please advise how better to collect DTLS pcaps?</div><div>I can activate log for DTLS element like this:</div><div>export GST_DEBUG=2,dtls*:7</div><div>Is it enough?</div><div><br></div><div>By the way I'm trying to get webrtc working between Lindenis V536 camera and iOS app. </div><div>They have already worked before together. On iOS side nothing is changed. </div><div>in camera side I have migrated from gstreamer version 1.16.0 to version 1.18.2. </div><div>So is there any changes in dtls side between these versions. </div><div>Any suggesting how better to debug this issue I would appreciate.</div><div><br></div><div>Thanks,</div><div>Vladimir</div><div><br></div><div>PS. I will share DTLS element logs once I collect it.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 20, 2020 at 1:19 AM Sean DuBois <<a href="mailto:sean@siobud.com" rel="noreferrer" target="_blank">sean@siobud.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey Vladimir,<br>
<br>
Would you mind getting a pcap of your DTLS traffic? I assume you are<br>
getting a Close because the clients are incompatible. These are the big<br>
ones I have seen with DTLS.<br>
<br>
* One side doesn't have use_srtp<br>
* DTLS v1.0 and v1.2 mismatch<br>
* One side requiring Extended Master Secret, other side not supporting<br>
* .... lots of other crazy stuff :)<br>
<br>
thanks<br>
<br>
On Sat, Dec 19, 2020 at 04:54:58PM +0300, Vladimir Tyutin wrote:<br>
> Please assist me to solve the issue below.<br>
> I observe WebRTC peer connection can't be established.<br>
> In log I see some errors related to dtls. Please help me understand the log<br>
> below and get the issue resolved:<br>
><br>
> 0:01:21.644288173  1090  0x1b401b0 TRACE              webrtcbin<br>
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1073:_collate_peer_connection_states:<webrtc><br>
> transceiver 0x1ab0f08 DTLS state: 0x0<br>
> 0:01:21.644405214  1090  0x1b401b0 TRACE              webrtcbin<br>
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1086:_collate_peer_connection_states:<webrtc><br>
> transceiver 0x1ab0f08 ICE state: 0x1<br>
> 0:01:21.644569089  1090  0x1b401b0 TRACE              webrtcbin<br>
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1073:_collate_peer_connection_states:<webrtc><br>
> transceiver 0x1bed050 DTLS state: 0x3<br>
> 0:01:21.644678631  1090  0x1b401b0 TRACE              webrtcbin<br>
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1086:_collate_peer_connection_states:<webrtc><br>
> transceiver 0x1bed050 ICE state: 0x2<br>
> 0:01:21.644764381  1090  0x1b401b0 TRACE              webrtcbin<br>
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1131:_collate_peer_connection_states:<webrtc><br>
> ICE connection state: 0x6. DTLS connection state: 0x9<br>
> 0:01:21.644837673  1090  0x1b401b0 FIXME              webrtcbin<br>
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1189:_collate_peer_connection_states:<webrtc><br>
> Undefined situation detected, returning old state<br>
> 0:01:21.762102246  1090  0x1f1b7b0 WARN           dtlssrtpdemux<br>
> gst-plugins-bad-1.18.2/ext/dtls/gstdtlssrtpdemux.c:134:sink_chain:<dtlssrtpdemux2><br>
> received invalid buffer: 1<br>
> 0:01:21.769914036  1090  0x1f1b7b0 ERROR         dtlsconnection<br>
> gst-plugins-bad-1.18.2/ext/dtls/gstdtlsconnection.c:985:handle_error:<GstDtlsConnection@0x1da56f0><br>
> Fatal SSL error<br>
> 0:01:21.770157620  1090  0x1f1b7b0 ERROR         dtlsconnection<br>
> gst-plugins-bad-1.18.2/ext/dtls/gstdtlsconnection.c:968:ssl_err_cb:<GstDtlsConnection@0x1da56f0><br>
> ssl error:<br>
> 2947169560:error:14102410:lib(20):func(258):reason(1040):NA:0:SSL alert<br>
> number 40<br>
><br>
> 0:01:21.770551453  1090  0x1f1b7b0 ERROR                dtlsdec<br>
> gst-plugins-bad-1.18.2/ext/dtls/gstdtlsdec.c:502:process_buffer:<dtlsdec2><br>
> Error processing buffer: Fatal SSL error<br>
> 0:01:21.770553453  1090  0x1b401b0 TRACE              webrtcbin<br>
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1073:_collate_peer_connection_states:<webrtc><br>
> transceiver 0x1ab0f08 DTLS state: 0x0<br>
> 0:01:21.770745245  1090  0x1b401b0 TRACE              webrtcbin<br>
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1086:_collate_peer_connection_states:<webrtc><br>
> transceiver 0x1ab0f08 ICE state: 0x1<br>
> 0:01:21.770861286  1090  0x1b401b0 TRACE              webrtcbin<br>
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1073:_collate_peer_connection_states:<webrtc><br>
> transceiver 0x1bed050 DTLS state: 0x2<br>
> 0:01:21.770951120  1090  0x1b401b0 TRACE              webrtcbin<br>
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1086:_collate_peer_connection_states:<webrtc><br>
> transceiver 0x1bed050 ICE state: 0x2<br>
> 0:01:21.771039203  1090  0x1b401b0 TRACE              webrtcbin<br>
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1131:_collate_peer_connection_states:<webrtc><br>
> ICE connection state: 0x6. DTLS connection state: 0x5<br>
> 0:01:21.771119036  1090  0x1b401b0 TRACE              webrtcbin<br>
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1145:_collate_peer_connection_states:<webrtc><br>
> returning failed<br>
> 0:01:21.771230036  1090  0x1b401b0 INFO               webrtcbin<br>
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1295:_update_peer_connection_state_task:<webrtc><br>
> Peer connection state change from connecting(1) to failed(4)<br>
> [CAMERA_DEBUG] Peer connection state: failed<br>
> 0:01:21.770664245  1090  0x1f1b7b0 WARN                 dtlsdec<br>
> gst-plugins-bad-1.18.2/ext/dtls/gstdtlsdec.c:503:process_buffer:<dtlsdec2><br>
> error: Fatal SSL error<br>
> 0:01:21.772238245  1090  0x1f1b7b0 ERROR                dtlsdec<br>
> gst-plugins-bad-1.18.2/ext/dtls/gstdtlsdec.c:618:sink_chain:<dtlsdec2><br>
> Failed to process buffer: error<br>
> 0:01:21.808121366  1090  0x1f1ba90 WARN                 basesrc<br>
> gstreamer-1.18.2/libs/gst/base/gstbasesrc.c:3127:gst_base_src_loop:<nicesrc2><br>
> error: Internal data stream error.<br>
> 0:01:21.808266866  1090  0x1f1ba90 WARN                 basesrc<br>
> gstreamer-1.18.2/libs/gst/base/gstbasesrc.c:3127:gst_base_src_loop:<nicesrc2><br>
> error: streaming stopped, reason error (-5)<br>
> 0:01:21.809681158  1090  0x1f1ba90 WARN                   queue<br>
> gstreamer-1.18.2/plugins/elements/gstqueue.c:990:gst_queue_handle_sink_event:<queue8><br>
> error: Internal data stream error.<br>
> 0:01:21.809811158  1090  0x1f1ba90 WARN                   queue<br>
> gstreamer-1.18.2/plugins/elements/gstqueue.c:990:gst_queue_handle_sink_event:<queue8><br>
> error: streaming stopped, reason error (-5)<br>
<br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>
</blockquote></div>
<div><log_v536.txt></div></div></blockquote></div>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div></div>
<span>_______________________________________________</span><br><span>gstreamer-devel mailing list</span><br><span><a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a></span><br><span><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></span><br></div></blockquote></div></blockquote></div>