Log when DTLS-SRTP has errors

This commit is contained in:
Marvin W 2021-11-09 22:06:50 +01:00 committed by fiaxh
parent 6fa5702e9c
commit c9194973de

View file

@ -252,8 +252,12 @@ public class Dino.Plugins.Ice.TransportParameters : JingleIceUdp.IceUdpTransport
if (stream_id != this.stream_id) return; if (stream_id != this.stream_id) return;
uint8[] decrypt_data = null; uint8[] decrypt_data = null;
if (dtls_srtp_handler != null) { if (dtls_srtp_handler != null) {
try {
decrypt_data = dtls_srtp_handler.process_incoming_data(component_id, data); decrypt_data = dtls_srtp_handler.process_incoming_data(component_id, data);
if (decrypt_data == null) return; if (decrypt_data == null) return;
} catch (Crypto.Error e) {
warning("%s while on_recv stream %u component %u", e.message, stream_id, component_id);
}
} }
may_consider_ready(stream_id, component_id); may_consider_ready(stream_id, component_id);
if (connections.has_key((uint8) component_id)) { if (connections.has_key((uint8) component_id)) {