Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Emergency flag not toggling correctly #606

Closed
bctrainers opened this issue Jan 14, 2022 · 4 comments
Closed

Bug: Emergency flag not toggling correctly #606

bctrainers opened this issue Jan 14, 2022 · 4 comments
Assignees
Labels

Comments

@bctrainers
Copy link

The emergency flag on audio transmissions per the JSON is not being persistently set correctly.

When a radio user pokes the emergency button on their radio, and they are the first radio activation to a talkgroup broadcast sequence recorded, trunk-recorder will set emergency in the JSON to true.

If a talkgroup already has a recorder active, be it just due to the persistent use of other users on the TG or the callTimeout value not being met, and the radio user pokes the emergency button, the emergency flag will never be toggled on with TR.

Example:

'RadioEmerg' is the radio user poking the emerg button.
'Radio A', 'Radio B' are just users using a talk group.

Works as intended:

RadioEmerg -> RadioA -> RadioB

The emerg flag is then set to true in the json.

Does not work as intended:

RadioA -> RadioB -> RadioEmerg
RadioA -> RadioEmerg -> RadioB

The emerg flag is never set to true in the JSON.

@robotastic robotastic added the bug label Jan 21, 2022
@robotastic robotastic self-assigned this Jan 21, 2022
@robotastic
Copy link
Collaborator

Agreed! What would be the ideal flow? Should a single transmission that is part of a call mark the whole call as being emergency? This seems decent, so it wouldn't be missed. I could also try to track it at the transmission level... or do both. That way you could tell which radio had set it.

It is difficult for me to test this stuff out. I am not sure if I have ever seen it toggled to be honest.

I will go research some options.

@ZeroChaos-
Copy link

I would vote for "both". As you said, marking the whole file makes it harder to miss, but marking the specific transmission avoids lost clarity.

@bctrainers
Copy link
Author

@robotastic circuit breaker like. Once it is toggled on any given radio activation, it remains on for the call recorded.

@rosecitytransit
Copy link
Contributor

related to this, does only the control channel get monitored for emergency flags or also voice channel messages, which also have Service Options fields? I know doing both could get a little messy since it would involve getting the data from OP25.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants