From a277a82b1751939e866128a66cc948caa3d2fb74 Mon Sep 17 00:00:00 2001 From: Steve N4IRS Date: Mon, 28 Sep 2020 23:28:27 +0000 Subject: [PATCH] Fix remote command speech responses --- P25Gateway/P25Gateway.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/P25Gateway/P25Gateway.cpp b/P25Gateway/P25Gateway.cpp index 9d220b1..c3ac267 100644 --- a/P25Gateway/P25Gateway.cpp +++ b/P25Gateway/P25Gateway.cpp @@ -392,8 +392,10 @@ void CP25Gateway::run() if (reflector == NULL && currentId != 9999U) { LogMessage("Unlinked from reflector %u by remote command", currentId); - if (voice != NULL) + if (voice != NULL) { voice->unlinked(); + voice->eof(); + } remoteNetwork.writeUnlink(currentAddr, currentPort); remoteNetwork.writeUnlink(currentAddr, currentPort); @@ -411,8 +413,10 @@ void CP25Gateway::run() LogMessage("Linked to reflector %u by remote command", currentId); - if (voice != NULL) + if (voice != NULL) { voice->linkedTo(currentId); + voice->eof(); + } remoteNetwork.writePoll(currentAddr, currentPort); remoteNetwork.writePoll(currentAddr, currentPort); @@ -434,8 +438,10 @@ void CP25Gateway::run() LogMessage("Linked to reflector %u by remote command", currentId); - if (voice != NULL) + if (voice != NULL) { voice->linkedTo(currentId); + voice->eof(); + } remoteNetwork.writePoll(currentAddr, currentPort); remoteNetwork.writePoll(currentAddr, currentPort);