mirror of
https://github.com/ShaYmez/P25Clients.git
synced 2025-09-03 13:47:52 -04:00
Merge pull request #142 from DVSwitch/master
Fix remote command speech responses
This commit is contained in:
commit
ab16818931
@ -396,8 +396,10 @@ void CP25Gateway::run()
|
|||||||
if (reflector == NULL && currentId != 9999U) {
|
if (reflector == NULL && currentId != 9999U) {
|
||||||
LogMessage("Unlinked from reflector %u by remote command", currentId);
|
LogMessage("Unlinked from reflector %u by remote command", currentId);
|
||||||
|
|
||||||
if (voice != NULL)
|
if (voice != NULL) {
|
||||||
voice->unlinked();
|
voice->unlinked();
|
||||||
|
voice->eof();
|
||||||
|
}
|
||||||
|
|
||||||
remoteNetwork.writeUnlink(currentAddr, currentPort);
|
remoteNetwork.writeUnlink(currentAddr, currentPort);
|
||||||
remoteNetwork.writeUnlink(currentAddr, currentPort);
|
remoteNetwork.writeUnlink(currentAddr, currentPort);
|
||||||
@ -415,8 +417,10 @@ void CP25Gateway::run()
|
|||||||
|
|
||||||
LogMessage("Linked to reflector %u by remote command", currentId);
|
LogMessage("Linked to reflector %u by remote command", currentId);
|
||||||
|
|
||||||
if (voice != NULL)
|
if (voice != NULL) {
|
||||||
voice->linkedTo(currentId);
|
voice->linkedTo(currentId);
|
||||||
|
voice->eof();
|
||||||
|
}
|
||||||
|
|
||||||
remoteNetwork.writePoll(currentAddr, currentPort);
|
remoteNetwork.writePoll(currentAddr, currentPort);
|
||||||
remoteNetwork.writePoll(currentAddr, currentPort);
|
remoteNetwork.writePoll(currentAddr, currentPort);
|
||||||
@ -438,8 +442,10 @@ void CP25Gateway::run()
|
|||||||
|
|
||||||
LogMessage("Linked to reflector %u by remote command", currentId);
|
LogMessage("Linked to reflector %u by remote command", currentId);
|
||||||
|
|
||||||
if (voice != NULL)
|
if (voice != NULL) {
|
||||||
voice->linkedTo(currentId);
|
voice->linkedTo(currentId);
|
||||||
|
voice->eof();
|
||||||
|
}
|
||||||
|
|
||||||
remoteNetwork.writePoll(currentAddr, currentPort);
|
remoteNetwork.writePoll(currentAddr, currentPort);
|
||||||
remoteNetwork.writePoll(currentAddr, currentPort);
|
remoteNetwork.writePoll(currentAddr, currentPort);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user