Skip to content

Commit

Permalink
Fix RecordUnknown behaviors (#842)
Browse files Browse the repository at this point in the history
* init commit

* set_state(MONITORING);
  • Loading branch information
taclane authored Oct 23, 2023
1 parent c9adaba commit 01f3f62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion trunk-recorder/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 01f3f62

Please sign in to comment.