mirror of
https://github.com/ShaYmez/P25Clients.git
synced 2026-06-17 13:18:44 -04:00
Fix remote command speech responses
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user