From ce74a799c15aa7f007eb3f0599e92b0a61b32688 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 16 Sep 2016 10:49:12 +0100 Subject: [PATCH] Fix TG9 handling on rewrite --- DMRAccessControl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DMRAccessControl.cpp b/DMRAccessControl.cpp index 637a6ef..d560380 100644 --- a/DMRAccessControl.cpp +++ b/DMRAccessControl.cpp @@ -217,8 +217,8 @@ unsigned int DMRAccessControl::DstIdRewrite (unsigned int did, unsigned int sid, return 0; } } else { - if (did == 9 && (m_time + m_callHang) > currenttime) { - LogMessage("DMR Slot %u, Rewrite DST ID (TG) of outbound network traffic from %u to %u (return traffic during CallHang)",slot,sid,m_dstRewriteID); + if (did == 9 && m_dstRewriteID != 9 && (m_time + m_callHang) > currenttime) { + LogMessage("DMR Slot %u, Rewrite DST ID (TG) of outbound network traffic from %u to %u (return traffic during CallHang)",slot,did,m_dstRewriteID); return(m_dstRewriteID); } else { return(0);