Skip to content

Commit

Permalink
collect recorder and source number (#935)
Browse files Browse the repository at this point in the history
  • Loading branch information
taclane authored Apr 5, 2024
1 parent 87bc0f6 commit 346dcff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions trunk-recorder/call_concluder/call_concluder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ int create_call_json(Call_Data_t& call_info) {
{"freq_error", int(call_info.freq_error)},
{"signal", int(call_info.signal)},
{"noise", int(call_info.noise)},
{"source_num", int(call_info.source_num)},
{"recorder_num", int(call_info.recorder_num)},
{"tdma_slot", int(call_info.tdma_slot)},
{"phase2_tdma", int(call_info.phase2_tdma)},
{"start_time", call_info.start_time},
Expand Down Expand Up @@ -308,6 +310,8 @@ Call_Data_t Call_Concluder::create_call_data(Call *call, System *sys, Config con
call_info.freq_error = call->get_freq_error();
call_info.signal = call->get_signal();
call_info.noise = call->get_noise();
call_info.recorder_num = call->get_recorder()->get_num();
call_info.source_num = call->get_recorder()->get_source()->get_num();
call_info.encrypted = call->get_encrypted();
call_info.emergency = call->get_emergency();
call_info.priority = call->get_priority();
Expand Down
2 changes: 2 additions & 0 deletions trunk-recorder/global_structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ struct Call_Data_t {
long call_num;
double freq;
int freq_error;
int source_num;
int recorder_num;
double signal;
double noise;
long start_time;
Expand Down

0 comments on commit 346dcff

Please sign in to comment.