<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Sure Anton,<div class="">I will collect it once again and attach it to the next email. </div><div class=""><br class=""></div><div class="">I use the following command to activate logging:</div><div class="">“export GST_DEBUG=2,webrtc*:6,*dtls*:7”</div><div class=""><br class=""></div><div class="">Let me know if I need to include any other plugins to logging that might assist to analyse the issue. </div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Vladimir <br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 29 Dec 2020, at 15:22, Anton Pryima <<a href="mailto:zingfrid@gmail.com" class="">zingfrid@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello Vladimir,<div class=""><br class=""></div><div class="">I've tried to google your errors and it looks like that dtls is not the reason. Can you please attach the full connection log from the beginning?</div><div class=""><br class=""></div><div class="">Best regards,</div><div class="">Anton.</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 29, 2020 at 10:02 AM Vladimir Tyutin <<a href="mailto:vladimir.tyutin@gmail.com" class="">vladimir.tyutin@gmail.com</a>> wrote:<br class=""></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" class="">Anton, <div class="">It's difficult to do on opponent side because there I have:</div><div class="">1. iOS application with webrtc</div><div class="">2. Android application with webrtc</div><div class="">3. JS application with webrtc</div><div class=""><br class=""></div><div class="">Can you advise how to check openssl there?</div><div class="">But all three applications worked well when I used gstreamer version 1.16.0 on my Linux camera device. </div><div class="">Once I updated gstreamer version to 1.18.2 on camera device something broke. </div><div class="">So I'm pretty sure issue on camera side but I have no idea how to understand this log with dtls error and what should I fix.</div><div class=""><br class=""></div><div class="">Moreover on my linux camera device I have gnutls and openssl. What is used by dtls plugin? Is it openssl or gnutls?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Vladimir  </div><div class=""><br class=""></div><div class=""><br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 29, 2020 at 10:49 AM Anton Pryima <<a href="mailto:zingfrid@gmail.com" target="_blank" class="">zingfrid@gmail.com</a>> wrote:<br class=""></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" class="">Hello Vladimir.<div dir="auto" class=""><br class=""></div><div dir="auto" class="">Try to execute 'openssl version' at the both sides and provide output.</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">Best regards,</div><div dir="auto" class="">Anton.</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 28, 2020, 22:03 Vladimir Tyutin <<a href="mailto:vladimir.tyutin@gmail.com" target="_blank" class="">vladimir.tyutin@gmail.com</a>> wrote:<br class=""></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" class=""><div dir="ltr" class="">I still can't resolve the issue. <div class="">Can someone with dtls plugin experience analyze the log attached and tell me what is wrong and how to fix it?</div><div class=""><br class=""></div><div class="">DTLS plugin exists. Openssl is available on my camera device:</div><div class=""><div class="">root@tina:~# openssl version</div><div class="">OpenSSL 1.1.0i  14 Aug 2018</div></div><div class=""><br class=""></div><div class="">So why webrtc can't connect due to dtls issue?</div><div class=""><br class=""></div><div class="">Same code was working on gstreamer version 1.16.0. The issue appeared when I migrated to gstreamer version 1.18.2.</div><div class=""><br class=""></div><div class="">I have also updated libnice to the latest version. </div><div class=""><br class=""></div><div class="">Please help me.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Vladimir</div></div></div><br class=""><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" rel="noreferrer" target="_blank" class="">vladimir.tyutin@gmail.com</a>> wrote:<br class=""></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" class=""><div dir="ltr" class="">Thanks Anton,</div><div dir="ltr" class="">Do you know if there any command in Linux to verify OpenSSL exists and running well?</div><div dir="ltr" class="">In my build for openwrt Linux OpenSSL is included. </div><div dir="ltr" class=""><br class=""><blockquote type="cite" class="">On 24 Dec 2020, at 10:25, Anton Pryima <<a href="mailto:zingfrid@gmail.com" rel="noreferrer" target="_blank" class="">zingfrid@gmail.com</a>> wrote:<br class=""><br class=""></blockquote></div><blockquote type="cite" class=""><div dir="ltr" class=""><div dir="auto" class=""><div class="">Hello Vladimir.</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">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" class=""><br class=""></div><div dir="auto" class="">Best regards,</div><div dir="auto" class="">Anton<br class=""><br class=""><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" rel="noreferrer" target="_blank" class="">vladimir.tyutin@gmail.com</a>> wrote:<br class=""></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" class=""><div dir="ltr" class="">Hello everyone,</div><div dir="ltr" class="">Can someone help me with issue below?</div><div dir="ltr" class="">Please review the log from previous mail and suggest what is the issue with dtls and how to fix it. </div><div dir="ltr" class=""><br class=""></div><div dir="ltr" class="">Thanks,</div><div dir="ltr" class="">Vladimir </div><div dir="ltr" class=""><br class=""><blockquote type="cite" class="">On 20 Dec 2020, at 09:53, Vladimir Tyutin <<a href="mailto:vladimir.tyutin@gmail.com" rel="noreferrer noreferrer" target="_blank" class="">vladimir.tyutin@gmail.com</a>> wrote:<br class=""><br class=""></blockquote></div><blockquote type="cite" class=""><div dir="ltr" class=""><div dir="ltr" class="">Please find the log attached with dtls log level set to 7. <div class="">Please help me to understand what is wrong and why peer connection is failing. </div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Vladimir</div></div><br class=""><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 noreferrer" target="_blank" class="">vladimir.tyutin@gmail.com</a>> wrote:<br class=""></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" class="">Hi Sean,<div class="">Thanks for your reply. Could you please advise how better to collect DTLS pcaps?</div><div class="">I can activate log for DTLS element like this:</div><div class="">export GST_DEBUG=2,dtls*:7</div><div class="">Is it enough?</div><div class=""><br class=""></div><div class="">By the way I'm trying to get webrtc working between Lindenis V536 camera and iOS app. </div><div class="">They have already worked before together. On iOS side nothing is changed. </div><div class="">in camera side I have migrated from gstreamer version 1.16.0 to version 1.18.2. </div><div class="">So is there any changes in dtls side between these versions. </div><div class="">Any suggesting how better to debug this issue I would appreciate.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Vladimir</div><div class=""><br class=""></div><div class="">PS. I will share DTLS element logs once I collect it.</div></div><br class=""><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 noreferrer" target="_blank" class="">sean@siobud.com</a>> wrote:<br class=""></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 class="">
<br class="">
Would you mind getting a pcap of your DTLS traffic? I assume you are<br class="">
getting a Close because the clients are incompatible. These are the big<br class="">
ones I have seen with DTLS.<br class="">
<br class="">
* One side doesn't have use_srtp<br class="">
* DTLS v1.0 and v1.2 mismatch<br class="">
* One side requiring Extended Master Secret, other side not supporting<br class="">
* .... lots of other crazy stuff :)<br class="">
<br class="">
thanks<br class="">
<br class="">
On Sat, Dec 19, 2020 at 04:54:58PM +0300, Vladimir Tyutin wrote:<br class="">
> Please assist me to solve the issue below.<br class="">
> I observe WebRTC peer connection can't be established.<br class="">
> In log I see some errors related to dtls. Please help me understand the log<br class="">
> below and get the issue resolved:<br class="">
><br class="">
> 0:01:21.644288173  1090  0x1b401b0 TRACE              webrtcbin<br class="">
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1073:_collate_peer_connection_states:<webrtc><br class="">
> transceiver 0x1ab0f08 DTLS state: 0x0<br class="">
> 0:01:21.644405214  1090  0x1b401b0 TRACE              webrtcbin<br class="">
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1086:_collate_peer_connection_states:<webrtc><br class="">
> transceiver 0x1ab0f08 ICE state: 0x1<br class="">
> 0:01:21.644569089  1090  0x1b401b0 TRACE              webrtcbin<br class="">
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1073:_collate_peer_connection_states:<webrtc><br class="">
> transceiver 0x1bed050 DTLS state: 0x3<br class="">
> 0:01:21.644678631  1090  0x1b401b0 TRACE              webrtcbin<br class="">
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1086:_collate_peer_connection_states:<webrtc><br class="">
> transceiver 0x1bed050 ICE state: 0x2<br class="">
> 0:01:21.644764381  1090  0x1b401b0 TRACE              webrtcbin<br class="">
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1131:_collate_peer_connection_states:<webrtc><br class="">
> ICE connection state: 0x6. DTLS connection state: 0x9<br class="">
> 0:01:21.644837673  1090  0x1b401b0 FIXME              webrtcbin<br class="">
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1189:_collate_peer_connection_states:<webrtc><br class="">
> Undefined situation detected, returning old state<br class="">
> 0:01:21.762102246  1090  0x1f1b7b0 WARN           dtlssrtpdemux<br class="">
> gst-plugins-bad-1.18.2/ext/dtls/gstdtlssrtpdemux.c:134:sink_chain:<dtlssrtpdemux2><br class="">
> received invalid buffer: 1<br class="">
> 0:01:21.769914036  1090  0x1f1b7b0 ERROR         dtlsconnection<br class="">
> gst-plugins-bad-1.18.2/ext/dtls/gstdtlsconnection.c:985:handle_error:<GstDtlsConnection@0x1da56f0><br class="">
> Fatal SSL error<br class="">
> 0:01:21.770157620  1090  0x1f1b7b0 ERROR         dtlsconnection<br class="">
> gst-plugins-bad-1.18.2/ext/dtls/gstdtlsconnection.c:968:ssl_err_cb:<GstDtlsConnection@0x1da56f0><br class="">
> ssl error:<br class="">
> 2947169560:error:14102410:lib(20):func(258):reason(1040):NA:0:SSL alert<br class="">
> number 40<br class="">
><br class="">
> 0:01:21.770551453  1090  0x1f1b7b0 ERROR                dtlsdec<br class="">
> gst-plugins-bad-1.18.2/ext/dtls/gstdtlsdec.c:502:process_buffer:<dtlsdec2><br class="">
> Error processing buffer: Fatal SSL error<br class="">
> 0:01:21.770553453  1090  0x1b401b0 TRACE              webrtcbin<br class="">
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1073:_collate_peer_connection_states:<webrtc><br class="">
> transceiver 0x1ab0f08 DTLS state: 0x0<br class="">
> 0:01:21.770745245  1090  0x1b401b0 TRACE              webrtcbin<br class="">
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1086:_collate_peer_connection_states:<webrtc><br class="">
> transceiver 0x1ab0f08 ICE state: 0x1<br class="">
> 0:01:21.770861286  1090  0x1b401b0 TRACE              webrtcbin<br class="">
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1073:_collate_peer_connection_states:<webrtc><br class="">
> transceiver 0x1bed050 DTLS state: 0x2<br class="">
> 0:01:21.770951120  1090  0x1b401b0 TRACE              webrtcbin<br class="">
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1086:_collate_peer_connection_states:<webrtc><br class="">
> transceiver 0x1bed050 ICE state: 0x2<br class="">
> 0:01:21.771039203  1090  0x1b401b0 TRACE              webrtcbin<br class="">
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1131:_collate_peer_connection_states:<webrtc><br class="">
> ICE connection state: 0x6. DTLS connection state: 0x5<br class="">
> 0:01:21.771119036  1090  0x1b401b0 TRACE              webrtcbin<br class="">
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1145:_collate_peer_connection_states:<webrtc><br class="">
> returning failed<br class="">
> 0:01:21.771230036  1090  0x1b401b0 INFO               webrtcbin<br class="">
> gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1295:_update_peer_connection_state_task:<webrtc><br class="">
> Peer connection state change from connecting(1) to failed(4)<br class="">
> [CAMERA_DEBUG] Peer connection state: failed<br class="">
> 0:01:21.770664245  1090  0x1f1b7b0 WARN                 dtlsdec<br class="">
> gst-plugins-bad-1.18.2/ext/dtls/gstdtlsdec.c:503:process_buffer:<dtlsdec2><br class="">
> error: Fatal SSL error<br class="">
> 0:01:21.772238245  1090  0x1f1b7b0 ERROR                dtlsdec<br class="">
> gst-plugins-bad-1.18.2/ext/dtls/gstdtlsdec.c:618:sink_chain:<dtlsdec2><br class="">
> Failed to process buffer: error<br class="">
> 0:01:21.808121366  1090  0x1f1ba90 WARN                 basesrc<br class="">
> gstreamer-1.18.2/libs/gst/base/gstbasesrc.c:3127:gst_base_src_loop:<nicesrc2><br class="">
> error: Internal data stream error.<br class="">
> 0:01:21.808266866  1090  0x1f1ba90 WARN                 basesrc<br class="">
> gstreamer-1.18.2/libs/gst/base/gstbasesrc.c:3127:gst_base_src_loop:<nicesrc2><br class="">
> error: streaming stopped, reason error (-5)<br class="">
> 0:01:21.809681158  1090  0x1f1ba90 WARN                   queue<br class="">
> gstreamer-1.18.2/plugins/elements/gstqueue.c:990:gst_queue_handle_sink_event:<queue8><br class="">
> error: Internal data stream error.<br class="">
> 0:01:21.809811158  1090  0x1f1ba90 WARN                   queue<br class="">
> gstreamer-1.18.2/plugins/elements/gstqueue.c:990:gst_queue_handle_sink_event:<queue8><br class="">
> error: streaming stopped, reason error (-5)<br class="">
<br class="">
> _______________________________________________<br class="">
> gstreamer-devel mailing list<br class="">
> <a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer noreferrer" target="_blank" class="">gstreamer-devel@lists.freedesktop.org</a><br class="">
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer noreferrer" target="_blank" class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br class="">
<br class="">
_______________________________________________<br class="">
gstreamer-devel mailing list<br class="">
<a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer noreferrer" target="_blank" class="">gstreamer-devel@lists.freedesktop.org</a><br class="">
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer noreferrer" target="_blank" class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br class="">
</blockquote></div>
</blockquote></div>
<div class=""><log_v536.txt></div></div></blockquote></div>_______________________________________________<br class="">
gstreamer-devel mailing list<br class="">
<a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer noreferrer" target="_blank" class="">gstreamer-devel@lists.freedesktop.org</a><br class="">
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer noreferrer" target="_blank" class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br class="">
</blockquote></div></div></div>
<span class="">_______________________________________________</span><br class=""><span class="">gstreamer-devel mailing list</span><br class=""><span class=""><a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer" target="_blank" class="">gstreamer-devel@lists.freedesktop.org</a></span><br class=""><span class=""><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank" class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></span><br class=""></div></blockquote></div></blockquote></div>
_______________________________________________<br class="">
gstreamer-devel mailing list<br class="">
<a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer" target="_blank" class="">gstreamer-devel@lists.freedesktop.org</a><br class="">
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank" class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br class="">
</blockquote></div>
_______________________________________________<br class="">
gstreamer-devel mailing list<br class="">
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" class="">gstreamer-devel@lists.freedesktop.org</a><br class="">
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank" class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br class="">
</blockquote></div>
_______________________________________________<br class="">
gstreamer-devel mailing list<br class="">
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" class="">gstreamer-devel@lists.freedesktop.org</a><br class="">
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank" class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br class="">
</blockquote></div>
_______________________________________________<br class="">gstreamer-devel mailing list<br class=""><a href="mailto:gstreamer-devel@lists.freedesktop.org" class="">gstreamer-devel@lists.freedesktop.org</a><br class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br class=""></div></blockquote></div><br class=""></div></body></html>