mirror of
https://github.com/nostar/urfd.git
synced 2026-11-08 12:26:46 +00:00
Add more info to output strings for orphaned frames and lete entries
This commit is contained in:
1 parent
7132f632ab
commit
f6c6807c50
3 files changed
+8
-5
No files matched your search
@@ -676,7 +676,9 @@ bool CDmrmmdvmProtocol::IsValidDvFramePacket(const CIp &Ip, const CBuffer &Buffe
|
||||
auto stream = GetStream(uiStreamId, &Ip);
|
||||
if ( !stream )
|
||||
{
|
||||
std::cerr << "Late entry DMR voice frame, creating DMR header" << std::endl;
|
||||
std::cout << std::showbase << std::hex;
|
||||
std::cout << "Late entry DMR voice frame, creating DMR header for DMR stream ID " << ntohl(uiStreamId) << std::noshowbase << std::dec << " on " << Ip << std::endl;
|
||||
std::cout << std::noshowbase << std::dec;
|
||||
uint8_t cmd;
|
||||
|
||||
// link/unlink command ?
|
||||
|
||||
@@ -138,13 +138,14 @@ void CProtocol::OnDvFramePacketIn(std::unique_ptr<CDvFramePacket> &Frame, const
|
||||
// and push
|
||||
stream->Push(std::move(Frame));
|
||||
}
|
||||
#ifdef DEBUG
|
||||
//#ifdef DEBUG
|
||||
else
|
||||
{
|
||||
std::cout << "Orphaned Frame with ID " << Frame->GetStreamId() << " on " << *Ip << std::endl;
|
||||
std::cout << std::showbase << std::hex;
|
||||
std::cout << "Orphaned Frame with ID " << ntohs(Frame->GetStreamId()) << std::noshowbase << std::dec << " on " << *Ip << std::endl;
|
||||
Frame.reset();
|
||||
}
|
||||
#endif
|
||||
//#endif
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -514,7 +514,7 @@ bool CYsfProtocol::IsValidDvFramePacket(const CIp &Ip, const CYSFFICH &Fich, con
|
||||
auto stream = GetStream(uiStreamId, &Ip);
|
||||
if ( !stream )
|
||||
{
|
||||
std::cerr << "Late entry YSF voice frame, creating YSF header" << std::endl;
|
||||
std::cerr << "Late entry YSF voice frame, creating YSF header on " << Ip << std::endl;
|
||||
CCallsign csMY;
|
||||
char sz[YSF_CALLSIGN_LENGTH+1];
|
||||
memcpy(sz, &(Buffer.data()[14]), YSF_CALLSIGN_LENGTH);
|
||||
|
||||
Reference in new issue
Block a user