From e4fc88d873c9da346bb7b78c327346c6d3bbfd6d Mon Sep 17 00:00:00 2001 From: aaknitt Date: Mon, 23 Nov 2026 17:26:57 -0600 Subject: [PATCH 1/7] Audio packets carry the talkgroup tags; call start names every patched talkgroup --- CHANGELOG.md | 8 ++++++++ Cargo.toml | 3 ++- README.md | 7 +++++-- src/main.rs | 49 ++++++++++++++++++++++++++++++++++++++++++++++--- 4 files changed, 61 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 610a15d..005d85f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [Unreleased] + +- Audio packets with JSON now carry `patched_talkgroup_tags` (the call's own talkgroup's tag, then those of the + talkgroups patched with it; none when no tag is known), as Trunk Recorder's simplestream can, so a receiver that + names a transmission by them needs no call start packets. A call start's list now has every patched talkgroup's tag, + not only the call's own. +- Needs trunk-recorder-plugin 0.15.1, which tells it the tags of a call's patched talkgroups. + ## [0.1.5] - Built with trunk-recorder-plugin 0.5.0, for Trunk Recorder Pro v0.2.0: systems are numbered diff --git a/Cargo.toml b/Cargo.toml index 3eac565..4549afd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,8 @@ authors = ["Luke Berndt "] publish = false [dependencies] -trunk-recorder-plugin = "0.13.0" +# Until trunk-recorder-plugin 0.15.1 is on crates.io: the SDK from the Trunk Recorder Pro branch that has it. +trunk-recorder-plugin = { git = "https://github.com/aknitt-rsos/trunk-recorder-pro", branch = "patched-talkgroup-tags" } schemars = "1" serde = { version = "1", features = ["derive"] } serde_json = "1" diff --git a/README.md b/README.md index 88eba86..b0b1371 100644 --- a/README.md +++ b/README.md @@ -42,10 +42,13 @@ Each packet is one slice of audio, with, depending on the settings: - **JSON:** its length in 4 bytes, little-endian, then the JSON, then the audio: ```json - {"audio_sample_rate":8000,"event":"audio","freq":851012500,"patched_talkgroups":[101], - "short_name":"county","src":1234,"src_tag":"","talkgroup":101} + {"audio_sample_rate":8000,"event":"audio","freq":851012500,"patched_talkgroup_tags":["Fire Dispatch"], + "patched_talkgroups":[101],"short_name":"county","src":1234,"src_tag":"","talkgroup":101} ``` + `patched_talkgroup_tags` is the tag of the call's talkgroup, then of each one + patched with it (one with no tag is left out); it's missing when none has a tag. + A call start is the same with `"event":"call_start"` (plus `talkgroup_tag` and `patched_talkgroup_tags`) and no audio; a call end has `talkgroup`, `patched_talkgroups`, `freq`, `short_name` and `"event":"call_end"`. diff --git a/src/main.rs b/src/main.rs index 6735749..8af2d86 100644 --- a/src/main.rs +++ b/src/main.rs @@ -176,9 +176,9 @@ impl Plugin for SimpleStream { } let short_name = call.short_name.clone(); let talkgroups = talkgroups(&call); + let tags = tags(&call); for o in self.outs.iter().filter(|o| o.stream.send_json && o.stream.send_call_start && o.wants_system(&short_name)) { if o.stream.talkgroup_of(&talkgroups).is_some() { - let tags: Vec<&str> = if call.talkgroup_tag.is_empty() { vec![] } else { vec![call.talkgroup_tag.as_str()] }; let j = json!({ "src": src(&call), "src_tag": "", @@ -204,10 +204,11 @@ impl Plugin for SimpleStream { let call = self.calls.get(&chunk.call_id).or_else(twin); let short_name = chunk.short_name.as_str(); let talkgroups = call.map_or(vec![chunk.talkgroup], talkgroups); + let tags = call.map_or(vec![], tags); for o in self.outs.iter().filter(|o| o.wants_system(short_name)) { let Some(tg) = o.stream.talkgroup_of(&talkgroups) else { continue }; let p = if o.stream.send_json { - let j = json!({ + let mut j = json!({ "src": call.map_or(-1, src), "src_tag": "", "talkgroup": tg, @@ -217,6 +218,10 @@ impl Plugin for SimpleStream { "audio_sample_rate": chunk.sample_rate, "event": "audio", }); + // (Left out when there are none, as Trunk Recorder's is: a receiver falls back to the numbers.) + if !tags.is_empty() { + j["patched_talkgroup_tags"] = json!(tags); + } packet(Some(&j), None, &pcm) } else { packet(None, o.stream.send_tgid.then_some(tg), &pcm) @@ -264,6 +269,13 @@ fn talkgroups(c: &CallInfo) -> Vec { v } +/// The tags of [`talkgroups`], in its order: the call's own, then each one patched with it +/// (a talkgroup with no tag is left out, as Trunk Recorder leaves it). +fn tags(c: &CallInfo) -> Vec { + let patched = c.patched_talkgroups.iter().zip(&c.patched_talkgroup_tags).filter(|&(&t, _)| t != c.talkgroup).map(|(_, tag)| tag); + std::iter::once(&c.talkgroup_tag).chain(patched).filter(|t| !t.is_empty()).cloned().collect() +} + /// The radio talking (the last heard), or -1. fn src(c: &CallInfo) -> i64 { c.units.last().map_or(-1, |&u| u as i64) @@ -302,6 +314,7 @@ mod tests { use trunk_recorder_plugin::{EXIT_CONFIG, HostMessage}; fn call(id: u32, tg: u32, patched: Vec) -> CallInfo { + let patched_tags = patched.iter().map(|t| format!("TG {t}")).collect(); CallInfo { id, system: 0, @@ -312,6 +325,7 @@ mod tests { recording: true, units: vec![1234], patched_talkgroups: patched, + patched_talkgroup_tags: patched_tags, ..Default::default() } } @@ -408,11 +422,14 @@ mod tests { assert_eq!(start["event"], "call_start"); assert_eq!(start["talkgroup"], 101); assert_eq!(start["patched_talkgroups"], json!([101, 202])); + assert_eq!(start["talkgroup_tag"], "TG 101"); + assert_eq!(start["patched_talkgroup_tags"], json!(["TG 101", "TG 202"])); assert_eq!(start["src"], 1234); assert_eq!(start["short_name"], "sys1"); let (a, pcm) = split(&recv(&s).unwrap()); assert_eq!(a["event"], "audio"); - // The talkgroup this stream is for. + // The talkgroup this stream is for, and the tags a call start has. + assert_eq!(a["patched_talkgroup_tags"], start["patched_talkgroup_tags"]); assert_eq!(a["talkgroup"], 202); assert_eq!(a["audio_sample_rate"], 8000); assert_eq!(a["freq"], 851012500u64); @@ -422,6 +439,32 @@ mod tests { assert_eq!(e["patched_talkgroups"], json!([101, 202])); } + /// Audio alone (no call start packets) names its talkgroups: the call's own when it isn't + /// patched, each one patched with it when it is. A receiver that names a transmission by them + /// would otherwise be left with the numbers; with none known, the key is left out. + #[test] + fn audio_names_its_talkgroups() { + let (s, url) = udp(); + let mut untagged = call(3, 303, vec![]); + untagged.talkgroup_tag = String::new(); + // (Patched with 202, which has no tag: it's left out.) + let mut half = call(4, 404, vec![202, 404]); + half.patched_talkgroup_tags = vec![String::new(), "TG 404".into()]; + testing::run::([ + hello(json!([{ "url": url, "TGID": 0, "sendJSON": true }])), + HostMessage::CallStart(call(1, 101, vec![])), + HostMessage::CallStart(call(2, 101, vec![101, 202])), + HostMessage::CallStart(untagged), + HostMessage::CallStart(half), + audio(1, 101, &[1]), + audio(2, 101, &[1]), + audio(3, 303, &[1]), + audio(4, 404, &[1]), + ]); + let tags: Vec = (0..4).map(|_| split(&recv(&s).unwrap()).0.get("patched_talkgroup_tags").cloned().unwrap_or(Value::Null)).collect(); + assert_eq!(tags, [json!(["TG 101"]), json!(["TG 101", "TG 202"]), Value::Null, json!(["TG 404"])]); + } + #[test] fn other_systems_are_left_out() { let (s, url) = udp(); From cd4eaa050eb512dfe1fdc194872e22b883bef91e Mon Sep 17 00:00:00 2001 From: aaknitt Date: Mon, 23 Nov 2026 17:30:31 -0600 Subject: [PATCH 2/7] Name the talking radio (src_tag) from the call's sources --- CHANGELOG.md | 2 ++ src/main.rs | 33 ++++++++++++++++++++++++++++++--- 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 005d85f..ad58613 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ talkgroups patched with it; none when no tag is known), as Trunk Recorder's simplestream can, so a receiver that names a transmission by them needs no call start packets. A call start's list now has every patched talkgroup's tag, not only the call's own. +- `src_tag` (the name of the radio talking, from the call's sources) is filled in on call starts and audio packets, + where it was always empty. It's empty when the call's sources didn't have a name when the call started. - Needs trunk-recorder-plugin 0.15.1, which tells it the tags of a call's patched talkgroups. ## [0.1.5] diff --git a/src/main.rs b/src/main.rs index 8af2d86..b66810b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -181,7 +181,7 @@ impl Plugin for SimpleStream { if o.stream.talkgroup_of(&talkgroups).is_some() { let j = json!({ "src": src(&call), - "src_tag": "", + "src_tag": src_tag(&call), "talkgroup": call.talkgroup, "talkgroup_tag": call.talkgroup_tag, "patched_talkgroups": talkgroups, @@ -210,7 +210,7 @@ impl Plugin for SimpleStream { let p = if o.stream.send_json { let mut j = json!({ "src": call.map_or(-1, src), - "src_tag": "", + "src_tag": call.map_or(String::new(), src_tag), "talkgroup": tg, "patched_talkgroups": talkgroups, "freq": call.map_or(0, |c| c.freq_hz), @@ -281,6 +281,12 @@ fn src(c: &CallInfo) -> i64 { c.units.last().map_or(-1, |&u| u as i64) } +/// The name of the radio talking, as [`src`] names it, from the call's sources; empty when none is known. +fn src_tag(c: &CallInfo) -> String { + let Some(&u) = c.units.last() else { return String::new() }; + c.sources.iter().rev().find(|s| s.unit == u).map(|s| s.tag.clone()).unwrap_or_default() +} + /// A packet: [JSON length (u32 LE), JSON] or [talkgroup (u32 LE)], then the samples. fn packet(j: Option<&Value>, tgid: Option, pcm: &[u8]) -> Vec { let mut p = Vec::with_capacity(pcm.len() + 256); @@ -311,7 +317,7 @@ mod tests { use std::io::Read; use std::net::{TcpListener, UdpSocket}; use trunk_recorder_plugin::testing; - use trunk_recorder_plugin::{EXIT_CONFIG, HostMessage}; + use trunk_recorder_plugin::{CallSource, EXIT_CONFIG, HostMessage}; fn call(id: u32, tg: u32, patched: Vec) -> CallInfo { let patched_tags = patched.iter().map(|t| format!("TG {t}")).collect(); @@ -465,6 +471,27 @@ mod tests { assert_eq!(tags, [json!(["TG 101"]), json!(["TG 101", "TG 202"]), Value::Null, json!(["TG 404"])]); } + /// The radio talking (the last heard) is named by the call's sources, on call start and audio. + #[test] + fn the_talking_radio_is_named() { + let (s, url) = udp(); + let mut c = call(1, 101, vec![]); + c.units = vec![1234, 5678]; + c.sources = vec![ + CallSource { unit: 1234, tag: "Engine 5".into(), ..Default::default() }, + CallSource { unit: 5678, tag: "Medic 2".into(), ..Default::default() }, + ]; + testing::run::([ + hello(json!([{ "url": url, "TGID": 0, "sendJSON": true, "sendCallStart": true }])), + HostMessage::CallStart(c), + audio(1, 101, &[1]), + ]); + let (start, _) = split(&recv(&s).unwrap()); + assert_eq!((start["src"].clone(), start["src_tag"].clone()), (json!(5678), json!("Medic 2")), "{start}"); + let (a, _) = split(&recv(&s).unwrap()); + assert_eq!((a["src"].clone(), a["src_tag"].clone()), (json!(5678), json!("Medic 2")), "{a}"); + } + #[test] fn other_systems_are_left_out() { let (s, url) = udp(); From cad1bc84d9bce88c74416b944d9f883fb289cdee Mon Sep 17 00:00:00 2001 From: aaknitt Date: Mon, 23 Nov 2026 17:33:05 -0600 Subject: [PATCH 3/7] Follow the talking radio through call updates, as the original simplestream does --- CHANGELOG.md | 5 +++-- src/main.rs | 30 +++++++++++++++++++++++++++++- 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ad58613..03cc7d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,8 +6,9 @@ talkgroups patched with it; none when no tag is known), as Trunk Recorder's simplestream can, so a receiver that names a transmission by them needs no call start packets. A call start's list now has every patched talkgroup's tag, not only the call's own. -- `src_tag` (the name of the radio talking, from the call's sources) is filled in on call starts and audio packets, - where it was always empty. It's empty when the call's sources didn't have a name when the call started. +- `src` and `src_tag` (the radio talking, and its name, from the call's sources) follow the call as it's updated, + as Trunk Recorder's simplestream does, instead of staying as they were when the call started. `src_tag` was + always empty before. - Needs trunk-recorder-plugin 0.15.1, which tells it the tags of a call's patched talkgroups. ## [0.1.5] diff --git a/src/main.rs b/src/main.rs index b66810b..029ade7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -126,7 +126,7 @@ impl Plugin for SimpleStream { fn manifest() -> Manifest { Manifest { name: "simplestream".into(), - subscribe: vec![topic::AUDIO.into(), topic::CALL_START.into(), topic::CALL_END.into()], + subscribe: vec![topic::AUDIO.into(), topic::CALL_START.into(), topic::CALL_UPDATE.into(), topic::CALL_END.into()], // A system can have streams of its own. system_overrides: vec!["streams".into()], ..trunk_recorder_plugin::manifest!() @@ -196,6 +196,13 @@ impl Plugin for SimpleStream { self.calls.insert(call.id, call); } + /// The call as it is now: the radio talking, and its name, as the recorder has them. + fn call_update(&mut self, call: CallInfo) { + if let Some(c) = self.calls.get_mut(&call.id) { + *c = call; + } + } + fn audio(&mut self, chunk: AudioChunk) { let pcm = base64::decode(&chunk.pcm); // A call heard on several sites plays from whichever copy has it: one that wasn't @@ -445,6 +452,27 @@ mod tests { assert_eq!(e["patched_talkgroups"], json!([101, 202])); } + /// A call's update says who is talking now: the audio after it names that radio, as the + /// recorder's simplestream does; the call's start didn't know them. + #[test] + fn the_talking_radio_follows_the_call() { + let (s, url) = udp(); + let mut later = call(1, 101, vec![]); + later.units = vec![1234, 5678]; + later.sources = vec![ + CallSource { unit: 1234, tag: "Engine 5".into(), ..Default::default() }, + CallSource { unit: 5678, tag: "Medic 2".into(), ..Default::default() }, + ]; + testing::run::([ + hello(json!([{ "url": url, "TGID": 0, "sendJSON": true }])), + HostMessage::CallStart(call(1, 101, vec![])), + HostMessage::CallUpdate(later), + audio(1, 101, &[1]), + ]); + let (a, _) = split(&recv(&s).unwrap()); + assert_eq!((a["src"].clone(), a["src_tag"].clone()), (json!(5678), json!("Medic 2")), "{a}"); + } + /// Audio alone (no call start packets) names its talkgroups: the call's own when it isn't /// patched, each one patched with it when it is. A receiver that names a transmission by them /// would otherwise be left with the numbers; with none known, the key is left out. From d134a679877f2f2827cf73da65bb73daeb4dbe50 Mon Sep 17 00:00:00 2001 From: Luke Berndt Date: Tue, 24 Nov 2026 08:36:40 -0500 Subject: [PATCH 4/7] Tags from CallInfo.patched (Trunk Recorder Pro #226) The SDK now lists the talkgroups patched with a call's own, each with its name, so the tags need no pairing of two lists by index. The packets are unchanged. Co-Authored-By: Claude --- Cargo.lock | 5 ++--- Cargo.toml | 2 +- src/main.rs | 11 +++++------ 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f7d023f..492d5ba 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -183,9 +183,8 @@ dependencies = [ [[package]] name = "trunk-recorder-plugin" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8263139858a5619cc7ae4bb192ed2ce726b6c95b7cbfbfb00a489e993b3ff0f1" +version = "0.15.1" +source = "git+https://github.com/TrunkRecorder/trunk-recorder-pro?branch=patched-talkgroups-named#abb8b128ad9637f9e75a02db997274f00448bd48" dependencies = [ "schemars", "serde", diff --git a/Cargo.toml b/Cargo.toml index 4549afd..4f3dd87 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ publish = false [dependencies] # Until trunk-recorder-plugin 0.15.1 is on crates.io: the SDK from the Trunk Recorder Pro branch that has it. -trunk-recorder-plugin = { git = "https://github.com/aknitt-rsos/trunk-recorder-pro", branch = "patched-talkgroup-tags" } +trunk-recorder-plugin = { git = "https://github.com/TrunkRecorder/trunk-recorder-pro", branch = "patched-talkgroups-named" } schemars = "1" serde = { version = "1", features = ["derive"] } serde_json = "1" diff --git a/src/main.rs b/src/main.rs index 029ade7..a2178c3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -279,8 +279,7 @@ fn talkgroups(c: &CallInfo) -> Vec { /// The tags of [`talkgroups`], in its order: the call's own, then each one patched with it /// (a talkgroup with no tag is left out, as Trunk Recorder leaves it). fn tags(c: &CallInfo) -> Vec { - let patched = c.patched_talkgroups.iter().zip(&c.patched_talkgroup_tags).filter(|&(&t, _)| t != c.talkgroup).map(|(_, tag)| tag); - std::iter::once(&c.talkgroup_tag).chain(patched).filter(|t| !t.is_empty()).cloned().collect() + std::iter::once(&c.talkgroup_tag).chain(c.patched.iter().map(|p| &p.alpha_tag)).filter(|t| !t.is_empty()).cloned().collect() } /// The radio talking (the last heard), or -1. @@ -324,10 +323,10 @@ mod tests { use std::io::Read; use std::net::{TcpListener, UdpSocket}; use trunk_recorder_plugin::testing; - use trunk_recorder_plugin::{CallSource, EXIT_CONFIG, HostMessage}; + use trunk_recorder_plugin::{CallSource, EXIT_CONFIG, HostMessage, TalkgroupName}; fn call(id: u32, tg: u32, patched: Vec) -> CallInfo { - let patched_tags = patched.iter().map(|t| format!("TG {t}")).collect(); + let named = patched.iter().filter(|&&t| t != tg).map(|&t| TalkgroupName { talkgroup: t, alpha_tag: format!("TG {t}") }).collect(); CallInfo { id, system: 0, @@ -338,7 +337,7 @@ mod tests { recording: true, units: vec![1234], patched_talkgroups: patched, - patched_talkgroup_tags: patched_tags, + patched: named, ..Default::default() } } @@ -483,7 +482,7 @@ mod tests { untagged.talkgroup_tag = String::new(); // (Patched with 202, which has no tag: it's left out.) let mut half = call(4, 404, vec![202, 404]); - half.patched_talkgroup_tags = vec![String::new(), "TG 404".into()]; + half.patched[0].alpha_tag = String::new(); testing::run::([ hello(json!([{ "url": url, "TGID": 0, "sendJSON": true }])), HostMessage::CallStart(call(1, 101, vec![])), From 8ccd84f21f04489685c5dcd3c5f89e214e2fb567 Mon Sep 17 00:00:00 2001 From: Luke Berndt Date: Tue, 24 Nov 2026 09:02:30 -0500 Subject: [PATCH 5/7] CI: the manifest check knows the SDK's current topics (call.update) Co-Authored-By: Claude --- .github/check_manifest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/check_manifest.py b/.github/check_manifest.py index aa16bfe..43249c2 100644 --- a/.github/check_manifest.py +++ b/.github/check_manifest.py @@ -20,7 +20,7 @@ problems.append("repository: your plugin's GitHub URL, in Cargo.toml") if not m.get("subscribe"): problems.append("subscribe: a plugin that subscribes to nothing never hears anything") -known = {"call.start", "call.end", "call.concluded", "unit", "audio", "status"} +known = {"call.start", "call.end", "call.update", "call.concluded", "unit", "audio", "voice", "status", "totals", "tone_pattern", "log"} for t in m.get("subscribe", []): if t not in known: problems.append(f"subscribe: unknown topic {t!r}") From 2de333c7f280c7afd49767d360d05ed3d0a717f1 Mon Sep 17 00:00:00 2001 From: Luke Berndt Date: Tue, 24 Nov 2026 09:57:39 -0500 Subject: [PATCH 6/7] trunk-recorder-plugin 0.15.1 from crates.io Co-Authored-By: Claude Opus 5.5 --- Cargo.lock | 3 ++- Cargo.toml | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 492d5ba..a7dbea1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -184,7 +184,8 @@ dependencies = [ [[package]] name = "trunk-recorder-plugin" version = "0.15.1" -source = "git+https://github.com/TrunkRecorder/trunk-recorder-pro?branch=patched-talkgroups-named#abb8b128ad9637f9e75a02db997274f00448bd48" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dca0b4ec6822d1be1b66fb40cc06c32d36ddbabd86ea3cf86c75c04665711b4f" dependencies = [ "schemars", "serde", diff --git a/Cargo.toml b/Cargo.toml index 4f3dd87..cad618c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,8 +9,7 @@ authors = ["Luke Berndt "] publish = false [dependencies] -# Until trunk-recorder-plugin 0.15.1 is on crates.io: the SDK from the Trunk Recorder Pro branch that has it. -trunk-recorder-plugin = { git = "https://github.com/TrunkRecorder/trunk-recorder-pro", branch = "patched-talkgroups-named" } +trunk-recorder-plugin = "0.15.1" schemars = "1" serde = { version = "1", features = ["derive"] } serde_json = "1" From 6ec04eadf6a5e478ae5e59b5fdbb6a43e65a02f9 Mon Sep 17 00:00:00 2001 From: Luke Berndt Date: Tue, 24 Nov 2026 10:27:04 -0500 Subject: [PATCH 7/7] 0.1.7: trunk-recorder-plugin 0.15.1; audio packets carry the talkgroup tags Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 4 ++-- Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 03cc7d6..c200a5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## [Unreleased] +## [0.1.7] - Audio packets with JSON now carry `patched_talkgroup_tags` (the call's own talkgroup's tag, then those of the talkgroups patched with it; none when no tag is known), as Trunk Recorder's simplestream can, so a receiver that @@ -9,7 +9,7 @@ - `src` and `src_tag` (the radio talking, and its name, from the call's sources) follow the call as it's updated, as Trunk Recorder's simplestream does, instead of staying as they were when the call started. `src_tag` was always empty before. -- Needs trunk-recorder-plugin 0.15.1, which tells it the tags of a call's patched talkgroups. +- Built with trunk-recorder-plugin 0.15.1, which names the talkgroups patched with a call (`CallInfo.patched`). ## [0.1.5] diff --git a/Cargo.lock b/Cargo.lock index a7dbea1..c61fa66 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -162,7 +162,7 @@ dependencies = [ [[package]] name = "simplestream" -version = "0.1.6" +version = "0.1.7" dependencies = [ "schemars", "serde", diff --git a/Cargo.toml b/Cargo.toml index cad618c..78634ff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "simplestream" -version = "0.1.6" +version = "0.1.7" edition = "2024" description = "Streams the audio of calls as they're recorded to other programs, over UDP or TCP." license = "GPL-3.0-or-later"