Skip to content

Commit

Permalink
ignoring calls w/frequency or TG of 0
Browse files Browse the repository at this point in the history
  • Loading branch information
rosecitytransit committed Apr 21, 2021
1 parent a1f430b commit bbbaa6c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion trunk-recorder/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,11 @@ void handle_message(std::vector<TrunkMessage> messages, System *sys) {
switch (message.message_type) {
case GRANT:
case UPDATE:
handle_call(message, sys);
if ((message.talkgroup != 0) && (message.freq != 0)) {
handle_call(message, sys);
} else {
BOOST_LOG_TRIVIAL(trace) << "Skipping call: Freq " << message.freq << " TG " << message.talkgroup << " Src " << message.source;
}
break;

case CONTROL_CHANNEL:
Expand Down

0 comments on commit bbbaa6c

Please sign in to comment.