         // generate random bytes
 
         
-        
+        qosLog.debug("======Send===========sequenceNumber=======\(packet.header.sequenceNumber)")
 //        let payloadBytes = UnsafeMutableRawPointer.allocate(byteCount: payloadSize, alignment: 0)
 //        let customDealocator = Data.Deallocator.custom { (ptr, length) in
 //            ptr.deallocate()

        if let rtpPacket = RTPPacket.fromData(packetData) {
            // put packet in data list
            uniqueQueue.sync {
                rtpControlDataList[rtpPacket.header.sequenceNumber] = RTPControlData(rtpPacket: rtpPacket, receivedNS: receivedNS)
            }
            // !! TODO: EXC_BAD_ACCESS at this line?

            portIn: testObject.portIn
        )

        qosLog.debug("=================numPackets=======\(numPackets)")
        udpStreamSender = UDPStreamSender(settings: settings)
        udpStreamSender.delegate = self

