Skip to content

Commit 5798d99

Browse files
committed
Fixed JSON error & added shortname
1 parent 5707336 commit 5798d99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

trunk-recorder/call_concluder/call_concluder.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ int create_call_json(Call_Data_t call_info) {
6666
//json_file << "\"source\": \"" << this->get_recorder()->get_source()->get_device() << "\",\n";
6767
json_file << "\"talkgroup\": " << call_info.talkgroup << ",\n";
6868
json_file << "\"talkgroup_tag\": \"" << call_info.talkgroup_tag << "\",\n";
69-
json_file << "\"audio_type\": " << call_info.audio_type << ",\n";
69+
json_file << "\"audio_type\": \"" << call_info.audio_type << "\",\n";
70+
json_file << "\"short_name\": \"" << call_info.short_name << "\",\n";
7071
if (call_info.patched_talkgroups.size()>1){
7172
json_file << "\"patched_talkgroups\": [";
7273
bool first = true;

0 commit comments

Comments
 (0)