Merge pull request #142 from DVSwitch/master

Fix remote command speech responses
This commit is contained in:
Jonathan Naylor 2020-10-08 11:29:02 +01:00 committed by GitHub
commit ab16818931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 3 deletions

View File

@ -396,8 +396,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);
@ -415,8 +417,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);
@ -438,8 +442,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);