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

Set alpha tag for conventional talkgroup and restore startup console message #662

Merged
merged 1 commit into from
Apr 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions trunk-recorder/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1347,16 +1347,16 @@ bool setup_convetional_channel(System *system, double frequency, long channel_in
if (system->has_channel_file()) {
Talkgroup *tg = system->find_talkgroup_by_freq(frequency);
call = new Call_conventional(tg->number, tg->freq, system, config);
call->set_talkgroup_tag(tg->alpha_tag);
} else {
call = new Call_conventional(channel_index, frequency, system, config);
BOOST_LOG_TRIVIAL(info) << "[" << system->get_short_name() << "]\tMonitoring Conventional Channel: " << format_freq(frequency) << " Talkgroup: " << channel_index;

}
BOOST_LOG_TRIVIAL(info) << "[" << system->get_short_name() << "]\tMonitoring " << system->get_system_type() << " channel: " << format_freq(frequency) << " Talkgroup: " << channel_index;
if (system->get_system_type() == "conventional") {
analog_recorder_sptr rec;
rec = source->create_conventional_recorder(tb);
rec->start(call);
call->set_is_analog(true);
call->set_is_analog(true);
call->set_recorder((Recorder *)rec.get());
call->set_state(RECORDING);
system->add_conventional_recorder(rec);
Expand Down