Class DebugTransformEngine

  • All Implemented Interfaces:
    TransformEngine

    public class DebugTransformEngine
    extends Object
    implements TransformEngine
    Logs all the packets that go in and out of a MediaStream. In order to use it, you can setup logging like this:
     net.java.sip.communicator.packetlogging.PACKET_LOGGING_ENABLED=true
     net.java.sip.communicator.packetlogging.PACKET_LOGGING_ARBITRARY_ENABLED=true
     net.java.sip.communicator.packetlogging.PACKET_LOGGING_FILE_COUNT=1
     net.java.sip.communicator.packetlogging.PACKET_LOGGING_FILE_SIZE=-1
     
    Next, you setup a named pipe like this:
     mkfifo ~/.sip-communicator/log/jitsi0.pcap
     
    Finally, you can launch Wireshark like this (assuming that you're using Bash):
     wireshark -k -i <(cat ~/.sip-communicator/log/jitsi0.pcap)
     
    Author:
    George Politis, Lyubomir Marinov
    • Method Detail

      • createDebugTransformEngine

        public static DebugTransformEngine createDebugTransformEngine​(MediaStreamImpl mediaStream)
        Creates and returns a new DebugTransformEngine if logging is enabled for PacketLoggingService.ProtocolName.ARBITRARY.
        Parameters:
        mediaStream - the MediaStream that will own the newly created DebugTransformEngine.
        Returns:
        a new DebugTransformEngine if logging is enabled for PacketLoggingService.ProtocolName.ARBITRARY, otherwise null.