Browse Source

Added some logging

Paul-Louis Ageneau 5 years ago
parent
commit
8bc016cc08
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/dtlssrtptransport.cpp

+ 3 - 0
src/dtlssrtptransport.cpp

@@ -106,9 +106,12 @@ void DtlsSrtpTransport::incoming(message_ptr message) {
 	// RTP (or RTCP [...]). If the value is between 20 and 63 (inclusive), the packet is DTLS.
 	uint8_t value = to_integer<uint8_t>(*message->begin());
 
+	PLOG_VERBOSE << "Demultiplexing packet with first byte, value=" << unsigned(value);
+
 	if (value >= 128 && value <= 191) {
 		PLOG_VERBOSE << "Incoming DTLS packet, size=" << size;
 		DtlsTransport::incoming(message);
+
 	} else if (value >= 20 && value <= 63) {
 		PLOG_VERBOSE << "Incoming SRTP packet, size=" << size;