From c861c3303e14bea0d9986c15e22e44adbbf10317 Mon Sep 17 00:00:00 2001 From: Andy Taylor Date: Tue, 28 Apr 2020 21:49:32 +0100 Subject: [PATCH] Update YSF2NXDN.cpp If the Source id is 9999 (MMDVM) then do not resolve the Destination id, it will be a TG number and NOT a User. --- YSF2NXDN/YSF2NXDN.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/YSF2NXDN/YSF2NXDN.cpp b/YSF2NXDN/YSF2NXDN.cpp index 4838e3d..aa08f5d 100644 --- a/YSF2NXDN/YSF2NXDN.cpp +++ b/YSF2NXDN/YSF2NXDN.cpp @@ -545,7 +545,8 @@ int CYSF2NXDN::run() ::memcpy(gps_buffer + 10U, dt2_temp, 10U); m_netSrc = m_lookup->findCS(srcId); - m_netDst = m_lookup->findCS(dstId); + //m_netDst = m_lookup->findCS(dstId); + if (srcId != 9999U) { m_netDst = m_lookup->findCS(dstId); } else { m_netDst = std::to_string(dstId); } LogMessage("Received NXDN Header: Src: %s Dst: %s", m_netSrc.c_str(), m_netDst.c_str()); m_conv.putNXDNHeader();