<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">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" 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" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="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" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>
</blockquote></div>