<div dir="ltr"><div dir="ltr">Please assist me to solve the issue below. <div>I observe WebRTC peer connection can't be established. </div><div>In log I see some errors related to dtls. Please help me understand the log below and get the issue resolved:</div><div><br></div><div><div>0:01:21.644288173  1090  0x1b401b0 TRACE              webrtcbin gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1073:_collate_peer_connection_states:<webrtc> transceiver 0x1ab0f08 DTLS state: 0x0</div><div>0:01:21.644405214  1090  0x1b401b0 TRACE              webrtcbin gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1086:_collate_peer_connection_states:<webrtc> transceiver 0x1ab0f08 ICE state: 0x1</div><div>0:01:21.644569089  1090  0x1b401b0 TRACE              webrtcbin gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1073:_collate_peer_connection_states:<webrtc> transceiver 0x1bed050 DTLS state: 0x3</div><div>0:01:21.644678631  1090  0x1b401b0 TRACE              webrtcbin gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1086:_collate_peer_connection_states:<webrtc> transceiver 0x1bed050 ICE state: 0x2</div><div>0:01:21.644764381  1090  0x1b401b0 TRACE              webrtcbin gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1131:_collate_peer_connection_states:<webrtc> ICE connection state: 0x6. DTLS connection state: 0x9</div><div>0:01:21.644837673  1090  0x1b401b0 FIXME              webrtcbin gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1189:_collate_peer_connection_states:<webrtc> Undefined situation detected, returning old state</div><div>0:01:21.762102246  1090  0x1f1b7b0 WARN           dtlssrtpdemux gst-plugins-bad-1.18.2/ext/dtls/gstdtlssrtpdemux.c:134:sink_chain:<dtlssrtpdemux2> received invalid buffer: 1</div><div>0:01:21.769914036  1090  0x1f1b7b0 ERROR         dtlsconnection gst-plugins-bad-1.18.2/ext/dtls/gstdtlsconnection.c:985:handle_error:<GstDtlsConnection@0x1da56f0> Fatal SSL error</div><div>0:01:21.770157620  1090  0x1f1b7b0 ERROR         dtlsconnection gst-plugins-bad-1.18.2/ext/dtls/gstdtlsconnection.c:968:ssl_err_cb:<GstDtlsConnection@0x1da56f0> ssl error: 2947169560:error:14102410:lib(20):func(258):reason(1040):NA:0:SSL alert number 40</div><div><br></div><div>0:01:21.770551453  1090  0x1f1b7b0 ERROR                dtlsdec gst-plugins-bad-1.18.2/ext/dtls/gstdtlsdec.c:502:process_buffer:<dtlsdec2> Error processing buffer: Fatal SSL error</div><div>0:01:21.770553453  1090  0x1b401b0 TRACE              webrtcbin gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1073:_collate_peer_connection_states:<webrtc> transceiver 0x1ab0f08 DTLS state: 0x0</div><div>0:01:21.770745245  1090  0x1b401b0 TRACE              webrtcbin gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1086:_collate_peer_connection_states:<webrtc> transceiver 0x1ab0f08 ICE state: 0x1</div><div>0:01:21.770861286  1090  0x1b401b0 TRACE              webrtcbin gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1073:_collate_peer_connection_states:<webrtc> transceiver 0x1bed050 DTLS state: 0x2</div><div>0:01:21.770951120  1090  0x1b401b0 TRACE              webrtcbin gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1086:_collate_peer_connection_states:<webrtc> transceiver 0x1bed050 ICE state: 0x2</div><div>0:01:21.771039203  1090  0x1b401b0 TRACE              webrtcbin gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1131:_collate_peer_connection_states:<webrtc> ICE connection state: 0x6. DTLS connection state: 0x5</div><div>0:01:21.771119036  1090  0x1b401b0 TRACE              webrtcbin gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1145:_collate_peer_connection_states:<webrtc> returning failed</div><div>0:01:21.771230036  1090  0x1b401b0 INFO               webrtcbin gst-plugins-bad-1.18.2/ext/webrtc/gstwebrtcbin.c:1295:_update_peer_connection_state_task:<webrtc> Peer connection state change from connecting(1) to failed(4)</div><div>[CAMERA_DEBUG] Peer connection state: failed</div><div>0:01:21.770664245  1090  0x1f1b7b0 WARN                 dtlsdec gst-plugins-bad-1.18.2/ext/dtls/gstdtlsdec.c:503:process_buffer:<dtlsdec2> error: Fatal SSL error</div><div>0:01:21.772238245  1090  0x1f1b7b0 ERROR                dtlsdec gst-plugins-bad-1.18.2/ext/dtls/gstdtlsdec.c:618:sink_chain:<dtlsdec2> Failed to process buffer: error</div><div>0:01:21.808121366  1090  0x1f1ba90 WARN                 basesrc gstreamer-1.18.2/libs/gst/base/gstbasesrc.c:3127:gst_base_src_loop:<nicesrc2> error: Internal data stream error.</div><div>0:01:21.808266866  1090  0x1f1ba90 WARN                 basesrc gstreamer-1.18.2/libs/gst/base/gstbasesrc.c:3127:gst_base_src_loop:<nicesrc2> error: streaming stopped, reason error (-5)</div><div>0:01:21.809681158  1090  0x1f1ba90 WARN                   queue gstreamer-1.18.2/plugins/elements/gstqueue.c:990:gst_queue_handle_sink_event:<queue8> error: Internal data stream error.</div><div>0:01:21.809811158  1090  0x1f1ba90 WARN                   queue gstreamer-1.18.2/plugins/elements/gstqueue.c:990:gst_queue_handle_sink_event:<queue8> error: streaming stopped, reason error (-5)</div></div><div><br></div></div></div>