Repository navigation
Plugins: the names of a call's patched talkgroups (CallInfo.patched, SDK 0.15.1) - #226
Merged
Merged
Conversation
CallInfo.patched (Vec<TalkgroupName { talkgroup, alpha_tag }>) replaces the
index-matched patched_talkgroup_tags: the talkgroups patched with the call's
own, each with its name, as CallInfo.sources names units. Session::patched
builds it for plugins' events and the dashboard's calls alike, so the call's
own talkgroup needs no special case (talkgroup_tag names it).
The simplestream doc change waits for the plugin release that does it.
Co-Authored-By: Claude <noreply@anthropic.com>
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces #224 by @aknitt-rsos, whose commit is kept here. The idea is theirs and is unchanged; the shape of the field is different. (This is a new PR only because maintainer edits could not be pushed to the fork.)
What
Plugins are told the names of the talkgroups patched with a call.
CallInfo.patched: Vec<TalkgroupName { talkgroup, alpha_tag }>(SDK 0.15.1, additive). It lists the talkgroups patched with the call's own, each with its alpha tag. The call's own talkgroup is not in it:talkgroup_tagnames that one. Empty when the call isn't patched.Session::patchedbuilds the list for plugins' events and for the dashboard's calls.a_calls_patched_talkgroups_are_namedinsession.rschecks the plugin event, the dashboard's call and the JSON on the wire against each other.docs/plugins/writing-plugins.md,docs/developer/architecture.html, CHANGELOG.Why
A plugin that streams audio only (no call start packets) needs the names to label each transmission. Without this, a patched call can only be named by its own tag, or by the numbers of the patch.
Changes from #224
patched_talkgroup_tags. Plugins: patched_talkgroup_tags on CallInfo (SDK 0.15.1) #224 added a list of tags matched topatched_talkgroupsby index. This followsunits/sourceson the same struct, so a plugin doesn't pair two lists.Session::patched, and the special case for the call's own talkgroup is gone.docs/plugins/simplestream.mdis unchanged. Plugins: patched_talkgroup_tags on CallInfo (SDK 0.15.1) #224 described simplestream behaviour that isn't released; that belongs with the plugin's release.For a plugin that wants the tags as one list, the call's own first:
std::iter::once(&call.talkgroup_tag).chain(call.patched.iter().map(|p| &p.alpha_tag))Notes for review
🤖 Generated with Claude Code