From 01f3f624ba68e41f3a5cef540a283851bd6f52be Mon Sep 17 00:00:00 2001 From: Nick Date: Sun, 22 Oct 2023 21:58:01 -0400 Subject: [PATCH] Fix RecordUnknown behaviors (#842) * init commit * set_state(MONITORING); --- trunk-recorder/main.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trunk-recorder/main.cc b/trunk-recorder/main.cc index 5d5f44b2a..26360ab05 100644 --- a/trunk-recorder/main.cc +++ b/trunk-recorder/main.cc @@ -673,8 +673,10 @@ bool start_recorder(Call *call, TrunkMessage message, System *sys) { Recorder *sigmf_recorder; if (!talkgroup && (sys->get_record_unknown() == false)) { + call->set_state(MONITORING); + call->set_monitoring_state(UNKNOWN_TG); if (sys->get_hideUnknown() == false) { - // BOOST_LOG_TRIVIAL(info) << "[" << sys->get_short_name() << "]\t\033[0;34m" << call->get_call_num() << "C\033[0m\tTG: " << call->get_talkgroup_display() << "\tFreq: " << format_freq(call->get_freq()) << "\t\u001b[33mNot Recording: TG not in Talkgroup File\u001b[0m "; + BOOST_LOG_TRIVIAL(info) << "[" << sys->get_short_name() << "]\t\033[0;34m" << call->get_call_num() << "C\033[0m\tTG: " << call->get_talkgroup_display() << "\tFreq: " << format_freq(call->get_freq()) << "\t\u001b[33mNot Recording: TG not in Talkgroup File\u001b[0m "; } return false; }