20#ifndef ConfigurationObjects_h
21#define ConfigurationObjects_h
24#include "EngageConstants.h"
33#include <nlohmann/json.hpp>
36 #pragma GCC diagnostic push
37 #pragma GCC diagnostic ignored "-Wunused-function"
40#if !defined(ENGAGE_IGNORE_COMPILER_UNUSED_WARNING)
42 #define ENGAGE_IGNORE_COMPILER_UNUSED_WARNING __attribute__((unused))
44 #define ENGAGE_IGNORE_COMPILER_UNUSED_WARNING
50#if defined(RTS_CORE_BUILD)
51namespace ConfigurationObjects
53namespace AppConfigurationObjects
56 static const char *ENGAGE_CONFIGURATION_OBJECT_ATTACHED_OBJECT =
"_attached";
150 } DataSeriesValueType_t;
164 bloodOxygenation = 5,
166 taskEffectiveness = 7
167 } HumanBiometricsTypes_t;
171 static FILE *_internalFileOpener(
const char *fn,
const char *mode)
176 fp = fopen(fn, mode);
178 if(fopen_s(&fp, fn, mode) != 0)
187 #define JSON_SERIALIZED_CLASS(_cn) \
189 static void to_json(nlohmann::json& j, const _cn& p); \
190 static void from_json(const nlohmann::json& j, _cn& p);
192 #define IMPLEMENT_JSON_DOCUMENTATION(_cn) \
194 static void document(const char *path = nullptr) \
197 example.initForDocumenting(); \
198 std::string theJson = example.serialize(3); \
199 std::cout << "------------------------------------------------" << std::endl \
200 << #_cn << std::endl \
201 << theJson << std::endl \
202 << "------------------------------------------------" << std::endl; \
204 if(path != nullptr && path[0] != 0) \
206 std::string fn = path; \
209 fn.append(".json"); \
211 FILE *fp = _internalFileOpener(fn.c_str(), "wt");\
215 fputs(theJson.c_str(), fp); \
220 std::cout << "ERROR: Cannot write to " << fn << std::endl; \
224 static const char *className() \
229 #define IMPLEMENT_JSON_SERIALIZATION() \
231 bool deserialize(const char *s) \
235 if(s != nullptr && s[0] != 0) \
237 from_json(nlohmann::json::parse(s), *this); \
251 std::string serialize(const int indent = -1) \
257 return j.dump(indent); \
261 return std::string("{}"); \
265 #define IMPLEMENT_WRAPPED_JSON_SERIALIZATION(_cn) \
267 std::string serializeWrapped(const int indent = -1) \
276 firstChar[0] = #_cn[0]; \
278 firstChar[0] = tolower(firstChar[0]); \
280 rc.append(firstChar); \
281 rc.append((#_cn) + 1); \
283 rc.append(j.dump(indent)); \
290 return std::string("{}"); \
294 #define TOJSON_IMPL(__var) \
297 #define FROMJSON_IMPL_SIMPLE(__var) \
298 getOptional(#__var, p.__var, j)
300 #define FROMJSON_IMPL(__var, __type, __default) \
301 getOptional<__type>(#__var, p.__var, j, __default)
303 #define TOJSON_BASE_IMPL() \
304 to_json(j, (ConfigurationObjectBase&)p)
306 #define FROMJSON_BASE_IMPL() \
307 from_json(j, (ConfigurationObjectBase&)p);
311 static std::string EMPTY_STRING;
314 static void getOptional(
const char *name, T& v,
const nlohmann::json& j, T def)
320 j.at(name).get_to(v);
334 static void getOptional(
const char *name, T& v,
const nlohmann::json& j)
340 j.at(name).get_to(v);
349 static void getOptionalWithIndicator(
const char *name, T& v,
const nlohmann::json& j, T def,
bool *wasFound)
355 j.at(name).get_to(v);
372 static void getOptionalWithIndicator(
const char *name, T& v,
const nlohmann::json& j,
bool *wasFound)
378 j.at(name).get_to(v);
397 _documenting =
false;
404 virtual void initForDocumenting()
409 virtual std::string toString()
411 return std::string(
"");
414 inline virtual bool isDocumenting()
const
419 nlohmann::json _attached;
429 if(p._attached !=
nullptr)
431 j[ENGAGE_CONFIGURATION_OBJECT_ATTACHED_OBJECT] = p._attached;
438 static void from_json(
const nlohmann::json& j, ConfigurationObjectBase& p)
442 if(j.contains(ENGAGE_CONFIGURATION_OBJECT_ATTACHED_OBJECT))
444 p._attached = j.at(ENGAGE_CONFIGURATION_OBJECT_ATTACHED_OBJECT);
453 JSON_SERIALIZED_CLASS(KvPair)
462 IMPLEMENT_JSON_SERIALIZATION()
463 IMPLEMENT_JSON_DOCUMENTATION(
KvPair)
484 static void to_json(nlohmann::json& j,
const KvPair& p)
491 static void from_json(
const nlohmann::json& j, KvPair& p)
494 getOptional<std::string>(
"key", p.key, j, EMPTY_STRING);
495 getOptional<std::string>(
"tags", p.value, j, EMPTY_STRING);
499 JSON_SERIALIZED_CLASS(TuningSettings)
502 IMPLEMENT_JSON_SERIALIZATION()
546 maxPooledRtpObjects = 0;
547 maxActiveRtpObjects = 0;
550 maxPooledBlobObjects = 0;
551 maxActiveBlobObjects = 0;
553 maxPooledBufferMb = 0;
554 maxPooledBufferObjects = 0;
555 maxActiveBufferObjects = 0;
557 maxActiveRtpProcessors = 0;
560 virtual void initForDocumenting()
566 static void to_json(nlohmann::json& j,
const TuningSettings& p)
569 TOJSON_IMPL(maxPooledRtpMb),
570 TOJSON_IMPL(maxPooledRtpObjects),
571 TOJSON_IMPL(maxActiveRtpObjects),
573 TOJSON_IMPL(maxPooledBlobMb),
574 TOJSON_IMPL(maxPooledBlobObjects),
575 TOJSON_IMPL(maxActiveBlobObjects),
577 TOJSON_IMPL(maxPooledBufferMb),
578 TOJSON_IMPL(maxPooledBufferObjects),
579 TOJSON_IMPL(maxActiveBufferObjects),
581 TOJSON_IMPL(maxActiveRtpProcessors)
584 static void from_json(
const nlohmann::json& j, TuningSettings& p)
587 FROMJSON_IMPL(maxPooledRtpMb, uint32_t, 0);
588 FROMJSON_IMPL(maxPooledRtpObjects, uint32_t, 0);
589 FROMJSON_IMPL(maxActiveRtpObjects, uint32_t, 0);
591 FROMJSON_IMPL(maxPooledBlobMb, uint32_t, 0);
592 FROMJSON_IMPL(maxPooledBlobObjects, uint32_t, 0);
593 FROMJSON_IMPL(maxActiveBlobObjects, uint32_t, 0);
595 FROMJSON_IMPL(maxPooledBufferMb, uint32_t, 0);
596 FROMJSON_IMPL(maxPooledBufferObjects, uint32_t, 0);
597 FROMJSON_IMPL(maxActiveBufferObjects, uint32_t, 0);
599 FROMJSON_IMPL(maxActiveRtpProcessors, uint32_t, 0);
604 JSON_SERIALIZED_CLASS(FipsCryptoSettings)
607 IMPLEMENT_JSON_SERIALIZATION()
640 virtual void initForDocumenting()
646 static void to_json(nlohmann::json& j,
const FipsCryptoSettings& p)
649 TOJSON_IMPL(enabled),
656 static void from_json(
const nlohmann::json& j, FipsCryptoSettings& p)
659 FROMJSON_IMPL_SIMPLE(enabled);
660 FROMJSON_IMPL_SIMPLE(path);
661 FROMJSON_IMPL_SIMPLE(debug);
662 FROMJSON_IMPL_SIMPLE(curves);
663 FROMJSON_IMPL_SIMPLE(ciphers);
668 JSON_SERIALIZED_CLASS(WatchdogSettings)
671 IMPLEMENT_JSON_SERIALIZATION()
699 hangDetectionMs = 2000;
701 slowExecutionThresholdMs = 100;
704 virtual void initForDocumenting()
710 static void to_json(nlohmann::json& j,
const WatchdogSettings& p)
713 TOJSON_IMPL(enabled),
714 TOJSON_IMPL(intervalMs),
715 TOJSON_IMPL(hangDetectionMs),
716 TOJSON_IMPL(abortOnHang),
717 TOJSON_IMPL(slowExecutionThresholdMs)
720 static void from_json(
const nlohmann::json& j, WatchdogSettings& p)
723 getOptional<bool>(
"enabled", p.enabled, j,
true);
724 getOptional<int>(
"intervalMs", p.intervalMs, j, 5000);
725 getOptional<int>(
"hangDetectionMs", p.hangDetectionMs, j, 2000);
726 getOptional<bool>(
"abortOnHang", p.abortOnHang, j,
true);
727 getOptional<int>(
"slowExecutionThresholdMs", p.slowExecutionThresholdMs, j, 100);
732 JSON_SERIALIZED_CLASS(FileRecordingRequest)
735 IMPLEMENT_JSON_SERIALIZATION()
740 std::string fileName;
755 virtual void initForDocumenting()
758 id =
"1-2-3-4-5-6-7-8-9";
759 fileName =
"/tmp/test.wav";
768 TOJSON_IMPL(fileName),
772 static void from_json(
const nlohmann::json& j, FileRecordingRequest& p)
775 j.at(
"id").get_to(p.id);
776 j.at(
"fileName").get_to(p.fileName);
777 getOptional<uint32_t>(
"maxMs", p.maxMs, j, 60000);
782 JSON_SERIALIZED_CLASS(Feature)
785 IMPLEMENT_JSON_SERIALIZATION()
786 IMPLEMENT_JSON_DOCUMENTATION(
Feature)
791 std::string description;
792 std::string comments;
811 virtual void initForDocumenting()
814 id =
"{af9540d1-3e86-4fa6-8b80-e26daecb61ab}";
815 name =
"A sample feature";
816 description =
"This is an example of a feature";
817 comments =
"These are comments for this feature";
823 static void to_json(nlohmann::json& j,
const Feature& p)
828 TOJSON_IMPL(description),
829 TOJSON_IMPL(comments),
834 static void from_json(
const nlohmann::json& j, Feature& p)
837 j.at(
"id").get_to(p.id);
838 getOptional(
"name", p.name, j);
839 getOptional(
"description", p.description, j);
840 getOptional(
"comments", p.comments, j);
841 getOptional(
"count", p.count, j, 0);
849 JSON_SERIALIZED_CLASS(Featureset)
852 IMPLEMENT_JSON_SERIALIZATION()
856 std::string signature;
858 std::vector<Feature> features;
868 lockToDeviceId =
false;
872 virtual void initForDocumenting()
875 signature =
"c39df3f36c6444e686e47e70fc45cf91e6ed2d8de62d4a1e89f507d567ff48aaabb1a70e54b44377b46fc4a1a2e319e5b77e4abffc444db98f8eb55d709aad5f";
876 lockToDeviceId =
false;
880 static void to_json(nlohmann::json& j,
const Featureset& p)
883 TOJSON_IMPL(signature),
884 TOJSON_IMPL(lockToDeviceId),
885 TOJSON_IMPL(features)
888 static void from_json(
const nlohmann::json& j, Featureset& p)
891 getOptional(
"signature", p.signature, j);
892 getOptional<bool>(
"lockToDeviceId", p.lockToDeviceId, j,
false);
893 getOptional<std::vector<Feature>>(
"features", p.features, j);
898 JSON_SERIALIZED_CLASS(Agc)
909 IMPLEMENT_JSON_SERIALIZATION()
910 IMPLEMENT_JSON_DOCUMENTATION(
Agc)
941 compressionGainDb = 25;
942 enableLimiter =
false;
947 static void to_json(nlohmann::json& j,
const Agc& p)
950 TOJSON_IMPL(enabled),
951 TOJSON_IMPL(minLevel),
952 TOJSON_IMPL(maxLevel),
953 TOJSON_IMPL(compressionGainDb),
954 TOJSON_IMPL(enableLimiter),
955 TOJSON_IMPL(targetLevelDb)
958 static void from_json(
const nlohmann::json& j, Agc& p)
961 getOptional<bool>(
"enabled", p.enabled, j,
false);
962 getOptional<int>(
"minLevel", p.minLevel, j, 0);
963 getOptional<int>(
"maxLevel", p.maxLevel, j, 255);
964 getOptional<int>(
"compressionGainDb", p.compressionGainDb, j, 25);
965 getOptional<bool>(
"enableLimiter", p.enableLimiter, j,
false);
966 getOptional<int>(
"targetLevelDb", p.targetLevelDb, j, 3);
971 JSON_SERIALIZED_CLASS(RtpPayloadTypeTranslation)
982 IMPLEMENT_JSON_SERIALIZATION()
1003 bool matches(
const RtpPayloadTypeTranslation& other)
1005 return ( (external == other.external) && (engage == other.engage) );
1009 static void to_json(nlohmann::json& j,
const RtpPayloadTypeTranslation& p)
1012 TOJSON_IMPL(external),
1016 static void from_json(
const nlohmann::json& j, RtpPayloadTypeTranslation& p)
1019 getOptional<uint16_t>(
"external", p.external, j);
1020 getOptional<uint16_t>(
"engage", p.engage, j);
1024 JSON_SERIALIZED_CLASS(NetworkInterfaceDevice)
1027 IMPLEMENT_JSON_SERIALIZATION()
1032 std::string friendlyName;
1033 std::string description;
1035 std::string address;
1038 bool supportsMulticast;
1039 std::string hardwareAddress;
1049 friendlyName.clear();
1050 description.clear();
1055 supportsMulticast =
false;
1056 hardwareAddress.clear();
1059 virtual void initForDocumenting()
1063 friendlyName =
"Wi-Fi";
1064 description =
"A wi-fi adapter";
1066 address =
"127.0.0.1";
1069 supportsMulticast =
false;
1070 hardwareAddress =
"DE:AD:BE:EF:01:02:03";
1078 TOJSON_IMPL(friendlyName),
1079 TOJSON_IMPL(description),
1080 TOJSON_IMPL(family),
1081 TOJSON_IMPL(address),
1082 TOJSON_IMPL(available),
1083 TOJSON_IMPL(isLoopback),
1084 TOJSON_IMPL(supportsMulticast),
1085 TOJSON_IMPL(hardwareAddress)
1088 static void from_json(
const nlohmann::json& j, NetworkInterfaceDevice& p)
1091 getOptional(
"name", p.name, j);
1092 getOptional(
"friendlyName", p.friendlyName, j);
1093 getOptional(
"description", p.description, j);
1094 getOptional(
"family", p.family, j, -1);
1095 getOptional(
"address", p.address, j);
1096 getOptional(
"available", p.available, j,
false);
1097 getOptional(
"isLoopback", p.isLoopback, j,
false);
1098 getOptional(
"supportsMulticast", p.supportsMulticast, j,
false);
1099 getOptional(
"hardwareAddress", p.hardwareAddress, j);
1103 JSON_SERIALIZED_CLASS(ListOfNetworkInterfaceDevice)
1106 IMPLEMENT_JSON_SERIALIZATION()
1110 std::vector<NetworkInterfaceDevice> list;
1129 static void from_json(
const nlohmann::json& j, ListOfNetworkInterfaceDevice& p)
1132 getOptional<std::vector<NetworkInterfaceDevice>>(
"list", p.list, j);
1137 JSON_SERIALIZED_CLASS(RtpHeader)
1148 IMPLEMENT_JSON_SERIALIZATION()
1182 virtual void initForDocumenting()
1193 static void to_json(nlohmann::json& j,
const RtpHeader& p)
1199 TOJSON_IMPL(marker),
1206 static void from_json(
const nlohmann::json& j, RtpHeader& p)
1209 getOptional<int>(
"pt", p.pt, j, -1);
1210 getOptional<bool>(
"marker", p.marker, j,
false);
1211 getOptional<uint16_t>(
"seq", p.seq, j, 0);
1212 getOptional<uint32_t>(
"ssrc", p.ssrc, j, 0);
1213 getOptional<uint32_t>(
"ts", p.ts, j, 0);
1217 JSON_SERIALIZED_CLASS(BlobInfo)
1228 IMPLEMENT_JSON_SERIALIZATION()
1229 IMPLEMENT_JSON_DOCUMENTATION(
BlobInfo)
1244 bptJsonTextUtf8 = 2,
1250 bptEngageBinaryHumanBiometrics = 4,
1253 bptAppMimeMessage = 5,
1256 bptEngageInternal = 42
1291 payloadType = PayloadType_t::bptUndefined;
1296 virtual void initForDocumenting()
1299 rtpHeader.initForDocumenting();
1303 static void to_json(nlohmann::json& j,
const BlobInfo& p)
1307 TOJSON_IMPL(source),
1308 TOJSON_IMPL(target),
1309 TOJSON_IMPL(rtpHeader),
1310 TOJSON_IMPL(payloadType),
1312 TOJSON_IMPL(txnTimeoutSecs)
1315 static void from_json(
const nlohmann::json& j, BlobInfo& p)
1318 getOptional<size_t>(
"size", p.size, j, 0);
1319 getOptional<std::string>(
"source", p.source, j, EMPTY_STRING);
1320 getOptional<std::string>(
"target", p.target, j, EMPTY_STRING);
1321 getOptional<RtpHeader>(
"rtpHeader", p.rtpHeader, j);
1322 getOptional<BlobInfo::PayloadType_t>(
"payloadType", p.payloadType, j, BlobInfo::PayloadType_t::bptUndefined);
1323 getOptional<std::string>(
"txnId", p.txnId, j, EMPTY_STRING);
1324 getOptional<int>(
"txnTimeoutSecs", p.txnTimeoutSecs, j, 0);
1329 JSON_SERIALIZED_CLASS(TxAudioUri)
1343 IMPLEMENT_JSON_SERIALIZATION()
1364 virtual void initForDocumenting()
1369 static void to_json(nlohmann::json& j,
const TxAudioUri& p)
1373 TOJSON_IMPL(repeatCount)
1376 static void from_json(
const nlohmann::json& j, TxAudioUri& p)
1379 getOptional<std::string>(
"uri", p.uri, j, EMPTY_STRING);
1380 getOptional<int>(
"repeatCount", p.repeatCount, j, 0);
1385 JSON_SERIALIZED_CLASS(AdvancedTxParams)
1399 IMPLEMENT_JSON_SERIALIZATION()
1447 includeNodeId =
false;
1452 aliasSpecializer = 0;
1453 receiverRxMuteForAliasSpecializer =
false;
1457 virtual void initForDocumenting()
1462 static void to_json(nlohmann::json& j,
const AdvancedTxParams& p)
1466 TOJSON_IMPL(priority),
1467 TOJSON_IMPL(subchannelTag),
1468 TOJSON_IMPL(includeNodeId),
1472 TOJSON_IMPL(audioUri),
1473 TOJSON_IMPL(aliasSpecializer),
1474 TOJSON_IMPL(receiverRxMuteForAliasSpecializer),
1475 TOJSON_IMPL(reBegin)
1478 static void from_json(
const nlohmann::json& j, AdvancedTxParams& p)
1481 getOptional<uint16_t>(
"flags", p.flags, j, 0);
1482 getOptional<uint8_t>(
"priority", p.priority, j, 0);
1483 getOptional<uint16_t>(
"subchannelTag", p.subchannelTag, j, 0);
1484 getOptional<bool>(
"includeNodeId", p.includeNodeId, j,
false);
1485 getOptional<std::string>(
"alias", p.alias, j, EMPTY_STRING);
1486 getOptional<bool>(
"muted", p.muted, j,
false);
1487 getOptional<uint32_t>(
"txId", p.txId, j, 0);
1488 getOptional<TxAudioUri>(
"audioUri", p.audioUri, j);
1489 getOptional<uint16_t>(
"aliasSpecializer", p.aliasSpecializer, j, 0);
1490 getOptional<bool>(
"receiverRxMuteForAliasSpecializer", p.receiverRxMuteForAliasSpecializer, j,
false);
1491 getOptional<bool>(
"reBegin", p.reBegin, j,
false);
1495 JSON_SERIALIZED_CLASS(Identity)
1509 IMPLEMENT_JSON_SERIALIZATION()
1510 IMPLEMENT_JSON_DOCUMENTATION(
Identity)
1540 displayName.clear();
1544 virtual void initForDocumenting()
1549 static void to_json(nlohmann::json& j,
const Identity& p)
1552 TOJSON_IMPL(nodeId),
1553 TOJSON_IMPL(userId),
1554 TOJSON_IMPL(displayName),
1558 static void from_json(
const nlohmann::json& j, Identity& p)
1561 getOptional<std::string>(
"nodeId", p.nodeId, j);
1562 getOptional<std::string>(
"userId", p.userId, j);
1563 getOptional<std::string>(
"displayName", p.displayName, j);
1564 getOptional<std::string>(
"avatar", p.avatar, j);
1569 JSON_SERIALIZED_CLASS(Location)
1583 IMPLEMENT_JSON_SERIALIZATION()
1584 IMPLEMENT_JSON_DOCUMENTATION(
Location)
1587 constexpr static double INVALID_LOCATION_VALUE = -999.999;
1615 latitude = INVALID_LOCATION_VALUE;
1616 longitude = INVALID_LOCATION_VALUE;
1617 altitude = INVALID_LOCATION_VALUE;
1618 direction = INVALID_LOCATION_VALUE;
1619 speed = INVALID_LOCATION_VALUE;
1622 virtual void initForDocumenting()
1628 longitude = 456.789;
1635 static void to_json(nlohmann::json& j,
const Location& p)
1637 if(p.latitude != Location::INVALID_LOCATION_VALUE && p.longitude != Location::INVALID_LOCATION_VALUE)
1640 TOJSON_IMPL(latitude),
1641 TOJSON_IMPL(longitude),
1644 if(p.ts != 0) j[
"ts"] = p.ts;
1645 if(p.altitude != Location::INVALID_LOCATION_VALUE) j[
"altitude"] = p.altitude;
1646 if(p.speed != Location::INVALID_LOCATION_VALUE) j[
"speed"] = p.speed;
1647 if(p.direction != Location::INVALID_LOCATION_VALUE) j[
"direction"] = p.direction;
1650 static void from_json(
const nlohmann::json& j, Location& p)
1653 getOptional<uint32_t>(
"ts", p.ts, j, 0);
1654 j.at(
"latitude").get_to(p.latitude);
1655 j.at(
"longitude").get_to(p.longitude);
1656 getOptional<double>(
"altitude", p.altitude, j, Location::INVALID_LOCATION_VALUE);
1657 getOptional<double>(
"direction", p.direction, j, Location::INVALID_LOCATION_VALUE);
1658 getOptional<double>(
"speed", p.speed, j, Location::INVALID_LOCATION_VALUE);
1662 JSON_SERIALIZED_CLASS(Power)
1674 IMPLEMENT_JSON_SERIALIZATION()
1675 IMPLEMENT_JSON_DOCUMENTATION(
Power)
1721 virtual void initForDocumenting()
1726 static void to_json(nlohmann::json& j,
const Power& p)
1728 if(p.source != 0 && p.state != 0 && p.level != 0)
1731 TOJSON_IMPL(source),
1737 static void from_json(
const nlohmann::json& j, Power& p)
1740 getOptional<int>(
"source", p.source, j, 0);
1741 getOptional<int>(
"state", p.state, j, 0);
1742 getOptional<int>(
"level", p.level, j, 0);
1747 JSON_SERIALIZED_CLASS(Connectivity)
1759 IMPLEMENT_JSON_SERIALIZATION()
1796 virtual void initForDocumenting()
1806 static void to_json(nlohmann::json& j,
const Connectivity& p)
1812 TOJSON_IMPL(strength),
1817 static void from_json(
const nlohmann::json& j, Connectivity& p)
1820 getOptional<int>(
"type", p.type, j, 0);
1821 getOptional<int>(
"strength", p.strength, j, 0);
1822 getOptional<int>(
"rating", p.rating, j, 0);
1827 JSON_SERIALIZED_CLASS(PresenceDescriptorGroupItem)
1839 IMPLEMENT_JSON_SERIALIZATION()
1864 virtual void initForDocumenting()
1866 groupId =
"{123-456}";
1872 static void to_json(nlohmann::json& j,
const PresenceDescriptorGroupItem& p)
1875 TOJSON_IMPL(groupId),
1880 static void from_json(
const nlohmann::json& j, PresenceDescriptorGroupItem& p)
1883 getOptional<std::string>(
"groupId", p.groupId, j);
1884 getOptional<std::string>(
"alias", p.alias, j);
1885 getOptional<uint16_t>(
"status", p.status, j);
1890 JSON_SERIALIZED_CLASS(PresenceDescriptor)
1902 IMPLEMENT_JSON_SERIALIZATION()
1980 groupAliases.clear();
1983 announceOnReceive =
false;
1984 connectivity.clear();
1988 virtual void initForDocumenting()
1995 identity.initForDocumenting();
1996 comment =
"This is a comment";
1999 PresenceDescriptorGroupItem gi;
2000 gi.initForDocumenting();
2001 groupAliases.push_back(gi);
2003 location.initForDocumenting();
2005 announceOnReceive =
true;
2006 connectivity.initForDocumenting();
2007 power.initForDocumenting();
2011 static void to_json(nlohmann::json& j,
const PresenceDescriptor& p)
2015 TOJSON_IMPL(nextUpdate),
2016 TOJSON_IMPL(identity),
2017 TOJSON_IMPL(comment),
2018 TOJSON_IMPL(disposition),
2019 TOJSON_IMPL(groupAliases),
2020 TOJSON_IMPL(location),
2021 TOJSON_IMPL(custom),
2022 TOJSON_IMPL(announceOnReceive),
2023 TOJSON_IMPL(connectivity),
2027 if(!p.comment.empty()) j[
"comment"] = p.comment;
2028 if(!p.custom.empty()) j[
"custom"] = p.custom;
2035 static void from_json(
const nlohmann::json& j, PresenceDescriptor& p)
2038 getOptional<bool>(
"self", p.self, j);
2039 getOptional<uint32_t>(
"ts", p.ts, j);
2040 getOptional<uint32_t>(
"nextUpdate", p.nextUpdate, j);
2041 getOptional<Identity>(
"identity", p.identity, j);
2042 getOptional<std::string>(
"comment", p.comment, j);
2043 getOptional<uint32_t>(
"disposition", p.disposition, j);
2044 getOptional<std::vector<PresenceDescriptorGroupItem>>(
"groupAliases", p.groupAliases, j);
2045 getOptional<Location>(
"location", p.location, j);
2046 getOptional<std::string>(
"custom", p.custom, j);
2047 getOptional<bool>(
"announceOnReceive", p.announceOnReceive, j);
2048 getOptional<Connectivity>(
"connectivity", p.connectivity, j);
2049 getOptional<Power>(
"power", p.power, j);
2090 } AddressResolutionPolicy_t;
2093 JSON_SERIALIZED_CLASS(NetworkTxOptions)
2107 IMPLEMENT_JSON_SERIALIZATION()
2132 virtual void initForDocumenting()
2137 static void to_json(nlohmann::json& j,
const NetworkTxOptions& p)
2140 TOJSON_IMPL(priority),
2144 static void from_json(
const nlohmann::json& j, NetworkTxOptions& p)
2147 getOptional<TxPriority_t>(
"priority", p.priority, j, TxPriority_t::priVoice);
2148 getOptional<int>(
"ttl", p.ttl, j, 1);
2153 JSON_SERIALIZED_CLASS(TcpNetworkTxOptions)
2163 IMPLEMENT_JSON_SERIALIZATION()
2178 virtual void initForDocumenting()
2186 TOJSON_IMPL(priority),
2190 static void from_json(
const nlohmann::json& j, TcpNetworkTxOptions& p)
2193 getOptional<TxPriority_t>(
"priority", p.priority, j, TxPriority_t::priVoice);
2194 getOptional<int>(
"ttl", p.ttl, j, -1);
2210 JSON_SERIALIZED_CLASS(NetworkAddress)
2223 IMPLEMENT_JSON_SERIALIZATION()
2244 bool matches(
const NetworkAddress& other)
2246 if(address.compare(other.address) != 0)
2251 if(port != other.port)
2260 static void to_json(nlohmann::json& j,
const NetworkAddress& p)
2263 TOJSON_IMPL(address),
2267 static void from_json(
const nlohmann::json& j, NetworkAddress& p)
2270 getOptional<std::string>(
"address", p.address, j);
2271 getOptional<int>(
"port", p.port, j);
2276 JSON_SERIALIZED_CLASS(NetworkAddressRxTx)
2289 IMPLEMENT_JSON_SERIALIZATION()
2311 static void to_json(nlohmann::json& j,
const NetworkAddressRxTx& p)
2318 static void from_json(
const nlohmann::json& j, NetworkAddressRxTx& p)
2321 getOptional<NetworkAddress>(
"rx", p.rx, j);
2322 getOptional<NetworkAddress>(
"tx", p.tx, j);
2333 } GroupRestrictionAccessPolicyType_t;
2335 static bool isValidGroupRestrictionAccessPolicyType(GroupRestrictionAccessPolicyType_t t)
2337 return (t == GroupRestrictionAccessPolicyType_t::graptPermissive ||
2338 t == GroupRestrictionAccessPolicyType_t::graptStrict );
2352 } RestrictionType_t;
2354 static bool isValidRestrictionType(RestrictionType_t t)
2356 return (t == RestrictionType_t::rtUndefined ||
2357 t == RestrictionType_t::rtWhitelist ||
2358 t == RestrictionType_t::rtBlacklist );
2384 } RestrictionElementType_t;
2386 static bool isValidRestrictionElementType(RestrictionElementType_t t)
2388 return (t == RestrictionElementType_t::retGroupId ||
2389 t == RestrictionElementType_t::retGroupIdPattern ||
2390 t == RestrictionElementType_t::retGenericAccessTagPattern ||
2391 t == RestrictionElementType_t::retCertificateSerialNumberPattern ||
2392 t == RestrictionElementType_t::retCertificateFingerprintPattern ||
2393 t == RestrictionElementType_t::retCertificateSubjectPattern ||
2394 t == RestrictionElementType_t::retCertificateIssuerPattern);
2399 JSON_SERIALIZED_CLASS(NetworkAddressRestrictionList)
2412 IMPLEMENT_JSON_SERIALIZATION()
2429 type = RestrictionType_t::rtUndefined;
2434 static void to_json(nlohmann::json& j,
const NetworkAddressRestrictionList& p)
2438 TOJSON_IMPL(elements)
2441 static void from_json(
const nlohmann::json& j, NetworkAddressRestrictionList& p)
2444 getOptional<RestrictionType_t>(
"type", p.type, j, RestrictionType_t::rtUndefined);
2445 getOptional<std::vector<NetworkAddressRxTx>>(
"elements", p.elements, j);
2449 JSON_SERIALIZED_CLASS(StringRestrictionList)
2462 IMPLEMENT_JSON_SERIALIZATION()
2477 type = RestrictionType_t::rtUndefined;
2478 elementsType = RestrictionElementType_t::retGroupId;
2488 static void to_json(nlohmann::json& j,
const StringRestrictionList& p)
2492 TOJSON_IMPL(elementsType),
2493 TOJSON_IMPL(elements)
2496 static void from_json(
const nlohmann::json& j, StringRestrictionList& p)
2499 getOptional<RestrictionType_t>(
"type", p.type, j, RestrictionType_t::rtUndefined);
2500 getOptional<RestrictionElementType_t>(
"elementsType", p.elementsType, j, RestrictionElementType_t::retGroupId);
2501 getOptional<std::vector<std::string>>(
"elements", p.elements, j);
2506 JSON_SERIALIZED_CLASS(PacketCapturer)
2517 IMPLEMENT_JSON_SERIALIZATION()
2523 std::string filePrefix;
2541 TOJSON_IMPL(enabled),
2543 TOJSON_IMPL(filePrefix)
2546 static void from_json(
const nlohmann::json& j, PacketCapturer& p)
2549 getOptional<bool>(
"enabled", p.enabled, j,
false);
2550 getOptional<uint32_t>(
"maxMb", p.maxMb, j, 10);
2551 getOptional<std::string>(
"filePrefix", p.filePrefix, j, EMPTY_STRING);
2556 JSON_SERIALIZED_CLASS(TransportImpairment)
2567 IMPLEMENT_JSON_SERIALIZATION()
2571 int applicationPercentage;
2582 applicationPercentage = 0;
2591 TOJSON_IMPL(applicationPercentage),
2592 TOJSON_IMPL(jitterMs),
2593 TOJSON_IMPL(lossPercentage)
2596 static void from_json(
const nlohmann::json& j, TransportImpairment& p)
2599 getOptional<int>(
"applicationPercentage", p.applicationPercentage, j, 0);
2600 getOptional<int>(
"jitterMs", p.jitterMs, j, 0);
2601 getOptional<int>(
"lossPercentage", p.lossPercentage, j, 0);
2605 JSON_SERIALIZED_CLASS(NsmNetworking)
2616 IMPLEMENT_JSON_SERIALIZATION()
2620 std::string interfaceName;
2627 std::string cryptoPassword;
2636 interfaceName.clear();
2641 rxImpairment.clear();
2642 txImpairment.clear();
2643 cryptoPassword.clear();
2647 static void to_json(nlohmann::json& j,
const NsmNetworking& p)
2650 TOJSON_IMPL(interfaceName),
2651 TOJSON_IMPL(address),
2654 TOJSON_IMPL(txOversend),
2655 TOJSON_IMPL(rxImpairment),
2656 TOJSON_IMPL(txImpairment),
2657 TOJSON_IMPL(cryptoPassword)
2660 static void from_json(
const nlohmann::json& j, NsmNetworking& p)
2663 getOptional(
"interfaceName", p.interfaceName, j, EMPTY_STRING);
2664 getOptional<NetworkAddress>(
"address", p.address, j);
2665 getOptional<int>(
"ttl", p.ttl, j, 1);
2666 getOptional<int>(
"tos", p.tos, j, 56);
2667 getOptional<int>(
"txOversend", p.txOversend, j, 0);
2668 getOptional<TransportImpairment>(
"rxImpairment", p.rxImpairment, j);
2669 getOptional<TransportImpairment>(
"txImpairment", p.txImpairment, j);
2670 getOptional(
"cryptoPassword", p.cryptoPassword, j, EMPTY_STRING);
2675 JSON_SERIALIZED_CLASS(NsmConfiguration)
2686 IMPLEMENT_JSON_SERIALIZATION()
2694 std::vector<std::string> resources;
2698 int transitionSecsFactor;
2708 favorUptime =
false;
2711 tokenStart = 1000000;
2714 transitionSecsFactor = 3;
2722 TOJSON_IMPL(favorUptime),
2723 TOJSON_IMPL(networking),
2724 TOJSON_IMPL(resources),
2725 TOJSON_IMPL(tokenStart),
2726 TOJSON_IMPL(tokenEnd),
2727 TOJSON_IMPL(intervalSecs),
2728 TOJSON_IMPL(transitionSecsFactor)
2731 static void from_json(
const nlohmann::json& j, NsmConfiguration& p)
2734 getOptional(
"id", p.id, j);
2735 getOptional<bool>(
"favorUptime", p.favorUptime, j,
false);
2736 getOptional<NsmNetworking>(
"networking", p.networking, j);
2737 getOptional<std::vector<std::string>>(
"resources", p.resources, j);
2738 getOptional<int>(
"tokenStart", p.tokenStart, j, 1000000);
2739 getOptional<int>(
"tokenEnd", p.tokenEnd, j, 2000000);
2740 getOptional<int>(
"intervalSecs", p.intervalSecs, j, 1);
2741 getOptional<int>(
"transitionSecsFactor", p.transitionSecsFactor, j, 3);
2746 JSON_SERIALIZED_CLASS(Rallypoint)
2756 IMPLEMENT_JSON_SERIALIZATION()
2865 certificate.clear();
2866 certificateKey.clear();
2867 caCertificates.clear();
2869 transactionTimeoutMs = 0;
2870 disableMessageSigning =
false;
2871 connectionTimeoutSecs = 0;
2872 tcpTxOptions.clear();
2874 protocol = rppTlsTcp;
2876 additionalProtocols.clear();
2879 bool matches(
const Rallypoint& other)
2881 if(!host.matches(other.host))
2886 if(protocol != other.protocol)
2891 if(path.compare(other.path) != 0)
2896 if(certificate.compare(other.certificate) != 0)
2901 if(certificateKey.compare(other.certificateKey) != 0)
2906 if(verifyPeer != other.verifyPeer)
2911 if(allowSelfSignedCertificate != other.allowSelfSignedCertificate)
2916 if(caCertificates.size() != other.caCertificates.size())
2921 for(
size_t x = 0; x < caCertificates.size(); x++)
2925 for(
size_t y = 0; y < other.caCertificates.size(); y++)
2927 if(caCertificates[x].compare(other.caCertificates[y]) == 0)
2940 if(transactionTimeoutMs != other.transactionTimeoutMs)
2945 if(disableMessageSigning != other.disableMessageSigning)
2949 if(connectionTimeoutSecs != other.connectionTimeoutSecs)
2953 if(tcpTxOptions.
priority != other.tcpTxOptions.priority)
2957 if(sni.compare(other.sni) != 0)
2966 static void to_json(nlohmann::json& j,
const Rallypoint& p)
2970 TOJSON_IMPL(certificate),
2971 TOJSON_IMPL(certificateKey),
2972 TOJSON_IMPL(verifyPeer),
2973 TOJSON_IMPL(allowSelfSignedCertificate),
2974 TOJSON_IMPL(caCertificates),
2975 TOJSON_IMPL(transactionTimeoutMs),
2976 TOJSON_IMPL(disableMessageSigning),
2977 TOJSON_IMPL(connectionTimeoutSecs),
2978 TOJSON_IMPL(tcpTxOptions),
2980 TOJSON_IMPL(protocol),
2982 TOJSON_IMPL(additionalProtocols)
2986 static void from_json(
const nlohmann::json& j, Rallypoint& p)
2989 j.at(
"host").get_to(p.host);
2990 getOptional(
"certificate", p.certificate, j);
2991 getOptional(
"certificateKey", p.certificateKey, j);
2992 getOptional<bool>(
"verifyPeer", p.verifyPeer, j,
true);
2993 getOptional<bool>(
"allowSelfSignedCertificate", p.allowSelfSignedCertificate, j,
false);
2994 getOptional<std::vector<std::string>>(
"caCertificates", p.caCertificates, j);
2995 getOptional<int>(
"transactionTimeoutMs", p.transactionTimeoutMs, j, 0);
2996 getOptional<bool>(
"disableMessageSigning", p.disableMessageSigning, j,
false);
2997 getOptional<int>(
"connectionTimeoutSecs", p.connectionTimeoutSecs, j, 0);
2998 getOptional<TcpNetworkTxOptions>(
"tcpTxOptions", p.tcpTxOptions, j);
2999 getOptional<std::string>(
"sni", p.sni, j);
3000 getOptional<Rallypoint::RpProtocol_t>(
"protocol", p.protocol, j, Rallypoint::RpProtocol_t::rppTlsTcp);
3001 getOptional<std::string>(
"path", p.path, j);
3002 getOptional<std::string>(
"additionalProtocols", p.additionalProtocols, j);
3006 JSON_SERIALIZED_CLASS(RallypointCluster)
3019 IMPLEMENT_JSON_SERIALIZATION()
3035 } ConnectionStrategy_t;
3059 connectionStrategy = csRoundRobin;
3060 rallypoints.clear();
3062 connectionTimeoutSecs = 5;
3063 transactionTimeoutMs = 10000;
3067 static void to_json(nlohmann::json& j,
const RallypointCluster& p)
3070 TOJSON_IMPL(connectionStrategy),
3071 TOJSON_IMPL(rallypoints),
3072 TOJSON_IMPL(rolloverSecs),
3073 TOJSON_IMPL(connectionTimeoutSecs),
3074 TOJSON_IMPL(transactionTimeoutMs)
3077 static void from_json(
const nlohmann::json& j, RallypointCluster& p)
3080 getOptional<RallypointCluster::ConnectionStrategy_t>(
"connectionStrategy", p.connectionStrategy, RallypointCluster::ConnectionStrategy_t::csRoundRobin);
3081 getOptional<std::vector<Rallypoint>>(
"rallypoints", p.rallypoints, j);
3082 getOptional<int>(
"rolloverSecs", p.rolloverSecs, j, 10);
3083 getOptional<int>(
"connectionTimeoutSecs", p.connectionTimeoutSecs, j, 5);
3084 getOptional<int>(
"transactionTimeoutMs", p.transactionTimeoutMs, j, 10000);
3089 JSON_SERIALIZED_CLASS(NetworkDeviceDescriptor)
3101 IMPLEMENT_JSON_SERIALIZATION()
3142 manufacturer.clear();
3145 serialNumber.clear();
3150 virtual std::string toString()
3154 snprintf(buff,
sizeof(buff),
"deviceId=%d, name=%s, manufacturer=%s, model=%s, hardwareId=%s, serialNumber=%s, type=%s, extra=%s",
3157 manufacturer.c_str(),
3160 serialNumber.c_str(),
3164 return std::string(buff);
3168 static void to_json(nlohmann::json& j,
const NetworkDeviceDescriptor& p)
3171 TOJSON_IMPL(deviceId),
3173 TOJSON_IMPL(manufacturer),
3175 TOJSON_IMPL(hardwareId),
3176 TOJSON_IMPL(serialNumber),
3181 static void from_json(
const nlohmann::json& j, NetworkDeviceDescriptor& p)
3184 getOptional<int>(
"deviceId", p.deviceId, j, 0);
3185 getOptional(
"name", p.name, j);
3186 getOptional(
"manufacturer", p.manufacturer, j);
3187 getOptional(
"model", p.model, j);
3188 getOptional(
"hardwareId", p.hardwareId, j);
3189 getOptional(
"serialNumber", p.serialNumber, j);
3190 getOptional(
"type", p.type, j);
3191 getOptional(
"extra", p.extra, j);
3195 JSON_SERIALIZED_CLASS(AudioGate)
3206 IMPLEMENT_JSON_SERIALIZATION()
3245 static void to_json(nlohmann::json& j,
const AudioGate& p)
3248 TOJSON_IMPL(enabled),
3249 TOJSON_IMPL(useVad),
3250 TOJSON_IMPL(hangMs),
3251 TOJSON_IMPL(windowMin),
3252 TOJSON_IMPL(windowMax),
3253 TOJSON_IMPL(coefficient)
3256 static void from_json(
const nlohmann::json& j, AudioGate& p)
3259 getOptional<bool>(
"enabled", p.enabled, j,
false);
3260 getOptional<bool>(
"useVad", p.useVad, j,
false);
3261 getOptional<uint32_t>(
"hangMs", p.hangMs, j, 1500);
3262 getOptional<uint32_t>(
"windowMin", p.windowMin, j, 25);
3263 getOptional<uint32_t>(
"windowMax", p.windowMax, j, 125);
3264 getOptional<double>(
"coefficient", p.coefficient, j, 1.75);
3268 JSON_SERIALIZED_CLASS(TxAudio)
3283 IMPLEMENT_JSON_SERIALIZATION()
3284 IMPLEMENT_JSON_DOCUMENTATION(
TxAudio)
3520 encoder = TxAudio::TxCodec_t::ctUnknown;
3521 encoderName.clear();
3527 extensionSendInterval = 10;
3528 initialHeaderBurst = 5;
3529 trailingHeaderBurst = 5;
3530 startTxNotifications = 5;
3531 customRtpPayloadType = -1;
3533 resetRtpOnTx =
true;
3534 enableSmoothing =
true;
3536 smoothedHangTimeMs = 0;
3540 static void to_json(nlohmann::json& j,
const TxAudio& p)
3543 TOJSON_IMPL(enabled),
3544 TOJSON_IMPL(encoder),
3545 TOJSON_IMPL(encoderName),
3546 TOJSON_IMPL(framingMs),
3547 TOJSON_IMPL(blockCount),
3549 TOJSON_IMPL(noHdrExt),
3550 TOJSON_IMPL(maxTxSecs),
3551 TOJSON_IMPL(extensionSendInterval),
3552 TOJSON_IMPL(initialHeaderBurst),
3553 TOJSON_IMPL(trailingHeaderBurst),
3554 TOJSON_IMPL(startTxNotifications),
3555 TOJSON_IMPL(customRtpPayloadType),
3556 TOJSON_IMPL(resetRtpOnTx),
3557 TOJSON_IMPL(enableSmoothing),
3559 TOJSON_IMPL(smoothedHangTimeMs)
3564 static void from_json(
const nlohmann::json& j, TxAudio& p)
3567 getOptional<bool>(
"enabled", p.enabled, j,
true);
3568 getOptional<TxAudio::TxCodec_t>(
"encoder", p.encoder, j, TxAudio::TxCodec_t::ctOpus8000);
3569 getOptional<std::string>(
"encoderName", p.encoderName, j, EMPTY_STRING);
3570 getOptional(
"framingMs", p.framingMs, j, 60);
3571 getOptional(
"blockCount", p.blockCount, j, 0);
3572 getOptional(
"fdx", p.fdx, j,
false);
3573 getOptional(
"noHdrExt", p.noHdrExt, j,
false);
3574 getOptional(
"maxTxSecs", p.maxTxSecs, j, 0);
3575 getOptional(
"extensionSendInterval", p.extensionSendInterval, j, 10);
3576 getOptional(
"initialHeaderBurst", p.initialHeaderBurst, j, 5);
3577 getOptional(
"trailingHeaderBurst", p.trailingHeaderBurst, j, 5);
3578 getOptional(
"startTxNotifications", p.startTxNotifications, j, 5);
3579 getOptional(
"customRtpPayloadType", p.customRtpPayloadType, j, -1);
3580 getOptional(
"resetRtpOnTx", p.resetRtpOnTx, j,
true);
3581 getOptional(
"enableSmoothing", p.enableSmoothing, j,
true);
3582 getOptional(
"dtx", p.dtx, j,
false);
3583 getOptional(
"smoothedHangTimeMs", p.smoothedHangTimeMs, j, 0);
3589 JSON_SERIALIZED_CLASS(AudioRegistryDevice)
3601 IMPLEMENT_JSON_SERIALIZATION()
3640 manufacturer.clear();
3642 serialNumber.clear();
3647 virtual std::string toString()
3651 snprintf(buff,
sizeof(buff),
"hardwareId=%s, isDefault=%d, name=%s, manufacturer=%s, model=%s, serialNumber=%s, type=%s, extra=%s",
3655 manufacturer.c_str(),
3657 serialNumber.c_str(),
3661 return std::string(buff);
3665 static void to_json(nlohmann::json& j,
const AudioRegistryDevice& p)
3668 TOJSON_IMPL(hardwareId),
3669 TOJSON_IMPL(isDefault),
3671 TOJSON_IMPL(manufacturer),
3673 TOJSON_IMPL(serialNumber),
3678 static void from_json(
const nlohmann::json& j, AudioRegistryDevice& p)
3681 getOptional<std::string>(
"hardwareId", p.hardwareId, j, EMPTY_STRING);
3682 getOptional<bool>(
"isDefault", p.isDefault, j,
false);
3683 getOptional(
"name", p.name, j);
3684 getOptional(
"manufacturer", p.manufacturer, j);
3685 getOptional(
"model", p.model, j);
3686 getOptional(
"serialNumber", p.serialNumber, j);
3687 getOptional(
"type", p.type, j);
3688 getOptional(
"extra", p.extra, j);
3693 JSON_SERIALIZED_CLASS(AudioRegistry)
3705 IMPLEMENT_JSON_SERIALIZATION()
3726 virtual std::string toString()
3728 return std::string(
"");
3732 static void to_json(nlohmann::json& j,
const AudioRegistry& p)
3735 TOJSON_IMPL(inputs),
3736 TOJSON_IMPL(outputs)
3739 static void from_json(
const nlohmann::json& j, AudioRegistry& p)
3742 getOptional<std::vector<AudioRegistryDevice>>(
"inputs", p.inputs, j);
3743 getOptional<std::vector<AudioRegistryDevice>>(
"outputs", p.outputs, j);
3747 JSON_SERIALIZED_CLASS(AudioDeviceDescriptor)
3759 IMPLEMENT_JSON_SERIALIZATION()
3853 direction = dirUnknown;
3854 boostPercentage = 0;
3859 manufacturer.clear();
3862 serialNumber.clear();
3868 virtual std::string toString()
3872 snprintf(buff,
sizeof(buff),
"deviceId=%d, samplingRate=%d, channels=%d, direction=%d, boostPercentage=%d, isAdad=%d, name=%s, manufacturer=%s, model=%s, hardwareId=%s, serialNumber=%s, isDefault=%d, type=%s, present=%d, extra=%s",
3880 manufacturer.c_str(),
3883 serialNumber.c_str(),
3889 return std::string(buff);
3893 static void to_json(nlohmann::json& j,
const AudioDeviceDescriptor& p)
3896 TOJSON_IMPL(deviceId),
3897 TOJSON_IMPL(samplingRate),
3898 TOJSON_IMPL(channels),
3899 TOJSON_IMPL(direction),
3900 TOJSON_IMPL(boostPercentage),
3901 TOJSON_IMPL(isAdad),
3903 TOJSON_IMPL(manufacturer),
3905 TOJSON_IMPL(hardwareId),
3906 TOJSON_IMPL(serialNumber),
3907 TOJSON_IMPL(isDefault),
3910 TOJSON_IMPL(isPresent)
3913 static void from_json(
const nlohmann::json& j, AudioDeviceDescriptor& p)
3916 getOptional<int>(
"deviceId", p.deviceId, j, 0);
3917 getOptional<int>(
"samplingRate", p.samplingRate, j, 0);
3918 getOptional<int>(
"channels", p.channels, j, 0);
3919 getOptional<AudioDeviceDescriptor::Direction_t>(
"direction", p.direction, j,
3920 AudioDeviceDescriptor::Direction_t::dirUnknown);
3921 getOptional<int>(
"boostPercentage", p.boostPercentage, j, 0);
3923 getOptional<bool>(
"isAdad", p.isAdad, j,
false);
3924 getOptional(
"name", p.name, j);
3925 getOptional(
"manufacturer", p.manufacturer, j);
3926 getOptional(
"model", p.model, j);
3927 getOptional(
"hardwareId", p.hardwareId, j);
3928 getOptional(
"serialNumber", p.serialNumber, j);
3929 getOptional(
"isDefault", p.isDefault, j);
3930 getOptional(
"type", p.type, j);
3931 getOptional(
"extra", p.extra, j);
3932 getOptional<bool>(
"isPresent", p.isPresent, j,
false);
3936 JSON_SERIALIZED_CLASS(ListOfAudioDeviceDescriptor)
3939 IMPLEMENT_JSON_SERIALIZATION()
3943 std::vector<AudioDeviceDescriptor> list;
3962 static void from_json(
const nlohmann::json& j, ListOfAudioDeviceDescriptor& p)
3965 getOptional<std::vector<AudioDeviceDescriptor>>(
"list", p.list, j);
3969 JSON_SERIALIZED_CLASS(Audio)
3979 IMPLEMENT_JSON_SERIALIZATION()
3980 IMPLEMENT_JSON_DOCUMENTATION(
Audio)
4022 inputHardwareId.clear();
4025 outputHardwareId.clear();
4027 outputLevelLeft = 100;
4028 outputLevelRight = 100;
4029 outputMuted =
false;
4033 static void to_json(nlohmann::json& j,
const Audio& p)
4036 TOJSON_IMPL(enabled),
4037 TOJSON_IMPL(inputId),
4038 TOJSON_IMPL(inputHardwareId),
4039 TOJSON_IMPL(inputGain),
4040 TOJSON_IMPL(outputId),
4041 TOJSON_IMPL(outputHardwareId),
4042 TOJSON_IMPL(outputLevelLeft),
4043 TOJSON_IMPL(outputLevelRight),
4044 TOJSON_IMPL(outputMuted)
4047 static void from_json(
const nlohmann::json& j, Audio& p)
4050 getOptional<bool>(
"enabled", p.enabled, j,
true);
4051 getOptional<int>(
"inputId", p.inputId, j, 0);
4052 getOptional<std::string>(
"inputHardwareId", p.inputHardwareId, j, EMPTY_STRING);
4053 getOptional<int>(
"inputGain", p.inputGain, j, 0);
4054 getOptional<int>(
"outputId", p.outputId, j, 0);
4055 getOptional<std::string>(
"outputHardwareId", p.outputHardwareId, j, EMPTY_STRING);
4056 getOptional<int>(
"outputGain", p.outputGain, j, 0);
4057 getOptional<int>(
"outputLevelLeft", p.outputLevelLeft, j, 100);
4058 getOptional<int>(
"outputLevelRight", p.outputLevelRight, j, 100);
4059 getOptional<bool>(
"outputMuted", p.outputMuted, j,
false);
4063 JSON_SERIALIZED_CLASS(TalkerInformation)
4075 IMPLEMENT_JSON_SERIALIZATION()
4091 matSsrcGenerated = 2
4092 } ManufacturedAliasType_t;
4137 aliasSpecializer = 0;
4139 manufacturedAliasType = ManufacturedAliasType_t::matNone;
4144 static void to_json(nlohmann::json& j,
const TalkerInformation& p)
4148 TOJSON_IMPL(nodeId),
4149 TOJSON_IMPL(rxFlags),
4150 TOJSON_IMPL(txPriority),
4152 TOJSON_IMPL(duplicateCount),
4153 TOJSON_IMPL(aliasSpecializer),
4154 TOJSON_IMPL(rxMuted),
4155 TOJSON_IMPL(manufacturedAliasType),
4159 static void from_json(
const nlohmann::json& j, TalkerInformation& p)
4162 getOptional<std::string>(
"alias", p.alias, j, EMPTY_STRING);
4163 getOptional<std::string>(
"nodeId", p.nodeId, j, EMPTY_STRING);
4164 getOptional<uint16_t>(
"rxFlags", p.rxFlags, j, 0);
4165 getOptional<int>(
"txPriority", p.txPriority, j, 0);
4166 getOptional<uint32_t>(
"txId", p.txId, j, 0);
4167 getOptional<int>(
"duplicateCount", p.duplicateCount, j, 0);
4168 getOptional<uint16_t>(
"aliasSpecializer", p.aliasSpecializer, j, 0);
4169 getOptional<bool>(
"rxMuted", p.rxMuted, j,
false);
4170 getOptional<TalkerInformation::ManufacturedAliasType_t>(
"manufacturedAliasType", p.manufacturedAliasType, j, TalkerInformation::ManufacturedAliasType_t::matNone);
4171 getOptional<uint32_t>(
"ssrc", p.ssrc, j, 0);
4175 JSON_SERIALIZED_CLASS(GroupTalkers)
4189 IMPLEMENT_JSON_SERIALIZATION()
4194 std::vector<TalkerInformation>
list;
4207 static void to_json(nlohmann::json& j,
const GroupTalkers& p)
4213 static void from_json(
const nlohmann::json& j, GroupTalkers& p)
4216 getOptional<std::vector<TalkerInformation>>(
"list", p.list, j);
4220 JSON_SERIALIZED_CLASS(Presence)
4232 IMPLEMENT_JSON_SERIALIZATION()
4233 IMPLEMENT_JSON_DOCUMENTATION(
Presence)
4281 minIntervalSecs = 5;
4282 reduceImmediacy =
false;
4286 static void to_json(nlohmann::json& j,
const Presence& p)
4289 TOJSON_IMPL(format),
4290 TOJSON_IMPL(intervalSecs),
4291 TOJSON_IMPL(listenOnly),
4292 TOJSON_IMPL(minIntervalSecs),
4293 TOJSON_IMPL(reduceImmediacy)
4296 static void from_json(
const nlohmann::json& j, Presence& p)
4299 getOptional<Presence::Format_t>(
"format", p.format, j, Presence::Format_t::pfEngage);
4300 getOptional<int>(
"intervalSecs", p.intervalSecs, j, 30);
4301 getOptional<bool>(
"listenOnly", p.listenOnly, j,
false);
4302 getOptional<int>(
"minIntervalSecs", p.minIntervalSecs, j, 5);
4303 getOptional<bool>(
"reduceImmediacy", p.reduceImmediacy, j,
false);
4308 JSON_SERIALIZED_CLASS(Advertising)
4320 IMPLEMENT_JSON_SERIALIZATION()
4342 alwaysAdvertise =
false;
4346 static void to_json(nlohmann::json& j,
const Advertising& p)
4349 TOJSON_IMPL(enabled),
4350 TOJSON_IMPL(intervalMs),
4351 TOJSON_IMPL(alwaysAdvertise)
4354 static void from_json(
const nlohmann::json& j, Advertising& p)
4357 getOptional(
"enabled", p.enabled, j,
false);
4358 getOptional<int>(
"intervalMs", p.intervalMs, j, 20000);
4359 getOptional<bool>(
"alwaysAdvertise", p.alwaysAdvertise, j,
false);
4363 JSON_SERIALIZED_CLASS(GroupPriorityTranslation)
4375 IMPLEMENT_JSON_SERIALIZATION()
4401 static void to_json(nlohmann::json& j,
const GroupPriorityTranslation& p)
4406 TOJSON_IMPL(priority)
4409 static void from_json(
const nlohmann::json& j, GroupPriorityTranslation& p)
4412 j.at(
"rx").get_to(p.rx);
4413 j.at(
"tx").get_to(p.tx);
4414 FROMJSON_IMPL(priority,
int, 0);
4418 JSON_SERIALIZED_CLASS(GroupTimeline)
4432 IMPLEMENT_JSON_SERIALIZATION()
4451 maxAudioTimeMs = 30000;
4456 static void to_json(nlohmann::json& j,
const GroupTimeline& p)
4459 TOJSON_IMPL(enabled),
4460 TOJSON_IMPL(maxAudioTimeMs),
4461 TOJSON_IMPL(recordAudio)
4464 static void from_json(
const nlohmann::json& j, GroupTimeline& p)
4467 getOptional(
"enabled", p.enabled, j,
true);
4468 getOptional<int>(
"maxAudioTimeMs", p.maxAudioTimeMs, j, 30000);
4469 getOptional(
"recordAudio", p.recordAudio, j,
true);
4572 IMPLEMENT_JSON_SERIALIZATION()
4594 static void to_json(nlohmann::json& j,
const GroupAppTransport& p)
4597 TOJSON_IMPL(enabled),
4601 static void from_json(
const nlohmann::json& j, GroupAppTransport& p)
4604 getOptional<bool>(
"enabled", p.enabled, j,
false);
4605 getOptional<std::string>(
"id", p.id, j);
4609 JSON_SERIALIZED_CLASS(RtpProfile)
4621 IMPLEMENT_JSON_SERIALIZATION()
4639 jmReleaseOnTxEnd = 2
4702 jitterMaxMs = 10000;
4704 jitterMaxFactor = 8;
4705 jitterTrimPercentage = 10;
4706 jitterUnderrunReductionThresholdMs = 1500;
4707 jitterUnderrunReductionAger = 100;
4708 latePacketSequenceRange = 5;
4709 latePacketTimestampRangeMs = 2000;
4710 inboundProcessorInactivityMs = 500;
4711 jitterForceTrimAtMs = 0;
4712 rtcpPresenceTimeoutMs = 45000;
4713 jitterMaxExceededClipPerc = 10;
4714 jitterMaxExceededClipHangMs = 1500;
4715 zombieLifetimeMs = 15000;
4716 jitterMaxTrimMs = 250;
4717 signalledInboundProcessorInactivityMs = (inboundProcessorInactivityMs * 4);
4721 static void to_json(nlohmann::json& j,
const RtpProfile& p)
4725 TOJSON_IMPL(jitterMaxMs),
4726 TOJSON_IMPL(inboundProcessorInactivityMs),
4727 TOJSON_IMPL(jitterMinMs),
4728 TOJSON_IMPL(jitterMaxFactor),
4729 TOJSON_IMPL(jitterTrimPercentage),
4730 TOJSON_IMPL(jitterUnderrunReductionThresholdMs),
4731 TOJSON_IMPL(jitterUnderrunReductionAger),
4732 TOJSON_IMPL(latePacketSequenceRange),
4733 TOJSON_IMPL(latePacketTimestampRangeMs),
4734 TOJSON_IMPL(inboundProcessorInactivityMs),
4735 TOJSON_IMPL(jitterForceTrimAtMs),
4736 TOJSON_IMPL(jitterMaxExceededClipPerc),
4737 TOJSON_IMPL(jitterMaxExceededClipHangMs),
4738 TOJSON_IMPL(zombieLifetimeMs),
4739 TOJSON_IMPL(jitterMaxTrimMs),
4740 TOJSON_IMPL(signalledInboundProcessorInactivityMs)
4743 static void from_json(
const nlohmann::json& j, RtpProfile& p)
4746 FROMJSON_IMPL(mode, RtpProfile::JitterMode_t, RtpProfile::JitterMode_t::jmStandard);
4747 FROMJSON_IMPL(jitterMaxMs,
int, 10000);
4748 FROMJSON_IMPL(jitterMinMs,
int, 20);
4749 FROMJSON_IMPL(jitterMaxFactor,
int, 8);
4750 FROMJSON_IMPL(jitterTrimPercentage,
int, 10);
4751 FROMJSON_IMPL(jitterUnderrunReductionThresholdMs,
int, 1500);
4752 FROMJSON_IMPL(jitterUnderrunReductionAger,
int, 100);
4753 FROMJSON_IMPL(latePacketSequenceRange,
int, 5);
4754 FROMJSON_IMPL(latePacketTimestampRangeMs,
int, 2000);
4755 FROMJSON_IMPL(inboundProcessorInactivityMs,
int, 500);
4756 FROMJSON_IMPL(jitterForceTrimAtMs,
int, 0);
4757 FROMJSON_IMPL(rtcpPresenceTimeoutMs,
int, 45000);
4758 FROMJSON_IMPL(jitterMaxExceededClipPerc,
int, 10);
4759 FROMJSON_IMPL(jitterMaxExceededClipHangMs,
int, 1500);
4760 FROMJSON_IMPL(zombieLifetimeMs,
int, 15000);
4761 FROMJSON_IMPL(jitterMaxTrimMs,
int, 250);
4762 FROMJSON_IMPL(signalledInboundProcessorInactivityMs,
int, (p.inboundProcessorInactivityMs * 4));
4766 JSON_SERIALIZED_CLASS(Tls)
4778 IMPLEMENT_JSON_SERIALIZATION()
4779 IMPLEMENT_JSON_DOCUMENTATION(
Tls)
4809 allowSelfSignedCertificates =
false;
4810 caCertificates.clear();
4811 subjectRestrictions.clear();
4812 issuerRestrictions.clear();
4817 static void to_json(nlohmann::json& j,
const Tls& p)
4820 TOJSON_IMPL(verifyPeers),
4821 TOJSON_IMPL(allowSelfSignedCertificates),
4822 TOJSON_IMPL(caCertificates),
4823 TOJSON_IMPL(subjectRestrictions),
4824 TOJSON_IMPL(issuerRestrictions),
4825 TOJSON_IMPL(crlSerials)
4828 static void from_json(
const nlohmann::json& j, Tls& p)
4831 getOptional<bool>(
"verifyPeers", p.verifyPeers, j,
true);
4832 getOptional<bool>(
"allowSelfSignedCertificates", p.allowSelfSignedCertificates, j,
false);
4833 getOptional<std::vector<std::string>>(
"caCertificates", p.caCertificates, j);
4834 getOptional<StringRestrictionList>(
"subjectRestrictions", p.subjectRestrictions, j);
4835 getOptional<StringRestrictionList>(
"issuerRestrictions", p.issuerRestrictions, j);
4836 getOptional<std::vector<std::string>>(
"crlSerials", p.crlSerials, j);
4840 JSON_SERIALIZED_CLASS(RangerPackets)
4854 IMPLEMENT_JSON_SERIALIZATION()
4875 virtual void initForDocumenting()
4880 static void to_json(nlohmann::json& j,
const RangerPackets& p)
4883 TOJSON_IMPL(hangTimerSecs),
4887 static void from_json(
const nlohmann::json& j, RangerPackets& p)
4890 getOptional<int>(
"hangTimerSecs", p.hangTimerSecs, j, 11);
4891 getOptional<int>(
"count", p.count, j, 5);
4895 JSON_SERIALIZED_CLASS(Source)
4909 IMPLEMENT_JSON_SERIALIZATION()
4910 IMPLEMENT_JSON_DOCUMENTATION(
Source)
4917 uint8_t _internal_binary_nodeId[ENGAGE_MAX_NODE_ID_SIZE];
4923 uint8_t _internal_binary_alias[ENGAGE_MAX_ALIAS_SIZE];
4933 memset(_internal_binary_nodeId, 0,
sizeof(_internal_binary_nodeId));
4936 memset(_internal_binary_alias, 0,
sizeof(_internal_binary_alias));
4939 virtual void initForDocumenting()
4944 static void to_json(nlohmann::json& j,
const Source& p)
4947 TOJSON_IMPL(nodeId),
4951 static void from_json(
const nlohmann::json& j, Source& p)
4954 FROMJSON_IMPL_SIMPLE(nodeId);
4955 FROMJSON_IMPL_SIMPLE(alias);
4959 JSON_SERIALIZED_CLASS(GroupBridgeTargetOutputDetail)
4973 IMPLEMENT_JSON_SERIALIZATION()
5010 mode = BridgingOpMode_t::bomRaw;
5011 mixedStreamTxParams.clear();
5014 virtual void initForDocumenting()
5020 static void to_json(nlohmann::json& j,
const GroupBridgeTargetOutputDetail& p)
5024 TOJSON_IMPL(mixedStreamTxParams)
5027 static void from_json(
const nlohmann::json& j, GroupBridgeTargetOutputDetail& p)
5030 FROMJSON_IMPL_SIMPLE(mode);
5031 FROMJSON_IMPL_SIMPLE(mixedStreamTxParams);
5035 JSON_SERIALIZED_CLASS(Group)
5048 IMPLEMENT_JSON_SERIALIZATION()
5049 IMPLEMENT_JSON_DOCUMENTATION(
Group)
5072 iagpAnonymousAlias = 0,
5076 } InboundAliasGenerationPolicy_t;
5248 bridgeTargetOutputDetail.clear();
5252 interfaceName.clear();
5258 cryptoPassword.clear();
5262 rallypoints.clear();
5263 rallypointCluster.clear();
5268 blockAdvertising =
false;
5274 enableMulticastFailover =
false;
5275 multicastFailoverSecs = 10;
5277 rtcpPresenceRx.clear();
5279 presenceGroupAffinities.clear();
5280 disablePacketEvents =
false;
5282 rfc4733RtpPayloadId = 0;
5283 inboundRtpPayloadTypeTranslations.clear();
5284 priorityTranslation.clear();
5286 stickyTidHangSecs = 10;
5287 anonymousAlias.clear();
5290 appTransport.clear();
5291 allowLoopback =
false;
5294 rangerPackets.clear();
5296 _wasDeserialized_rtpProfile =
false;
5298 txImpairment.clear();
5299 rxImpairment.clear();
5301 specializerAffinities.clear();
5305 ignoreSources.clear();
5307 languageCode.clear();
5314 inboundAliasGenerationPolicy = iagpAnonymousAlias;
5317 ignoreAudioTraffic =
false;
5321 static void to_json(nlohmann::json& j,
const Group& p)
5325 TOJSON_IMPL(bridgeTargetOutputDetail),
5328 TOJSON_IMPL(spokenName),
5329 TOJSON_IMPL(interfaceName),
5332 TOJSON_IMPL(txOptions),
5333 TOJSON_IMPL(txAudio),
5334 TOJSON_IMPL(presence),
5335 TOJSON_IMPL(cryptoPassword),
5344 TOJSON_IMPL(timeline),
5345 TOJSON_IMPL(blockAdvertising),
5346 TOJSON_IMPL(source),
5347 TOJSON_IMPL(maxRxSecs),
5348 TOJSON_IMPL(enableMulticastFailover),
5349 TOJSON_IMPL(multicastFailoverSecs),
5350 TOJSON_IMPL(rtcpPresenceRx),
5351 TOJSON_IMPL(presenceGroupAffinities),
5352 TOJSON_IMPL(disablePacketEvents),
5353 TOJSON_IMPL(rfc4733RtpPayloadId),
5354 TOJSON_IMPL(inboundRtpPayloadTypeTranslations),
5355 TOJSON_IMPL(priorityTranslation),
5356 TOJSON_IMPL(stickyTidHangSecs),
5357 TOJSON_IMPL(anonymousAlias),
5358 TOJSON_IMPL(lbCrypto),
5359 TOJSON_IMPL(appTransport),
5360 TOJSON_IMPL(allowLoopback),
5361 TOJSON_IMPL(rangerPackets),
5363 TOJSON_IMPL(txImpairment),
5364 TOJSON_IMPL(rxImpairment),
5366 TOJSON_IMPL(specializerAffinities),
5368 TOJSON_IMPL(securityLevel),
5370 TOJSON_IMPL(ignoreSources),
5372 TOJSON_IMPL(languageCode),
5373 TOJSON_IMPL(synVoice),
5375 TOJSON_IMPL(rxCapture),
5376 TOJSON_IMPL(txCapture),
5378 TOJSON_IMPL(blobRtpPayloadType),
5380 TOJSON_IMPL(inboundAliasGenerationPolicy),
5382 TOJSON_IMPL(gateIn),
5384 TOJSON_IMPL(ignoreAudioTraffic)
5390 if(p._wasDeserialized_rtpProfile || p.isDocumenting())
5392 j[
"rtpProfile"] = p.rtpProfile;
5395 if(p.isDocumenting())
5397 j[
"rallypointCluster"] = p.rallypointCluster;
5398 j[
"rallypoints"] = p.rallypoints;
5403 if(!p.rallypointCluster.rallypoints.empty())
5405 j[
"rallypointCluster"] = p.rallypointCluster;
5407 else if(!p.rallypoints.empty())
5409 j[
"rallypoints"] = p.rallypoints;
5413 static void from_json(
const nlohmann::json& j, Group& p)
5416 j.at(
"type").get_to(p.type);
5417 getOptional<GroupBridgeTargetOutputDetail>(
"bridgeTargetOutputDetail", p.bridgeTargetOutputDetail, j);
5418 j.at(
"id").get_to(p.id);
5419 getOptional<std::string>(
"name", p.name, j);
5420 getOptional<std::string>(
"spokenName", p.spokenName, j);
5421 getOptional<std::string>(
"interfaceName", p.interfaceName, j);
5422 getOptional<NetworkAddress>(
"rx", p.rx, j);
5423 getOptional<NetworkAddress>(
"tx", p.tx, j);
5424 getOptional<NetworkTxOptions>(
"txOptions", p.txOptions, j);
5425 getOptional<std::string>(
"cryptoPassword", p.cryptoPassword, j);
5426 getOptional<std::string>(
"alias", p.alias, j);
5427 getOptional<TxAudio>(
"txAudio", p.txAudio, j);
5428 getOptional<Presence>(
"presence", p.presence, j);
5429 getOptional<std::vector<Rallypoint>>(
"rallypoints", p.rallypoints, j);
5430 getOptional<RallypointCluster>(
"rallypointCluster", p.rallypointCluster, j);
5431 getOptional<Audio>(
"audio", p.audio, j);
5432 getOptional<GroupTimeline>(
"timeline", p.timeline, j);
5433 getOptional<bool>(
"blockAdvertising", p.blockAdvertising, j,
false);
5434 getOptional<std::string>(
"source", p.source, j);
5435 getOptional<int>(
"maxRxSecs", p.maxRxSecs, j, 0);
5436 getOptional<bool>(
"enableMulticastFailover", p.enableMulticastFailover, j,
false);
5437 getOptional<int>(
"multicastFailoverSecs", p.multicastFailoverSecs, j, 10);
5438 getOptional<NetworkAddress>(
"rtcpPresenceRx", p.rtcpPresenceRx, j);
5439 getOptional<std::vector<std::string>>(
"presenceGroupAffinities", p.presenceGroupAffinities, j);
5440 getOptional<bool>(
"disablePacketEvents", p.disablePacketEvents, j,
false);
5441 getOptional<int>(
"rfc4733RtpPayloadId", p.rfc4733RtpPayloadId, j, 0);
5442 getOptional<std::vector<RtpPayloadTypeTranslation>>(
"inboundRtpPayloadTypeTranslations", p.inboundRtpPayloadTypeTranslations, j);
5443 getOptional<GroupPriorityTranslation>(
"priorityTranslation", p.priorityTranslation, j);
5444 getOptional<int>(
"stickyTidHangSecs", p.stickyTidHangSecs, j, 10);
5445 getOptional<std::string>(
"anonymousAlias", p.anonymousAlias, j);
5446 getOptional<bool>(
"lbCrypto", p.lbCrypto, j,
false);
5447 getOptional<GroupAppTransport>(
"appTransport", p.appTransport, j);
5448 getOptional<bool>(
"allowLoopback", p.allowLoopback, j,
false);
5449 getOptionalWithIndicator<RtpProfile>(
"rtpProfile", p.rtpProfile, j, &p._wasDeserialized_rtpProfile);
5450 getOptional<RangerPackets>(
"rangerPackets", p.rangerPackets, j);
5451 getOptional<TransportImpairment>(
"txImpairment", p.txImpairment, j);
5452 getOptional<TransportImpairment>(
"rxImpairment", p.rxImpairment, j);
5453 getOptional<std::vector<uint16_t>>(
"specializerAffinities", p.specializerAffinities, j);
5454 getOptional<uint32_t>(
"securityLevel", p.securityLevel, j, 0);
5455 getOptional<std::vector<Source>>(
"ignoreSources", p.ignoreSources, j);
5456 getOptional<std::string>(
"languageCode", p.languageCode, j);
5457 getOptional<std::string>(
"synVoice", p.synVoice, j);
5459 getOptional<PacketCapturer>(
"rxCapture", p.rxCapture, j);
5460 getOptional<PacketCapturer>(
"txCapture", p.txCapture, j);
5464 getOptional<Group::InboundAliasGenerationPolicy_t>(
"inboundAliasGenerationPolicy", p.inboundAliasGenerationPolicy, j, Group::InboundAliasGenerationPolicy_t::iagpAnonymousAlias);
5466 getOptional<AudioGate>(
"gateIn", p.gateIn, j);
5468 getOptional<bool>(
"ignoreAudioTraffic", p.ignoreAudioTraffic, j,
false);
5470 FROMJSON_BASE_IMPL();
5475 JSON_SERIALIZED_CLASS(Mission)
5478 IMPLEMENT_JSON_SERIALIZATION()
5479 IMPLEMENT_JSON_DOCUMENTATION(
Mission)
5484 std::vector<Group> groups;
5485 std::chrono::system_clock::time_point begins;
5486 std::chrono::system_clock::time_point ends;
5487 std::string certStoreId;
5488 int multicastFailoverPolicy;
5496 certStoreId.clear();
5497 multicastFailoverPolicy = 0;
5502 static void to_json(nlohmann::json& j,
const Mission& p)
5507 TOJSON_IMPL(groups),
5508 TOJSON_IMPL(certStoreId),
5509 TOJSON_IMPL(multicastFailoverPolicy),
5510 TOJSON_IMPL(rallypoint)
5514 static void from_json(
const nlohmann::json& j, Mission& p)
5517 j.at(
"id").get_to(p.id);
5518 j.at(
"name").get_to(p.name);
5523 j.at(
"groups").get_to(p.groups);
5530 FROMJSON_IMPL(certStoreId, std::string, EMPTY_STRING);
5531 FROMJSON_IMPL(multicastFailoverPolicy,
int, 0);
5532 getOptional<Rallypoint>(
"rallypoint", p.rallypoint, j);
5536 JSON_SERIALIZED_CLASS(LicenseDescriptor)
5548 IMPLEMENT_JSON_SERIALIZATION()
5557 static const int STATUS_OK = 0;
5558 static const int ERR_NULL_ENTITLEMENT_KEY = -1;
5559 static const int ERR_NULL_LICENSE_KEY = -2;
5560 static const int ERR_INVALID_LICENSE_KEY_LEN = -3;
5561 static const int ERR_LICENSE_KEY_VERIFICATION_FAILURE = -4;
5562 static const int ERR_ACTIVATION_CODE_VERIFICATION_FAILURE = -5;
5563 static const int ERR_INVALID_EXPIRATION_DATE = -6;
5564 static const int ERR_GENERAL_FAILURE = -7;
5565 static const int ERR_NOT_INITIALIZED = -8;
5566 static const int ERR_REQUIRES_ACTIVATION = -9;
5567 static const int ERR_LICENSE_NOT_SUITED_FOR_ACTIVATION = -10;
5575 static const uint8_t LIC_CARGO_FLAG_LIMIT_TO_FEATURES = 0x01;
5639 entitlement.clear();
5641 activationCode.clear();
5644 expiresFormatted.clear();
5649 status = ERR_NOT_INITIALIZED;
5650 manufacturerId.clear();
5654 static void to_json(nlohmann::json& j,
const LicenseDescriptor& p)
5658 {
"entitlement",
"*entitlement*"},
5660 TOJSON_IMPL(activationCode),
5662 TOJSON_IMPL(expires),
5663 TOJSON_IMPL(expiresFormatted),
5665 TOJSON_IMPL(deviceId),
5666 TOJSON_IMPL(status),
5668 {
"manufacturerId",
"*manufacturerId*"},
5670 TOJSON_IMPL(cargoFlags)
5674 static void from_json(
const nlohmann::json& j, LicenseDescriptor& p)
5677 FROMJSON_IMPL(entitlement, std::string, EMPTY_STRING);
5678 FROMJSON_IMPL(key, std::string, EMPTY_STRING);
5679 FROMJSON_IMPL(activationCode, std::string, EMPTY_STRING);
5680 FROMJSON_IMPL(type,
int, 0);
5681 FROMJSON_IMPL(expires, time_t, 0);
5682 FROMJSON_IMPL(expiresFormatted, std::string, EMPTY_STRING);
5683 FROMJSON_IMPL(flags, uint32_t, 0);
5684 FROMJSON_IMPL(deviceId, std::string, EMPTY_STRING);
5685 FROMJSON_IMPL(status,
int, LicenseDescriptor::ERR_NOT_INITIALIZED);
5686 FROMJSON_IMPL(manufacturerId, std::string, EMPTY_STRING);
5687 FROMJSON_IMPL(cargo, std::string, EMPTY_STRING);
5688 FROMJSON_IMPL(cargoFlags, uint8_t, 0);
5693 JSON_SERIALIZED_CLASS(EngineNetworkingRpUdpStreaming)
5707 IMPLEMENT_JSON_SERIALIZATION()
5735 keepaliveIntervalSecs = 15;
5736 priority = TxPriority_t::priVoice;
5740 virtual void initForDocumenting()
5745 static void to_json(nlohmann::json& j,
const EngineNetworkingRpUdpStreaming& p)
5748 TOJSON_IMPL(enabled),
5750 TOJSON_IMPL(keepaliveIntervalSecs),
5751 TOJSON_IMPL(priority),
5755 static void from_json(
const nlohmann::json& j, EngineNetworkingRpUdpStreaming& p)
5758 getOptional<bool>(
"enabled", p.enabled, j,
false);
5759 getOptional<int>(
"port", p.port, j, 0);
5760 getOptional<int>(
"keepaliveIntervalSecs", p.keepaliveIntervalSecs, j, 15);
5761 getOptional<TxPriority_t>(
"priority", p.priority, j, TxPriority_t::priVoice);
5762 getOptional<int>(
"ttl", p.ttl, j, 64);
5766 JSON_SERIALIZED_CLASS(EnginePolicyNetworking)
5777 IMPLEMENT_JSON_SERIALIZATION()
5813 multicastRejoinSecs = 8;
5814 rallypointRtTestIntervalMs = 60000;
5815 logRtpJitterBufferStats =
false;
5816 preventMulticastFailover =
false;
5817 addressResolutionPolicy = AddressResolutionPolicy_t::arpIpv6ThenIpv4;
5819 rpUdpStreaming.clear();
5824 static void to_json(nlohmann::json& j,
const EnginePolicyNetworking& p)
5827 TOJSON_IMPL(defaultNic),
5828 TOJSON_IMPL(multicastRejoinSecs),
5830 TOJSON_IMPL(rallypointRtTestIntervalMs),
5831 TOJSON_IMPL(logRtpJitterBufferStats),
5832 TOJSON_IMPL(preventMulticastFailover),
5834 TOJSON_IMPL(rpUdpStreaming),
5835 TOJSON_IMPL(rtpProfile),
5836 TOJSON_IMPL(addressResolutionPolicy)
5839 static void from_json(
const nlohmann::json& j, EnginePolicyNetworking& p)
5842 FROMJSON_IMPL(defaultNic, std::string, EMPTY_STRING);
5843 FROMJSON_IMPL(multicastRejoinSecs,
int, 8);
5844 FROMJSON_IMPL(rallypointRtTestIntervalMs,
int, 60000);
5845 FROMJSON_IMPL(logRtpJitterBufferStats,
bool,
false);
5846 FROMJSON_IMPL(preventMulticastFailover,
bool,
false);
5848 getOptional<EngineNetworkingRpUdpStreaming>(
"rpUdpStreaming", p.rpUdpStreaming, j);
5849 getOptional<RtpProfile>(
"rtpProfile", p.rtpProfile, j);
5850 getOptional<AddressResolutionPolicy_t>(
"addressResolutionPolicy", p.addressResolutionPolicy, j, AddressResolutionPolicy_t::arpIpv6ThenIpv4);
5854 JSON_SERIALIZED_CLASS(Aec)
5866 IMPLEMENT_JSON_SERIALIZATION()
5867 IMPLEMENT_JSON_DOCUMENTATION(
Aec)
5922 static void to_json(nlohmann::json& j,
const Aec& p)
5925 TOJSON_IMPL(enabled),
5927 TOJSON_IMPL(speakerTailMs),
5931 static void from_json(
const nlohmann::json& j, Aec& p)
5934 FROMJSON_IMPL(enabled,
bool,
false);
5935 FROMJSON_IMPL(mode, Aec::Mode_t, Aec::Mode_t::aecmDefault);
5936 FROMJSON_IMPL(speakerTailMs,
int, 60);
5937 FROMJSON_IMPL(cng,
bool,
true);
5941 JSON_SERIALIZED_CLASS(Vad)
5953 IMPLEMENT_JSON_SERIALIZATION()
5954 IMPLEMENT_JSON_DOCUMENTATION(
Vad)
5974 vamVeryAggressive = 3
5995 static void to_json(nlohmann::json& j,
const Vad& p)
5998 TOJSON_IMPL(enabled),
6002 static void from_json(
const nlohmann::json& j, Vad& p)
6005 FROMJSON_IMPL(enabled,
bool,
false);
6006 FROMJSON_IMPL(mode, Vad::Mode_t, Vad::Mode_t::vamDefault);
6010 JSON_SERIALIZED_CLASS(Bridge)
6022 IMPLEMENT_JSON_SERIALIZATION()
6023 IMPLEMENT_JSON_DOCUMENTATION(
Bridge)
6054 static void to_json(nlohmann::json& j,
const Bridge& p)
6059 TOJSON_IMPL(groups),
6060 TOJSON_IMPL(enabled)
6063 static void from_json(
const nlohmann::json& j, Bridge& p)
6066 FROMJSON_IMPL(
id, std::string, EMPTY_STRING);
6067 FROMJSON_IMPL(name, std::string, EMPTY_STRING);
6068 getOptional<std::vector<std::string>>(
"groups", p.groups, j);
6069 FROMJSON_IMPL(enabled,
bool,
true);
6073 JSON_SERIALIZED_CLASS(AndroidAudio)
6085 IMPLEMENT_JSON_SERIALIZATION()
6089 constexpr static int INVALID_SESSION_ID = -9999;
6150 performanceMode = 12;
6154 sessionId = AndroidAudio::INVALID_SESSION_ID;
6159 static void to_json(nlohmann::json& j,
const AndroidAudio& p)
6163 TOJSON_IMPL(sharingMode),
6164 TOJSON_IMPL(performanceMode),
6166 TOJSON_IMPL(contentType),
6167 TOJSON_IMPL(inputPreset),
6168 TOJSON_IMPL(sessionId),
6169 TOJSON_IMPL(engineMode)
6172 static void from_json(
const nlohmann::json& j, AndroidAudio& p)
6175 FROMJSON_IMPL(api,
int, 0);
6176 FROMJSON_IMPL(sharingMode,
int, 0);
6177 FROMJSON_IMPL(performanceMode,
int, 12);
6178 FROMJSON_IMPL(usage,
int, 2);
6179 FROMJSON_IMPL(contentType,
int, 1);
6180 FROMJSON_IMPL(inputPreset,
int, 7);
6181 FROMJSON_IMPL(sessionId,
int, AndroidAudio::INVALID_SESSION_ID);
6182 FROMJSON_IMPL(engineMode,
int, 0);
6186 JSON_SERIALIZED_CLASS(EnginePolicyAudio)
6198 IMPLEMENT_JSON_SERIALIZATION()
6256 hardwareEnabled =
true;
6257 internalRate = 16000;
6258 internalChannels = 2;
6265 denoiseInput =
false;
6266 denoiseOutput =
false;
6267 saveInputPcm =
false;
6268 saveOutputPcm =
false;
6273 static void to_json(nlohmann::json& j,
const EnginePolicyAudio& p)
6276 TOJSON_IMPL(enabled),
6277 TOJSON_IMPL(hardwareEnabled),
6278 TOJSON_IMPL(internalRate),
6279 TOJSON_IMPL(internalChannels),
6280 TOJSON_IMPL(muteTxOnTx),
6283 TOJSON_IMPL(android),
6284 TOJSON_IMPL(inputAgc),
6285 TOJSON_IMPL(outputAgc),
6286 TOJSON_IMPL(denoiseInput),
6287 TOJSON_IMPL(denoiseOutput),
6288 TOJSON_IMPL(saveInputPcm),
6289 TOJSON_IMPL(saveOutputPcm),
6290 TOJSON_IMPL(registry)
6293 static void from_json(
const nlohmann::json& j, EnginePolicyAudio& p)
6296 getOptional<bool>(
"enabled", p.enabled, j,
true);
6297 getOptional<bool>(
"hardwareEnabled", p.hardwareEnabled, j,
true);
6298 FROMJSON_IMPL(internalRate,
int, 16000);
6299 FROMJSON_IMPL(internalChannels,
int, 2);
6301 FROMJSON_IMPL(muteTxOnTx,
bool,
false);
6302 getOptional<Aec>(
"aec", p.aec, j);
6303 getOptional<Vad>(
"vad", p.vad, j);
6304 getOptional<AndroidAudio>(
"android", p.android, j);
6305 getOptional<Agc>(
"inputAgc", p.inputAgc, j);
6306 getOptional<Agc>(
"outputAgc", p.outputAgc, j);
6307 FROMJSON_IMPL(denoiseInput,
bool,
false);
6308 FROMJSON_IMPL(denoiseOutput,
bool,
false);
6309 FROMJSON_IMPL(saveInputPcm,
bool,
false);
6310 FROMJSON_IMPL(saveOutputPcm,
bool,
false);
6311 getOptional<AudioRegistry>(
"registry", p.registry, j);
6315 JSON_SERIALIZED_CLASS(SecurityCertificate)
6327 IMPLEMENT_JSON_SERIALIZATION()
6349 certificate.clear();
6354 static void to_json(nlohmann::json& j,
const SecurityCertificate& p)
6357 TOJSON_IMPL(certificate),
6361 static void from_json(
const nlohmann::json& j, SecurityCertificate& p)
6364 FROMJSON_IMPL(certificate, std::string, EMPTY_STRING);
6365 FROMJSON_IMPL(key, std::string, EMPTY_STRING);
6370 JSON_SERIALIZED_CLASS(EnginePolicySecurity)
6383 IMPLEMENT_JSON_SERIALIZATION()
6416 certificate.clear();
6417 caCertificates.clear();
6421 static void to_json(nlohmann::json& j,
const EnginePolicySecurity& p)
6424 TOJSON_IMPL(certificate),
6425 TOJSON_IMPL(caCertificates)
6428 static void from_json(
const nlohmann::json& j, EnginePolicySecurity& p)
6431 getOptional(
"certificate", p.certificate, j);
6432 getOptional<std::vector<std::string>>(
"caCertificates", p.caCertificates, j);
6436 JSON_SERIALIZED_CLASS(EnginePolicyLogging)
6448 IMPLEMENT_JSON_SERIALIZATION()
6481 enableSyslog =
false;
6485 static void to_json(nlohmann::json& j,
const EnginePolicyLogging& p)
6488 TOJSON_IMPL(maxLevel),
6489 TOJSON_IMPL(enableSyslog)
6492 static void from_json(
const nlohmann::json& j, EnginePolicyLogging& p)
6495 getOptional(
"maxLevel", p.maxLevel, j, 4);
6496 getOptional(
"enableSyslog", p.enableSyslog, j);
6501 JSON_SERIALIZED_CLASS(EnginePolicyDatabase)
6504 IMPLEMENT_JSON_SERIALIZATION()
6515 DatabaseType_t type;
6516 std::string fixedFileName;
6517 bool forceMaintenance;
6527 type = DatabaseType_t::dbtFixedMemory;
6528 fixedFileName.clear();
6529 forceMaintenance =
false;
6530 reclaimSpace =
false;
6538 TOJSON_IMPL(fixedFileName),
6539 TOJSON_IMPL(forceMaintenance),
6540 TOJSON_IMPL(reclaimSpace)
6543 static void from_json(
const nlohmann::json& j, EnginePolicyDatabase& p)
6546 FROMJSON_IMPL(type, EnginePolicyDatabase::DatabaseType_t, EnginePolicyDatabase::DatabaseType_t::dbtFixedMemory);
6547 FROMJSON_IMPL(fixedFileName, std::string, EMPTY_STRING);
6548 FROMJSON_IMPL(forceMaintenance,
bool,
false);
6549 FROMJSON_IMPL(reclaimSpace,
bool,
false);
6554 JSON_SERIALIZED_CLASS(SecureSignature)
6564 IMPLEMENT_JSON_SERIALIZATION()
6585 certificate.clear();
6591 static void to_json(nlohmann::json& j,
const SecureSignature& p)
6594 TOJSON_IMPL(certificate),
6596 TOJSON_IMPL(signature)
6599 static void from_json(
const nlohmann::json& j, SecureSignature& p)
6602 FROMJSON_IMPL(certificate, std::string, EMPTY_STRING);
6604 FROMJSON_IMPL(signature, std::string, EMPTY_STRING);
6608 JSON_SERIALIZED_CLASS(NamedAudioDevice)
6611 IMPLEMENT_JSON_SERIALIZATION()
6616 std::string manufacturer;
6619 std::string serialNumber;
6632 manufacturer.clear();
6635 serialNumber.clear();
6646 TOJSON_IMPL(manufacturer),
6649 TOJSON_IMPL(serialNumber),
6652 TOJSON_IMPL(isDefault),
6655 static void from_json(
const nlohmann::json& j, NamedAudioDevice& p)
6658 getOptional<std::string>(
"name", p.name, j, EMPTY_STRING);
6659 getOptional<std::string>(
"manufacturer", p.manufacturer, j, EMPTY_STRING);
6660 getOptional<std::string>(
"model", p.model, j, EMPTY_STRING);
6661 getOptional<std::string>(
"id", p.id, j, EMPTY_STRING);
6662 getOptional<std::string>(
"serialNumber", p.serialNumber, j, EMPTY_STRING);
6663 getOptional<std::string>(
"type", p.type, j, EMPTY_STRING);
6664 getOptional<std::string>(
"extra", p.extra, j, EMPTY_STRING);
6665 getOptional<bool>(
"isDefault", p.isDefault, j,
false);
6670 JSON_SERIALIZED_CLASS(EnginePolicyNamedAudioDevices)
6673 IMPLEMENT_JSON_SERIALIZATION()
6677 std::vector<NamedAudioDevice> inputs;
6678 std::vector<NamedAudioDevice> outputs;
6695 TOJSON_IMPL(inputs),
6696 TOJSON_IMPL(outputs)
6699 static void from_json(
const nlohmann::json& j, EnginePolicyNamedAudioDevices& p)
6702 getOptional<std::vector<NamedAudioDevice>>(
"inputs", p.inputs, j);
6703 getOptional<std::vector<NamedAudioDevice>>(
"outputs", p.outputs, j);
6707 JSON_SERIALIZED_CLASS(Licensing)
6721 IMPLEMENT_JSON_SERIALIZATION()
6748 entitlement.clear();
6750 activationCode.clear();
6752 manufacturerId.clear();
6756 static void to_json(nlohmann::json& j,
const Licensing& p)
6759 TOJSON_IMPL(entitlement),
6761 TOJSON_IMPL(activationCode),
6762 TOJSON_IMPL(deviceId),
6763 TOJSON_IMPL(manufacturerId)
6766 static void from_json(
const nlohmann::json& j, Licensing& p)
6769 FROMJSON_IMPL(entitlement, std::string, EMPTY_STRING);
6770 FROMJSON_IMPL(key, std::string, EMPTY_STRING);
6771 FROMJSON_IMPL(activationCode, std::string, EMPTY_STRING);
6772 FROMJSON_IMPL(deviceId, std::string, EMPTY_STRING);
6773 FROMJSON_IMPL(manufacturerId, std::string, EMPTY_STRING);
6777 JSON_SERIALIZED_CLASS(DiscoveryMagellan)
6789 IMPLEMENT_JSON_SERIALIZATION()
6814 interfaceName.clear();
6820 static void to_json(nlohmann::json& j,
const DiscoveryMagellan& p)
6823 TOJSON_IMPL(enabled),
6824 TOJSON_IMPL(interfaceName),
6825 TOJSON_IMPL(security),
6829 static void from_json(
const nlohmann::json& j, DiscoveryMagellan& p)
6832 getOptional(
"enabled", p.enabled, j,
false);
6833 getOptional<Tls>(
"tls", p.tls, j);
6834 getOptional<SecurityCertificate>(
"security", p.security, j);
6835 FROMJSON_IMPL(interfaceName, std::string, EMPTY_STRING);
6839 JSON_SERIALIZED_CLASS(DiscoverySsdp)
6851 IMPLEMENT_JSON_SERIALIZATION()
6882 interfaceName.clear();
6884 searchTerms.clear();
6885 ageTimeoutMs = 30000;
6886 advertising.clear();
6890 static void to_json(nlohmann::json& j,
const DiscoverySsdp& p)
6893 TOJSON_IMPL(enabled),
6894 TOJSON_IMPL(interfaceName),
6895 TOJSON_IMPL(address),
6896 TOJSON_IMPL(searchTerms),
6897 TOJSON_IMPL(ageTimeoutMs),
6898 TOJSON_IMPL(advertising)
6901 static void from_json(
const nlohmann::json& j, DiscoverySsdp& p)
6904 getOptional(
"enabled", p.enabled, j,
false);
6905 getOptional<std::string>(
"interfaceName", p.interfaceName, j);
6907 getOptional<NetworkAddress>(
"address", p.address, j);
6908 if(p.address.address.empty())
6910 p.address.address =
"255.255.255.255";
6912 if(p.address.port <= 0)
6914 p.address.port = 1900;
6917 getOptional<std::vector<std::string>>(
"searchTerms", p.searchTerms, j);
6918 getOptional<int>(
"ageTimeoutMs", p.ageTimeoutMs, j, 30000);
6919 getOptional<Advertising>(
"advertising", p.advertising, j);
6923 JSON_SERIALIZED_CLASS(DiscoverySap)
6935 IMPLEMENT_JSON_SERIALIZATION()
6962 interfaceName.clear();
6964 ageTimeoutMs = 30000;
6965 advertising.clear();
6969 static void to_json(nlohmann::json& j,
const DiscoverySap& p)
6972 TOJSON_IMPL(enabled),
6973 TOJSON_IMPL(interfaceName),
6974 TOJSON_IMPL(address),
6975 TOJSON_IMPL(ageTimeoutMs),
6976 TOJSON_IMPL(advertising)
6979 static void from_json(
const nlohmann::json& j, DiscoverySap& p)
6982 getOptional(
"enabled", p.enabled, j,
false);
6983 getOptional<std::string>(
"interfaceName", p.interfaceName, j);
6984 getOptional<NetworkAddress>(
"address", p.address, j);
6985 if(p.address.address.empty())
6987 p.address.address =
"224.2.127.254";
6989 if(p.address.port <= 0)
6991 p.address.port = 9875;
6994 getOptional<int>(
"ageTimeoutMs", p.ageTimeoutMs, j, 30000);
6995 getOptional<Advertising>(
"advertising", p.advertising, j);
6999 JSON_SERIALIZED_CLASS(DiscoveryCistech)
7013 IMPLEMENT_JSON_SERIALIZATION()
7018 std::string interfaceName;
7030 interfaceName.clear();
7032 ageTimeoutMs = 30000;
7039 TOJSON_IMPL(enabled),
7040 TOJSON_IMPL(interfaceName),
7041 TOJSON_IMPL(address),
7042 TOJSON_IMPL(ageTimeoutMs)
7045 static void from_json(
const nlohmann::json& j, DiscoveryCistech& p)
7048 getOptional(
"enabled", p.enabled, j,
false);
7049 getOptional<std::string>(
"interfaceName", p.interfaceName, j);
7050 getOptional<NetworkAddress>(
"address", p.address, j);
7051 getOptional<int>(
"ageTimeoutMs", p.ageTimeoutMs, j, 30000);
7056 JSON_SERIALIZED_CLASS(DiscoveryTrellisware)
7068 IMPLEMENT_JSON_SERIALIZATION()
7091 static void to_json(nlohmann::json& j,
const DiscoveryTrellisware& p)
7094 TOJSON_IMPL(enabled),
7095 TOJSON_IMPL(security)
7098 static void from_json(
const nlohmann::json& j, DiscoveryTrellisware& p)
7101 getOptional(
"enabled", p.enabled, j,
false);
7102 getOptional<SecurityCertificate>(
"security", p.security, j);
7106 JSON_SERIALIZED_CLASS(DiscoveryConfiguration)
7118 IMPLEMENT_JSON_SERIALIZATION()
7151 static void to_json(nlohmann::json& j,
const DiscoveryConfiguration& p)
7154 TOJSON_IMPL(magellan),
7157 TOJSON_IMPL(cistech),
7158 TOJSON_IMPL(trellisware)
7161 static void from_json(
const nlohmann::json& j, DiscoveryConfiguration& p)
7164 getOptional<DiscoveryMagellan>(
"magellan", p.magellan, j);
7165 getOptional<DiscoverySsdp>(
"ssdp", p.ssdp, j);
7166 getOptional<DiscoverySap>(
"sap", p.sap, j);
7167 getOptional<DiscoveryCistech>(
"cistech", p.cistech, j);
7168 getOptional<DiscoveryTrellisware>(
"trellisware", p.trellisware, j);
7173 JSON_SERIALIZED_CLASS(EnginePolicyInternals)
7187 IMPLEMENT_JSON_SERIALIZATION()
7202 int logTaskQueueStatsIntervalMs;
7204 bool enableLazySpeakerClosure;
7241 housekeeperIntervalMs = 1000;
7242 logTaskQueueStatsIntervalMs = 0;
7245 enableLazySpeakerClosure =
false;
7246 rpClusterStrategy = RallypointCluster::ConnectionStrategy_t::csRoundRobin;
7247 rpClusterRolloverSecs = 10;
7248 rtpExpirationCheckIntervalMs = 250;
7249 rpConnectionTimeoutSecs = 0;
7250 rpTransactionTimeoutMs = 0;
7251 stickyTidHangSecs = 10;
7252 uriStreamingIntervalMs = 60;
7253 delayedMicrophoneClosureSecs = 15;
7258 static void to_json(nlohmann::json& j,
const EnginePolicyInternals& p)
7261 TOJSON_IMPL(watchdog),
7262 TOJSON_IMPL(housekeeperIntervalMs),
7263 TOJSON_IMPL(logTaskQueueStatsIntervalMs),
7264 TOJSON_IMPL(maxTxSecs),
7265 TOJSON_IMPL(maxRxSecs),
7266 TOJSON_IMPL(enableLazySpeakerClosure),
7267 TOJSON_IMPL(rpClusterStrategy),
7268 TOJSON_IMPL(rpClusterRolloverSecs),
7269 TOJSON_IMPL(rtpExpirationCheckIntervalMs),
7270 TOJSON_IMPL(rpConnectionTimeoutSecs),
7271 TOJSON_IMPL(rpTransactionTimeoutMs),
7272 TOJSON_IMPL(stickyTidHangSecs),
7273 TOJSON_IMPL(uriStreamingIntervalMs),
7274 TOJSON_IMPL(delayedMicrophoneClosureSecs),
7278 static void from_json(
const nlohmann::json& j, EnginePolicyInternals& p)
7281 getOptional<WatchdogSettings>(
"watchdog", p.watchdog, j);
7282 getOptional<int>(
"housekeeperIntervalMs", p.housekeeperIntervalMs, j, 1000);
7283 getOptional<int>(
"logTaskQueueStatsIntervalMs", p.logTaskQueueStatsIntervalMs, j, 0);
7284 getOptional<int>(
"maxTxSecs", p.maxTxSecs, j, 30);
7285 getOptional<int>(
"maxRxSecs", p.maxRxSecs, j, 0);
7286 getOptional<bool>(
"enableLazySpeakerClosure", p.enableLazySpeakerClosure, j,
false);
7287 getOptional<RallypointCluster::ConnectionStrategy_t>(
"rpClusterStrategy", p.rpClusterStrategy, j, RallypointCluster::ConnectionStrategy_t::csRoundRobin);
7288 getOptional<int>(
"rpClusterRolloverSecs", p.rpClusterRolloverSecs, j, 10);
7289 getOptional<int>(
"rtpExpirationCheckIntervalMs", p.rtpExpirationCheckIntervalMs, j, 250);
7290 getOptional<int>(
"rpConnectionTimeoutSecs", p.rpConnectionTimeoutSecs, j, 0);
7291 getOptional<int>(
"rpTransactionTimeoutMs", p.rpTransactionTimeoutMs, j, 0);
7292 getOptional<int>(
"stickyTidHangSecs", p.stickyTidHangSecs, j, 10);
7293 getOptional<int>(
"uriStreamingIntervalMs", p.uriStreamingIntervalMs, j, 60);
7294 getOptional<int>(
"delayedMicrophoneClosureSecs", p.delayedMicrophoneClosureSecs, j, 15);
7295 getOptional<TuningSettings>(
"tuning", p.tuning, j);
7299 JSON_SERIALIZED_CLASS(EnginePolicyTimelines)
7313 IMPLEMENT_JSON_SERIALIZATION()
7375 storageRoot.clear();
7376 maxStorageMb = 1024;
7377 maxMemMb = maxStorageMb;
7378 maxAudioEventMemMb = maxMemMb;
7379 maxDiskMb = maxStorageMb;
7380 maxEventAgeSecs = (86400 * 30);
7381 groomingIntervalSecs = (60 * 30);
7383 autosaveIntervalSecs = 5;
7385 disableSigningAndVerification =
false;
7390 static void to_json(nlohmann::json& j,
const EnginePolicyTimelines& p)
7393 TOJSON_IMPL(enabled),
7394 TOJSON_IMPL(storageRoot),
7395 TOJSON_IMPL(maxMemMb),
7396 TOJSON_IMPL(maxAudioEventMemMb),
7397 TOJSON_IMPL(maxDiskMb),
7398 TOJSON_IMPL(maxEventAgeSecs),
7399 TOJSON_IMPL(maxEvents),
7400 TOJSON_IMPL(groomingIntervalSecs),
7401 TOJSON_IMPL(autosaveIntervalSecs),
7402 TOJSON_IMPL(security),
7403 TOJSON_IMPL(disableSigningAndVerification),
7404 TOJSON_IMPL(ephemeral)
7407 static void from_json(
const nlohmann::json& j, EnginePolicyTimelines& p)
7410 getOptional<bool>(
"enabled", p.enabled, j,
true);
7411 getOptional<std::string>(
"storageRoot", p.storageRoot, j, EMPTY_STRING);
7413 getOptional<int>(
"maxStorageMb", p.maxStorageMb, j, 1024);
7414 getOptional<int>(
"maxMemMb", p.maxMemMb, j, p.maxStorageMb);
7415 getOptional<int>(
"maxAudioEventMemMb", p.maxAudioEventMemMb, j, p.maxMemMb);
7416 getOptional<int>(
"maxDiskMb", p.maxDiskMb, j, p.maxStorageMb);
7417 getOptional<long>(
"maxEventAgeSecs", p.maxEventAgeSecs, j, (86400 * 30));
7418 getOptional<long>(
"groomingIntervalSecs", p.groomingIntervalSecs, j, (60 * 30));
7419 getOptional<long>(
"autosaveIntervalSecs", p.autosaveIntervalSecs, j, 5);
7420 getOptional<int>(
"maxEvents", p.maxEvents, j, 1000);
7421 getOptional<SecurityCertificate>(
"security", p.security, j);
7422 getOptional<bool>(
"disableSigningAndVerification", p.disableSigningAndVerification, j,
false);
7423 getOptional<bool>(
"ephemeral", p.ephemeral, j,
false);
7428 JSON_SERIALIZED_CLASS(RtpMapEntry)
7440 IMPLEMENT_JSON_SERIALIZATION()
7462 rtpPayloadType = -1;
7466 static void to_json(nlohmann::json& j,
const RtpMapEntry& p)
7470 TOJSON_IMPL(engageType),
7471 TOJSON_IMPL(rtpPayloadType)
7474 static void from_json(
const nlohmann::json& j, RtpMapEntry& p)
7477 getOptional<std::string>(
"name", p.name, j, EMPTY_STRING);
7478 getOptional<int>(
"engageType", p.engageType, j, -1);
7479 getOptional<int>(
"rtpPayloadType", p.rtpPayloadType, j, -1);
7483 JSON_SERIALIZED_CLASS(ExternalModule)
7495 IMPLEMENT_JSON_SERIALIZATION()
7517 configuration.clear();
7521 static void to_json(nlohmann::json& j,
const ExternalModule& p)
7528 if(!p.configuration.empty())
7530 j[
"configuration"] = p.configuration;
7533 static void from_json(
const nlohmann::json& j, ExternalModule& p)
7536 getOptional<std::string>(
"name", p.name, j, EMPTY_STRING);
7537 getOptional<std::string>(
"file", p.file, j, EMPTY_STRING);
7541 p.configuration = j.at(
"configuration");
7545 p.configuration.clear();
7551 JSON_SERIALIZED_CLASS(ExternalCodecDescriptor)
7563 IMPLEMENT_JSON_SERIALIZATION()
7586 rtpPayloadType = -1;
7589 rtpTsMultiplier = 0;
7593 static void to_json(nlohmann::json& j,
const ExternalCodecDescriptor& p)
7596 TOJSON_IMPL(rtpPayloadType),
7597 TOJSON_IMPL(samplingRate),
7598 TOJSON_IMPL(channels),
7599 TOJSON_IMPL(rtpTsMultiplier)
7602 static void from_json(
const nlohmann::json& j, ExternalCodecDescriptor& p)
7606 getOptional<int>(
"rtpPayloadType", p.rtpPayloadType, j, -1);
7607 getOptional<int>(
"samplingRate", p.samplingRate, j, -1);
7608 getOptional<int>(
"channels", p.channels, j, -1);
7609 getOptional<int>(
"rtpTsMultiplier", p.rtpTsMultiplier, j, -1);
7613 JSON_SERIALIZED_CLASS(EngineStatusReportConfiguration)
7625 IMPLEMENT_JSON_SERIALIZATION()
7657 includeMemoryDetail =
false;
7658 includeTaskQueueDetail =
false;
7663 static void to_json(nlohmann::json& j,
const EngineStatusReportConfiguration& p)
7666 TOJSON_IMPL(fileName),
7667 TOJSON_IMPL(intervalSecs),
7668 TOJSON_IMPL(enabled),
7669 TOJSON_IMPL(includeMemoryDetail),
7670 TOJSON_IMPL(includeTaskQueueDetail),
7674 static void from_json(
const nlohmann::json& j, EngineStatusReportConfiguration& p)
7677 getOptional<std::string>(
"fileName", p.fileName, j);
7678 getOptional<int>(
"intervalSecs", p.intervalSecs, j, 60);
7679 getOptional<bool>(
"enabled", p.enabled, j,
false);
7680 getOptional<std::string>(
"runCmd", p.runCmd, j);
7681 getOptional<bool>(
"includeMemoryDetail", p.includeMemoryDetail, j,
false);
7682 getOptional<bool>(
"includeTaskQueueDetail", p.includeTaskQueueDetail, j,
false);
7686 JSON_SERIALIZED_CLASS(EnginePolicy)
7700 IMPLEMENT_JSON_SERIALIZATION()
7757 dataDirectory.clear();
7768 namedAudioDevices.clear();
7769 externalCodecs.clear();
7771 statusReport.clear();
7775 static void to_json(nlohmann::json& j,
const EnginePolicy& p)
7778 TOJSON_IMPL(dataDirectory),
7779 TOJSON_IMPL(licensing),
7780 TOJSON_IMPL(security),
7781 TOJSON_IMPL(networking),
7783 TOJSON_IMPL(discovery),
7784 TOJSON_IMPL(logging),
7785 TOJSON_IMPL(internals),
7786 TOJSON_IMPL(timelines),
7787 TOJSON_IMPL(database),
7788 TOJSON_IMPL(featureset),
7789 TOJSON_IMPL(namedAudioDevices),
7790 TOJSON_IMPL(externalCodecs),
7791 TOJSON_IMPL(rtpMap),
7792 TOJSON_IMPL(statusReport)
7795 static void from_json(
const nlohmann::json& j, EnginePolicy& p)
7798 FROMJSON_IMPL_SIMPLE(dataDirectory);
7799 FROMJSON_IMPL_SIMPLE(licensing);
7800 FROMJSON_IMPL_SIMPLE(security);
7801 FROMJSON_IMPL_SIMPLE(networking);
7802 FROMJSON_IMPL_SIMPLE(audio);
7803 FROMJSON_IMPL_SIMPLE(discovery);
7804 FROMJSON_IMPL_SIMPLE(logging);
7805 FROMJSON_IMPL_SIMPLE(internals);
7806 FROMJSON_IMPL_SIMPLE(timelines);
7807 FROMJSON_IMPL_SIMPLE(database);
7808 FROMJSON_IMPL_SIMPLE(featureset);
7809 FROMJSON_IMPL_SIMPLE(namedAudioDevices);
7810 FROMJSON_IMPL_SIMPLE(externalCodecs);
7811 FROMJSON_IMPL_SIMPLE(rtpMap);
7812 FROMJSON_IMPL_SIMPLE(statusReport);
7817 JSON_SERIALIZED_CLASS(TalkgroupAsset)
7829 IMPLEMENT_JSON_SERIALIZATION()
7852 static void to_json(nlohmann::json& j,
const TalkgroupAsset& p)
7855 TOJSON_IMPL(nodeId),
7859 static void from_json(
const nlohmann::json& j, TalkgroupAsset& p)
7862 getOptional<std::string>(
"nodeId", p.nodeId, j);
7863 getOptional<Group>(
"group", p.group, j);
7867 JSON_SERIALIZED_CLASS(EngageDiscoveredGroup)
7877 IMPLEMENT_JSON_SERIALIZATION()
7907 static void to_json(nlohmann::json& j,
const EngageDiscoveredGroup& p)
7916 static void from_json(
const nlohmann::json& j, EngageDiscoveredGroup& p)
7919 getOptional<std::string>(
"id", p.id, j);
7920 getOptional<int>(
"type", p.type, j, 0);
7921 getOptional<NetworkAddress>(
"rx", p.rx, j);
7922 getOptional<NetworkAddress>(
"tx", p.tx, j);
7926 JSON_SERIALIZED_CLASS(RallypointPeer)
7938 IMPLEMENT_JSON_SERIALIZATION()
7945 olpUseRpConfiguration = 0,
7952 } OutboundLeafPolicy_t;
7993 certificate.clear();
7994 connectionTimeoutSecs = 0;
7995 forceIsMeshLeaf =
false;
7996 outboundLeafPolicy = OutboundLeafPolicy_t::olpUseRpConfiguration;
7997 protocol = Rallypoint::RpProtocol_t::rppTlsTcp;
7999 additionalProtocols.clear();
8003 static void to_json(nlohmann::json& j,
const RallypointPeer& p)
8007 TOJSON_IMPL(enabled),
8009 TOJSON_IMPL(certificate),
8010 TOJSON_IMPL(connectionTimeoutSecs),
8011 TOJSON_IMPL(forceIsMeshLeaf),
8012 TOJSON_IMPL(outboundLeafPolicy),
8013 TOJSON_IMPL(protocol),
8015 TOJSON_IMPL(additionalProtocols)
8018 static void from_json(
const nlohmann::json& j, RallypointPeer& p)
8021 j.at(
"id").get_to(p.id);
8022 getOptional<bool>(
"enabled", p.enabled, j,
true);
8023 getOptional<NetworkAddress>(
"host", p.host, j);
8024 getOptional<SecurityCertificate>(
"certificate", p.certificate, j);
8025 getOptional<int>(
"connectionTimeoutSecs", p.connectionTimeoutSecs, j, 0);
8026 getOptional<bool>(
"forceIsMeshLeaf", p.forceIsMeshLeaf, j,
false);
8027 getOptional<RallypointPeer::OutboundLeafPolicy_t>(
"outboundLeafPolicy", p.outboundLeafPolicy, j, RallypointPeer::OutboundLeafPolicy_t::olpUseRpConfiguration);
8028 getOptional<Rallypoint::RpProtocol_t>(
"protocol", p.protocol, j, Rallypoint::RpProtocol_t::rppTlsTcp);
8029 getOptional<std::string>(
"path", p.path, j);
8030 getOptional<std::string>(
"additionalProtocols", p.additionalProtocols, j);
8034 JSON_SERIALIZED_CLASS(RallypointServerLimits)
8046 IMPLEMENT_JSON_SERIALIZATION()
8104 maxMulticastReflectors = 0;
8105 maxRegisteredStreams = 0;
8107 maxRxPacketsPerSec = 0;
8108 maxTxPacketsPerSec = 0;
8109 maxRxBytesPerSec = 0;
8110 maxTxBytesPerSec = 0;
8112 maxInboundBacklog = 64;
8113 lowPriorityQueueThreshold = 64;
8114 normalPriorityQueueThreshold = 256;
8115 denyNewConnectionCpuThreshold = 75;
8116 warnAtCpuThreshold = 65;
8120 static void to_json(nlohmann::json& j,
const RallypointServerLimits& p)
8123 TOJSON_IMPL(maxClients),
8124 TOJSON_IMPL(maxPeers),
8125 TOJSON_IMPL(maxMulticastReflectors),
8126 TOJSON_IMPL(maxRegisteredStreams),
8127 TOJSON_IMPL(maxStreamPaths),
8128 TOJSON_IMPL(maxRxPacketsPerSec),
8129 TOJSON_IMPL(maxTxPacketsPerSec),
8130 TOJSON_IMPL(maxRxBytesPerSec),
8131 TOJSON_IMPL(maxTxBytesPerSec),
8132 TOJSON_IMPL(maxQOpsPerSec),
8133 TOJSON_IMPL(maxInboundBacklog),
8134 TOJSON_IMPL(lowPriorityQueueThreshold),
8135 TOJSON_IMPL(normalPriorityQueueThreshold),
8136 TOJSON_IMPL(denyNewConnectionCpuThreshold),
8137 TOJSON_IMPL(warnAtCpuThreshold)
8140 static void from_json(
const nlohmann::json& j, RallypointServerLimits& p)
8143 getOptional<uint32_t>(
"maxClients", p.maxClients, j, 0);
8144 getOptional<uint32_t>(
"maxPeers", p.maxPeers, j, 0);
8145 getOptional<uint32_t>(
"maxMulticastReflectors", p.maxMulticastReflectors, j, 0);
8146 getOptional<uint32_t>(
"maxRegisteredStreams", p.maxRegisteredStreams, j, 0);
8147 getOptional<uint32_t>(
"maxStreamPaths", p.maxStreamPaths, j, 0);
8148 getOptional<uint32_t>(
"maxRxPacketsPerSec", p.maxRxPacketsPerSec, j, 0);
8149 getOptional<uint32_t>(
"maxTxPacketsPerSec", p.maxTxPacketsPerSec, j, 0);
8150 getOptional<uint32_t>(
"maxRxBytesPerSec", p.maxRxBytesPerSec, j, 0);
8151 getOptional<uint32_t>(
"maxTxBytesPerSec", p.maxTxBytesPerSec, j, 0);
8152 getOptional<uint32_t>(
"maxQOpsPerSec", p.maxQOpsPerSec, j, 0);
8153 getOptional<uint32_t>(
"maxInboundBacklog", p.maxInboundBacklog, j, 64);
8154 getOptional<uint32_t>(
"lowPriorityQueueThreshold", p.lowPriorityQueueThreshold, j, 64);
8155 getOptional<uint32_t>(
"normalPriorityQueueThreshold", p.normalPriorityQueueThreshold, j, 256);
8156 getOptional<uint32_t>(
"denyNewConnectionCpuThreshold", p.denyNewConnectionCpuThreshold, j, 75);
8157 getOptional<uint32_t>(
"warnAtCpuThreshold", p.warnAtCpuThreshold, j, 65);
8161 JSON_SERIALIZED_CLASS(RallypointServerStatusReportConfiguration)
8173 IMPLEMENT_JSON_SERIALIZATION()
8208 includeLinks =
false;
8209 includePeerLinkDetails =
false;
8210 includeClientLinkDetails =
false;
8215 static void to_json(nlohmann::json& j,
const RallypointServerStatusReportConfiguration& p)
8218 TOJSON_IMPL(fileName),
8219 TOJSON_IMPL(intervalSecs),
8220 TOJSON_IMPL(enabled),
8221 TOJSON_IMPL(includeLinks),
8222 TOJSON_IMPL(includePeerLinkDetails),
8223 TOJSON_IMPL(includeClientLinkDetails),
8227 static void from_json(
const nlohmann::json& j, RallypointServerStatusReportConfiguration& p)
8230 getOptional<std::string>(
"fileName", p.fileName, j);
8231 getOptional<int>(
"intervalSecs", p.intervalSecs, j, 60);
8232 getOptional<bool>(
"enabled", p.enabled, j,
false);
8233 getOptional<bool>(
"includeLinks", p.includeLinks, j,
false);
8234 getOptional<bool>(
"includePeerLinkDetails", p.includePeerLinkDetails, j,
false);
8235 getOptional<bool>(
"includeClientLinkDetails", p.includeClientLinkDetails, j,
false);
8236 getOptional<std::string>(
"runCmd", p.runCmd, j);
8240 JSON_SERIALIZED_CLASS(RallypointServerLinkGraph)
8243 IMPLEMENT_JSON_SERIALIZATION()
8286 includeDigraphEnclosure =
true;
8287 includeClients =
false;
8288 coreRpStyling =
"[shape=hexagon color=firebrick style=filled]";
8289 leafRpStyling =
"[shape=box color=gray style=filled]";
8290 clientStyling.clear();
8295 static void to_json(nlohmann::json& j,
const RallypointServerLinkGraph& p)
8298 TOJSON_IMPL(fileName),
8299 TOJSON_IMPL(minRefreshSecs),
8300 TOJSON_IMPL(enabled),
8301 TOJSON_IMPL(includeDigraphEnclosure),
8302 TOJSON_IMPL(includeClients),
8303 TOJSON_IMPL(coreRpStyling),
8304 TOJSON_IMPL(leafRpStyling),
8305 TOJSON_IMPL(clientStyling),
8309 static void from_json(
const nlohmann::json& j, RallypointServerLinkGraph& p)
8312 getOptional<std::string>(
"fileName", p.fileName, j);
8313 getOptional<int>(
"minRefreshSecs", p.minRefreshSecs, j, 5);
8314 getOptional<bool>(
"enabled", p.enabled, j,
false);
8315 getOptional<bool>(
"includeDigraphEnclosure", p.includeDigraphEnclosure, j,
true);
8316 getOptional<bool>(
"includeClients", p.includeClients, j,
false);
8317 getOptional<std::string>(
"coreRpStyling", p.coreRpStyling, j,
"[shape=hexagon color=firebrick style=filled]");
8318 getOptional<std::string>(
"leafRpStyling", p.leafRpStyling, j,
"[shape=box color=gray style=filled]");
8319 getOptional<std::string>(
"clientStyling", p.clientStyling, j);
8320 getOptional<std::string>(
"runCmd", p.runCmd, j);
8325 JSON_SERIALIZED_CLASS(RallypointServerStreamStatsExport)
8335 IMPLEMENT_JSON_SERIALIZATION()
8378 resetCountersAfterExport =
false;
8384 static void to_json(nlohmann::json& j,
const RallypointServerStreamStatsExport& p)
8387 TOJSON_IMPL(fileName),
8388 TOJSON_IMPL(intervalSecs),
8389 TOJSON_IMPL(enabled),
8390 TOJSON_IMPL(resetCountersAfterExport),
8391 TOJSON_IMPL(runCmd),
8395 static void from_json(
const nlohmann::json& j, RallypointServerStreamStatsExport& p)
8398 getOptional<std::string>(
"fileName", p.fileName, j);
8399 getOptional<int>(
"intervalSecs", p.intervalSecs, j, 60);
8400 getOptional<bool>(
"enabled", p.enabled, j,
false);
8401 getOptional<bool>(
"resetCountersAfterExport", p.resetCountersAfterExport, j,
false);
8402 getOptional<std::string>(
"runCmd", p.runCmd, j);
8403 getOptional<RallypointServerStreamStatsExport::ExportFormat_t>(
"format", p.format, j, RallypointServerStreamStatsExport::ExportFormat_t::fmtCsv);
8407 JSON_SERIALIZED_CLASS(RallypointServerRouteMap)
8410 IMPLEMENT_JSON_SERIALIZATION()
8439 static void to_json(nlohmann::json& j,
const RallypointServerRouteMap& p)
8442 TOJSON_IMPL(fileName),
8443 TOJSON_IMPL(minRefreshSecs),
8444 TOJSON_IMPL(enabled),
8448 static void from_json(
const nlohmann::json& j, RallypointServerRouteMap& p)
8451 getOptional<std::string>(
"fileName", p.fileName, j);
8452 getOptional<int>(
"minRefreshSecs", p.minRefreshSecs, j, 5);
8453 getOptional<bool>(
"enabled", p.enabled, j,
false);
8454 getOptional<std::string>(
"runCmd", p.runCmd, j);
8459 JSON_SERIALIZED_CLASS(ExternalHealthCheckResponder)
8471 IMPLEMENT_JSON_SERIALIZATION()
8490 immediateClose =
true;
8494 static void to_json(nlohmann::json& j,
const ExternalHealthCheckResponder& p)
8497 TOJSON_IMPL(listenPort),
8498 TOJSON_IMPL(immediateClose)
8501 static void from_json(
const nlohmann::json& j, ExternalHealthCheckResponder& p)
8504 getOptional<int>(
"listenPort", p.listenPort, j, 0);
8505 getOptional<bool>(
"immediateClose", p.immediateClose, j,
true);
8510 JSON_SERIALIZED_CLASS(PeeringConfiguration)
8520 IMPLEMENT_JSON_SERIALIZATION()
8550 static void to_json(nlohmann::json& j,
const PeeringConfiguration& p)
8554 TOJSON_IMPL(version),
8555 TOJSON_IMPL(comments),
8559 static void from_json(
const nlohmann::json& j, PeeringConfiguration& p)
8562 getOptional<std::string>(
"id", p.id, j);
8563 getOptional<int>(
"version", p.version, j, 0);
8564 getOptional<std::string>(
"comments", p.comments, j);
8565 getOptional<std::vector<RallypointPeer>>(
"peers", p.peers, j);
8569 JSON_SERIALIZED_CLASS(IgmpSnooping)
8579 IMPLEMENT_JSON_SERIALIZATION()
8602 queryIntervalMs = 125000;
8603 subscriptionTimeoutMs = 0;
8607 static void to_json(nlohmann::json& j,
const IgmpSnooping& p)
8610 TOJSON_IMPL(enabled),
8611 TOJSON_IMPL(queryIntervalMs),
8612 TOJSON_IMPL(subscriptionTimeoutMs)
8615 static void from_json(
const nlohmann::json& j, IgmpSnooping& p)
8618 getOptional<bool>(
"enabled", p.enabled, j);
8619 getOptional<int>(
"queryIntervalMs", p.queryIntervalMs, j, 125000);
8620 getOptional<int>(
"subscriptionTimeoutMs", p.subscriptionTimeoutMs, j, 0);
8625 JSON_SERIALIZED_CLASS(RallypointReflector)
8634 IMPLEMENT_JSON_SERIALIZATION()
8649 } DirectionRestriction_t;
8681 multicastInterfaceName.clear();
8682 additionalTx.clear();
8683 directionRestriction = drNone;
8687 static void to_json(nlohmann::json& j,
const RallypointReflector& p)
8693 TOJSON_IMPL(multicastInterfaceName),
8694 TOJSON_IMPL(additionalTx),
8695 TOJSON_IMPL(directionRestriction)
8698 static void from_json(
const nlohmann::json& j, RallypointReflector& p)
8701 j.at(
"id").get_to(p.id);
8702 j.at(
"rx").get_to(p.rx);
8703 j.at(
"tx").get_to(p.tx);
8704 getOptional<std::string>(
"multicastInterfaceName", p.multicastInterfaceName, j);
8705 getOptional<std::vector<NetworkAddress>>(
"additionalTx", p.additionalTx, j);
8706 getOptional<RallypointReflector::DirectionRestriction_t>(
"directionRestriction", p.directionRestriction, j, RallypointReflector::DirectionRestriction_t::drNone);
8711 JSON_SERIALIZED_CLASS(RallypointUdpStreamingIpvX)
8720 IMPLEMENT_JSON_SERIALIZATION()
8742 static void to_json(nlohmann::json& j,
const RallypointUdpStreamingIpvX& p)
8745 TOJSON_IMPL(enabled),
8746 TOJSON_IMPL(external)
8749 static void from_json(
const nlohmann::json& j, RallypointUdpStreamingIpvX& p)
8752 getOptional<bool>(
"enabled", p.enabled, j,
true);
8753 getOptional<NetworkAddress>(
"external", p.external, j);
8757 JSON_SERIALIZED_CLASS(RallypointUdpStreaming)
8766 IMPLEMENT_JSON_SERIALIZATION()
8777 ctSharedKeyAes256FullIv = 1,
8780 ctSharedKeyAes256IdxIv = 2,
8783 ctSharedKeyChaCha20FullIv = 3,
8786 ctSharedKeyChaCha20IdxIv = 4
8822 cryptoType = CryptoType_t::ctSharedKeyAes256FullIv;
8826 keepaliveIntervalSecs = 15;
8827 priority = TxPriority_t::priVoice;
8832 static void to_json(nlohmann::json& j,
const RallypointUdpStreaming& p)
8835 TOJSON_IMPL(enabled),
8836 TOJSON_IMPL(cryptoType),
8837 TOJSON_IMPL(listenPort),
8838 TOJSON_IMPL(keepaliveIntervalSecs),
8841 TOJSON_IMPL(priority),
8845 static void from_json(
const nlohmann::json& j, RallypointUdpStreaming& p)
8848 getOptional<bool>(
"enabled", p.enabled, j,
true);
8849 getOptional<RallypointUdpStreaming::CryptoType_t>(
"cryptoType", p.cryptoType, j, RallypointUdpStreaming::CryptoType_t::ctSharedKeyAes256FullIv);
8850 getOptional<int>(
"listenPort", p.listenPort, j, 7444);
8851 getOptional<int>(
"keepaliveIntervalSecs", p.keepaliveIntervalSecs, j, 15);
8852 getOptional<RallypointUdpStreamingIpvX>(
"ipv4", p.ipv4, j);
8853 getOptional<RallypointUdpStreamingIpvX>(
"ipv6", p.ipv6, j);
8854 getOptional<TxPriority_t>(
"priority", p.priority, j, TxPriority_t::priVoice);
8855 getOptional<int>(
"ttl", p.ttl, j, 64);
8859 JSON_SERIALIZED_CLASS(RallypointRpRtTimingBehavior)
8868 IMPLEMENT_JSON_SERIALIZATION()
8913 static void to_json(nlohmann::json& j,
const RallypointRpRtTimingBehavior& p)
8916 TOJSON_IMPL(behavior),
8917 TOJSON_IMPL(atOrAboveMs),
8921 static void from_json(
const nlohmann::json& j, RallypointRpRtTimingBehavior& p)
8924 getOptional<RallypointRpRtTimingBehavior::BehaviorType_t>(
"behavior", p.behavior, j, RallypointRpRtTimingBehavior::BehaviorType_t::btNone);
8925 getOptional<uint32_t>(
"atOrAboveMs", p.atOrAboveMs, j, 0);
8926 getOptional<std::string>(
"runCmd", p.runCmd, j);
8931 JSON_SERIALIZED_CLASS(RallypointWebsocketSettings)
8940 IMPLEMENT_JSON_SERIALIZATION()
8968 certificate.clear();
8969 requireClientCertificate =
false;
8974 static void to_json(nlohmann::json& j,
const RallypointWebsocketSettings& p)
8977 TOJSON_IMPL(enabled),
8978 TOJSON_IMPL(listenPort),
8979 TOJSON_IMPL(certificate),
8980 TOJSON_IMPL(requireClientCertificate),
8981 TOJSON_IMPL(requireTls)
8984 static void from_json(
const nlohmann::json& j, RallypointWebsocketSettings& p)
8987 getOptional<bool>(
"enabled", p.enabled, j,
false);
8988 getOptional<int>(
"listenPort", p.listenPort, j, 8443);
8989 getOptional<SecurityCertificate>(
"certificate", p.certificate, j);
8990 getOptional<bool>(
"requireClientCertificate", p.requireClientCertificate, j,
false);
8991 getOptional<bool>(
"requireTls", p.requireTls, j,
true);
8997 JSON_SERIALIZED_CLASS(RallypointAdvertisingSettings)
9006 IMPLEMENT_JSON_SERIALIZATION()
9037 serviceName =
"_rallypoint._tcp.local.";
9038 interfaceName.clear();
9044 static void to_json(nlohmann::json& j,
const RallypointAdvertisingSettings& p)
9047 TOJSON_IMPL(enabled),
9048 TOJSON_IMPL(hostName),
9049 TOJSON_IMPL(serviceName),
9050 TOJSON_IMPL(interfaceName),
9055 static void from_json(
const nlohmann::json& j, RallypointAdvertisingSettings& p)
9058 getOptional<bool>(
"enabled", p.enabled, j,
false);
9059 getOptional<std::string>(
"hostName", p.hostName, j);
9060 getOptional<std::string>(
"serviceName", p.serviceName, j,
"_rallypoint._tcp.local.");
9061 getOptional<std::string>(
"interfaceName", p.interfaceName, j);
9063 getOptional<int>(
"port", p.port, j, 0);
9064 getOptional<int>(
"ttl", p.ttl, j, 60);
9071 JSON_SERIALIZED_CLASS(NamedIdentity)
9080 IMPLEMENT_JSON_SERIALIZATION()
9098 certificate.clear();
9102 static void to_json(nlohmann::json& j,
const NamedIdentity& p)
9106 TOJSON_IMPL(certificate)
9109 static void from_json(
const nlohmann::json& j, NamedIdentity& p)
9112 getOptional<std::string>(
"name", p.name, j);
9113 getOptional<SecurityCertificate>(
"certificate", p.certificate, j);
9117 JSON_SERIALIZED_CLASS(RallypointExtendedGroupRestriction)
9126 IMPLEMENT_JSON_SERIALIZATION()
9144 restrictions.clear();
9148 static void to_json(nlohmann::json& j,
const RallypointExtendedGroupRestriction& p)
9152 TOJSON_IMPL(restrictions)
9155 static void from_json(
const nlohmann::json& j, RallypointExtendedGroupRestriction& p)
9158 getOptional<std::string>(
"id", p.id, j);
9159 getOptional<std::vector<StringRestrictionList>>(
"restrictions", p.restrictions, j);
9164 JSON_SERIALIZED_CLASS(RallypointServer)
9175 IMPLEMENT_JSON_SERIALIZATION()
9183 sptCertPublicKey = 2,
9186 sptCertFingerprint = 5,
9200 } StreamIdPrivacyType_t;
9396 interfaceName.clear();
9397 certificate.clear();
9398 allowMulticastForwarding =
false;
9399 peeringConfiguration.clear();
9400 peeringConfigurationFileName.clear();
9401 peeringConfigurationFileCommand.clear();
9402 peeringConfigurationFileCheckSecs = 60;
9404 statusReport.clear();
9407 externalHealthCheckResponder.clear();
9408 allowPeerForwarding =
false;
9409 multicastInterfaceName.clear();
9412 forwardDiscoveredGroups =
false;
9413 forwardMulticastAddressing =
false;
9415 disableMessageSigning =
false;
9416 multicastRestrictions.clear();
9417 igmpSnooping.clear();
9418 staticReflectors.clear();
9419 tcpTxOptions.clear();
9420 multicastTxOptions.clear();
9421 certStoreFileName.clear();
9422 certStorePasswordHex.clear();
9423 groupRestrictions.clear();
9424 configurationCheckSignalName =
"rts.7b392d1.${id}";
9427 udpStreaming.clear();
9429 normalTaskQueueBias = 0;
9430 enableLeafReflectionReverseSubscription =
false;
9431 disableLoopDetection =
false;
9432 maxSecurityLevel = 0;
9434 streamStatsExport.clear();
9435 maxOutboundPeerConnectionIntervalDeltaSecs = 15;
9436 peerRtTestIntervalMs = 60000;
9437 peerRtBehaviors.clear();
9440 advertising.clear();
9441 extendedGroupRestrictions.clear();
9442 groupRestrictionAccessPolicyType = GroupRestrictionAccessPolicyType_t::graptPermissive;
9443 ipFamily = IpFamilyType_t::ifIp4;
9447 allowedDomains.clear();
9448 blockedDomains.clear();
9449 extraDomains.clear();
9451 additionalIdentities.clear();
9452 streamIdPrivacyType = StreamIdPrivacyType_t::sptDefault;
9456 static void to_json(nlohmann::json& j,
const RallypointServer& p)
9459 TOJSON_IMPL(fipsCrypto),
9460 TOJSON_IMPL(watchdog),
9462 TOJSON_IMPL(listenPort),
9463 TOJSON_IMPL(interfaceName),
9464 TOJSON_IMPL(certificate),
9465 TOJSON_IMPL(allowMulticastForwarding),
9467 TOJSON_IMPL(peeringConfigurationFileName),
9468 TOJSON_IMPL(peeringConfigurationFileCommand),
9469 TOJSON_IMPL(peeringConfigurationFileCheckSecs),
9470 TOJSON_IMPL(ioPools),
9471 TOJSON_IMPL(statusReport),
9472 TOJSON_IMPL(limits),
9473 TOJSON_IMPL(linkGraph),
9474 TOJSON_IMPL(externalHealthCheckResponder),
9475 TOJSON_IMPL(allowPeerForwarding),
9476 TOJSON_IMPL(multicastInterfaceName),
9478 TOJSON_IMPL(discovery),
9479 TOJSON_IMPL(forwardDiscoveredGroups),
9480 TOJSON_IMPL(forwardMulticastAddressing),
9481 TOJSON_IMPL(isMeshLeaf),
9482 TOJSON_IMPL(disableMessageSigning),
9483 TOJSON_IMPL(multicastRestrictions),
9484 TOJSON_IMPL(igmpSnooping),
9485 TOJSON_IMPL(staticReflectors),
9486 TOJSON_IMPL(tcpTxOptions),
9487 TOJSON_IMPL(multicastTxOptions),
9488 TOJSON_IMPL(certStoreFileName),
9489 TOJSON_IMPL(certStorePasswordHex),
9490 TOJSON_IMPL(groupRestrictions),
9491 TOJSON_IMPL(configurationCheckSignalName),
9492 TOJSON_IMPL(featureset),
9493 TOJSON_IMPL(licensing),
9494 TOJSON_IMPL(udpStreaming),
9495 TOJSON_IMPL(sysFlags),
9496 TOJSON_IMPL(normalTaskQueueBias),
9497 TOJSON_IMPL(enableLeafReflectionReverseSubscription),
9498 TOJSON_IMPL(disableLoopDetection),
9499 TOJSON_IMPL(maxSecurityLevel),
9500 TOJSON_IMPL(routeMap),
9501 TOJSON_IMPL(streamStatsExport),
9502 TOJSON_IMPL(maxOutboundPeerConnectionIntervalDeltaSecs),
9503 TOJSON_IMPL(peerRtTestIntervalMs),
9504 TOJSON_IMPL(peerRtBehaviors),
9505 TOJSON_IMPL(websocket),
9507 TOJSON_IMPL(advertising),
9508 TOJSON_IMPL(extendedGroupRestrictions),
9509 TOJSON_IMPL(groupRestrictionAccessPolicyType),
9510 TOJSON_IMPL(ipFamily),
9511 TOJSON_IMPL(rxCapture),
9512 TOJSON_IMPL(txCapture),
9513 TOJSON_IMPL(domainName),
9514 TOJSON_IMPL(allowedDomains),
9515 TOJSON_IMPL(blockedDomains),
9516 TOJSON_IMPL(extraDomains),
9517 TOJSON_IMPL(tuning),
9518 TOJSON_IMPL(additionalIdentities),
9519 TOJSON_IMPL(streamIdPrivacyType)
9522 static void from_json(
const nlohmann::json& j, RallypointServer& p)
9525 getOptional<FipsCryptoSettings>(
"fipsCrypto", p.fipsCrypto, j);
9526 getOptional<WatchdogSettings>(
"watchdog", p.watchdog, j);
9527 getOptional<std::string>(
"id", p.id, j);
9528 getOptional<SecurityCertificate>(
"certificate", p.certificate, j);
9529 getOptional<std::string>(
"interfaceName", p.interfaceName, j);
9530 getOptional<int>(
"listenPort", p.listenPort, j, 7443);
9531 getOptional<bool>(
"allowMulticastForwarding", p.allowMulticastForwarding, j,
false);
9533 getOptional<std::string>(
"peeringConfigurationFileName", p.peeringConfigurationFileName, j);
9534 getOptional<std::string>(
"peeringConfigurationFileCommand", p.peeringConfigurationFileCommand, j);
9535 getOptional<int>(
"peeringConfigurationFileCheckSecs", p.peeringConfigurationFileCheckSecs, j, 60);
9536 getOptional<int>(
"ioPools", p.ioPools, j, -1);
9537 getOptional<RallypointServerStatusReportConfiguration>(
"statusReport", p.statusReport, j);
9538 getOptional<RallypointServerLimits>(
"limits", p.limits, j);
9539 getOptional<RallypointServerLinkGraph>(
"linkGraph", p.linkGraph, j);
9540 getOptional<ExternalHealthCheckResponder>(
"externalHealthCheckResponder", p.externalHealthCheckResponder, j);
9541 getOptional<bool>(
"allowPeerForwarding", p.allowPeerForwarding, j,
false);
9542 getOptional<std::string>(
"multicastInterfaceName", p.multicastInterfaceName, j);
9543 getOptional<Tls>(
"tls", p.tls, j);
9544 getOptional<DiscoveryConfiguration>(
"discovery", p.discovery, j);
9545 getOptional<bool>(
"forwardDiscoveredGroups", p.forwardDiscoveredGroups, j,
false);
9546 getOptional<bool>(
"forwardMulticastAddressing", p.forwardMulticastAddressing, j,
false);
9547 getOptional<bool>(
"isMeshLeaf", p.isMeshLeaf, j,
false);
9548 getOptional<bool>(
"disableMessageSigning", p.disableMessageSigning, j,
false);
9549 getOptional<NetworkAddressRestrictionList>(
"multicastRestrictions", p.multicastRestrictions, j);
9550 getOptional<IgmpSnooping>(
"igmpSnooping", p.igmpSnooping, j);
9551 getOptional<std::vector<RallypointReflector>>(
"staticReflectors", p.staticReflectors, j);
9552 getOptional<TcpNetworkTxOptions>(
"tcpTxOptions", p.tcpTxOptions, j);
9553 getOptional<NetworkTxOptions>(
"multicastTxOptions", p.multicastTxOptions, j);
9554 getOptional<std::string>(
"certStoreFileName", p.certStoreFileName, j);
9555 getOptional<std::string>(
"certStorePasswordHex", p.certStorePasswordHex, j);
9556 getOptional<StringRestrictionList>(
"groupRestrictions", p.groupRestrictions, j);
9557 getOptional<std::string>(
"configurationCheckSignalName", p.configurationCheckSignalName, j,
"rts.7b392d1.${id}");
9558 getOptional<Licensing>(
"licensing", p.licensing, j);
9559 getOptional<Featureset>(
"featureset", p.featureset, j);
9560 getOptional<RallypointUdpStreaming>(
"udpStreaming", p.udpStreaming, j);
9561 getOptional<uint32_t>(
"sysFlags", p.sysFlags, j, 0);
9562 getOptional<uint32_t>(
"normalTaskQueueBias", p.normalTaskQueueBias, j, 0);
9563 getOptional<bool>(
"enableLeafReflectionReverseSubscription", p.enableLeafReflectionReverseSubscription, j,
false);
9564 getOptional<bool>(
"disableLoopDetection", p.disableLoopDetection, j,
false);
9565 getOptional<uint32_t>(
"maxSecurityLevel", p.maxSecurityLevel, j, 0);
9566 getOptional<RallypointServerRouteMap>(
"routeMap", p.routeMap, j);
9567 getOptional<RallypointServerStreamStatsExport>(
"streamStatsExport", p.streamStatsExport, j);
9568 getOptional<uint32_t>(
"maxOutboundPeerConnectionIntervalDeltaSecs", p.maxOutboundPeerConnectionIntervalDeltaSecs, j, 15);
9569 getOptional<int>(
"peerRtTestIntervalMs", p.peerRtTestIntervalMs, j, 60000);
9570 getOptional<std::vector<RallypointRpRtTimingBehavior>>(
"peerRtBehaviors", p.peerRtBehaviors, j);
9571 getOptional<RallypointWebsocketSettings>(
"websocket", p.websocket, j);
9572 getOptional<NsmConfiguration>(
"nsm", p.nsm, j);
9573 getOptional<RallypointAdvertisingSettings>(
"advertising", p.advertising, j);
9574 getOptional<std::vector<RallypointExtendedGroupRestriction>>(
"extendedGroupRestrictions", p.extendedGroupRestrictions, j);
9575 getOptional<GroupRestrictionAccessPolicyType_t>(
"groupRestrictionAccessPolicyType", p.groupRestrictionAccessPolicyType, j, GroupRestrictionAccessPolicyType_t::graptPermissive);
9576 getOptional<IpFamilyType_t>(
"ipFamily", p.ipFamily, j, IpFamilyType_t::ifIp4);
9577 getOptional<PacketCapturer>(
"rxCapture", p.rxCapture, j);
9578 getOptional<PacketCapturer>(
"txCapture", p.txCapture, j);
9579 getOptional<std::string>(
"domainName", p.domainName, j);
9580 getOptional<std::vector<std::string>>(
"allowedDomains", p.allowedDomains, j);
9581 getOptional<std::vector<std::string>>(
"blockedDomains", p.blockedDomains, j);
9582 getOptional<std::vector<std::string>>(
"extraDomains", p.extraDomains, j);
9583 getOptional<TuningSettings>(
"tuning", p.tuning, j);
9584 getOptional<std::vector<NamedIdentity>>(
"additionalIdentities", p.additionalIdentities, j);
9585 getOptional<RallypointServer::StreamIdPrivacyType_t>(
"streamIdPrivacyType", p.streamIdPrivacyType, j, RallypointServer::StreamIdPrivacyType_t::sptDefault);
9589 JSON_SERIALIZED_CLASS(PlatformDiscoveredService)
9601 IMPLEMENT_JSON_SERIALIZATION()
9636 configurationVersion = 0;
9640 static void to_json(nlohmann::json& j,
const PlatformDiscoveredService& p)
9646 TOJSON_IMPL(address),
9648 TOJSON_IMPL(configurationVersion)
9651 static void from_json(
const nlohmann::json& j, PlatformDiscoveredService& p)
9654 getOptional<std::string>(
"id", p.id, j);
9655 getOptional<std::string>(
"type", p.type, j);
9656 getOptional<std::string>(
"name", p.name, j);
9657 getOptional<NetworkAddress>(
"address", p.address, j);
9658 getOptional<std::string>(
"uri", p.uri, j);
9659 getOptional<uint32_t>(
"configurationVersion", p.configurationVersion, j, 0);
9699 IMPLEMENT_JSON_SERIALIZATION()
9745 mostRecentFirst =
true;
9746 startedOnOrAfter = 0;
9747 endedOnOrBefore = 0;
9750 onlyCommitted =
true;
9758 static void to_json(nlohmann::json& j,
const TimelineQueryParameters& p)
9761 TOJSON_IMPL(maxCount),
9762 TOJSON_IMPL(mostRecentFirst),
9763 TOJSON_IMPL(startedOnOrAfter),
9764 TOJSON_IMPL(endedOnOrBefore),
9765 TOJSON_IMPL(onlyDirection),
9766 TOJSON_IMPL(onlyType),
9767 TOJSON_IMPL(onlyCommitted),
9768 TOJSON_IMPL(onlyAlias),
9769 TOJSON_IMPL(onlyNodeId),
9770 TOJSON_IMPL(onlyTxId),
9774 static void from_json(
const nlohmann::json& j, TimelineQueryParameters& p)
9777 getOptional<long>(
"maxCount", p.maxCount, j, 50);
9778 getOptional<bool>(
"mostRecentFirst", p.mostRecentFirst, j,
false);
9779 getOptional<uint64_t>(
"startedOnOrAfter", p.startedOnOrAfter, j, 0);
9780 getOptional<uint64_t>(
"endedOnOrBefore", p.endedOnOrBefore, j, 0);
9781 getOptional<int>(
"onlyDirection", p.onlyDirection, j, 0);
9782 getOptional<int>(
"onlyType", p.onlyType, j, 0);
9783 getOptional<bool>(
"onlyCommitted", p.onlyCommitted, j,
true);
9784 getOptional<std::string>(
"onlyAlias", p.onlyAlias, j, EMPTY_STRING);
9785 getOptional<std::string>(
"onlyNodeId", p.onlyNodeId, j, EMPTY_STRING);
9786 getOptional<int>(
"onlyTxId", p.onlyTxId, j, 0);
9787 getOptional<std::string>(
"sql", p.sql, j, EMPTY_STRING);
9791 JSON_SERIALIZED_CLASS(CertStoreCertificate)
9800 IMPLEMENT_JSON_SERIALIZATION()
9827 certificatePem.clear();
9828 privateKeyPem.clear();
9829 internalData =
nullptr;
9834 static void to_json(nlohmann::json& j,
const CertStoreCertificate& p)
9838 TOJSON_IMPL(certificatePem),
9839 TOJSON_IMPL(privateKeyPem),
9843 static void from_json(
const nlohmann::json& j, CertStoreCertificate& p)
9846 j.at(
"id").get_to(p.id);
9847 j.at(
"certificatePem").get_to(p.certificatePem);
9848 getOptional<std::string>(
"privateKeyPem", p.privateKeyPem, j, EMPTY_STRING);
9849 getOptional<std::string>(
"tags", p.tags, j, EMPTY_STRING);
9853 JSON_SERIALIZED_CLASS(CertStore)
9862 IMPLEMENT_JSON_SERIALIZATION()
9883 certificates.clear();
9888 static void to_json(nlohmann::json& j,
const CertStore& p)
9892 TOJSON_IMPL(certificates),
9896 static void from_json(
const nlohmann::json& j, CertStore& p)
9899 getOptional<std::string>(
"id", p.id, j, EMPTY_STRING);
9900 getOptional<std::vector<CertStoreCertificate>>(
"certificates", p.certificates, j);
9901 getOptional<std::vector<KvPair>>(
"kvp", p.kvp, j);
9905 JSON_SERIALIZED_CLASS(CertStoreCertificateElement)
9914 IMPLEMENT_JSON_SERIALIZATION()
9938 hasPrivateKey =
false;
9943 static void to_json(nlohmann::json& j,
const CertStoreCertificateElement& p)
9947 TOJSON_IMPL(hasPrivateKey),
9951 if(!p.certificatePem.empty())
9953 j[
"certificatePem"] = p.certificatePem;
9956 static void from_json(
const nlohmann::json& j, CertStoreCertificateElement& p)
9959 getOptional<std::string>(
"id", p.id, j, EMPTY_STRING);
9960 getOptional<bool>(
"hasPrivateKey", p.hasPrivateKey, j,
false);
9961 getOptional<std::string>(
"certificatePem", p.certificatePem, j, EMPTY_STRING);
9962 getOptional<std::string>(
"tags", p.tags, j, EMPTY_STRING);
9966 JSON_SERIALIZED_CLASS(CertStoreDescriptor)
9975 IMPLEMENT_JSON_SERIALIZATION()
10008 certificates.clear();
10013 static void to_json(nlohmann::json& j,
const CertStoreDescriptor& p)
10015 j = nlohmann::json{
10017 TOJSON_IMPL(fileName),
10018 TOJSON_IMPL(version),
10019 TOJSON_IMPL(flags),
10020 TOJSON_IMPL(certificates),
10024 static void from_json(
const nlohmann::json& j, CertStoreDescriptor& p)
10027 getOptional<std::string>(
"id", p.id, j, EMPTY_STRING);
10028 getOptional<std::string>(
"fileName", p.fileName, j, EMPTY_STRING);
10029 getOptional<int>(
"version", p.version, j, 0);
10030 getOptional<int>(
"flags", p.flags, j, 0);
10031 getOptional<std::vector<CertStoreCertificateElement>>(
"certificates", p.certificates, j);
10032 getOptional<std::vector<KvPair>>(
"kvp", p.kvp, j);
10036 JSON_SERIALIZED_CLASS(CertificateSubjectElement)
10045 IMPLEMENT_JSON_SERIALIZATION()
10067 static void to_json(nlohmann::json& j,
const CertificateSubjectElement& p)
10069 j = nlohmann::json{
10074 static void from_json(
const nlohmann::json& j, CertificateSubjectElement& p)
10077 getOptional<std::string>(
"name", p.name, j, EMPTY_STRING);
10078 getOptional<std::string>(
"value", p.value, j, EMPTY_STRING);
10083 JSON_SERIALIZED_CLASS(CertificateDescriptor)
10092 IMPLEMENT_JSON_SERIALIZATION()
10141 selfSigned =
false;
10146 fingerprint.clear();
10147 subjectElements.clear();
10148 issuerElements.clear();
10149 certificatePem.clear();
10150 publicKeyPem.clear();
10154 static void to_json(nlohmann::json& j,
const CertificateDescriptor& p)
10156 j = nlohmann::json{
10157 TOJSON_IMPL(subject),
10158 TOJSON_IMPL(issuer),
10159 TOJSON_IMPL(selfSigned),
10160 TOJSON_IMPL(version),
10161 TOJSON_IMPL(notBefore),
10162 TOJSON_IMPL(notAfter),
10163 TOJSON_IMPL(serial),
10164 TOJSON_IMPL(fingerprint),
10165 TOJSON_IMPL(subjectElements),
10166 TOJSON_IMPL(issuerElements),
10167 TOJSON_IMPL(certificatePem),
10168 TOJSON_IMPL(publicKeyPem)
10171 static void from_json(
const nlohmann::json& j, CertificateDescriptor& p)
10174 getOptional<std::string>(
"subject", p.subject, j, EMPTY_STRING);
10175 getOptional<std::string>(
"issuer", p.issuer, j, EMPTY_STRING);
10176 getOptional<bool>(
"selfSigned", p.selfSigned, j,
false);
10177 getOptional<int>(
"version", p.version, j, 0);
10178 getOptional<std::string>(
"notBefore", p.notBefore, j, EMPTY_STRING);
10179 getOptional<std::string>(
"notAfter", p.notAfter, j, EMPTY_STRING);
10180 getOptional<std::string>(
"serial", p.serial, j, EMPTY_STRING);
10181 getOptional<std::string>(
"fingerprint", p.fingerprint, j, EMPTY_STRING);
10182 getOptional<std::string>(
"certificatePem", p.certificatePem, j, EMPTY_STRING);
10183 getOptional<std::string>(
"publicKeyPem", p.publicKeyPem, j, EMPTY_STRING);
10184 getOptional<std::vector<CertificateSubjectElement>>(
"subjectElements", p.subjectElements, j);
10185 getOptional<std::vector<CertificateSubjectElement>>(
"issuerElements", p.issuerElements, j);
10190 JSON_SERIALIZED_CLASS(RiffDescriptor)
10202 IMPLEMENT_JSON_SERIALIZATION()
10243 certDescriptor.clear();
10248 static void to_json(nlohmann::json& j,
const RiffDescriptor& p)
10250 j = nlohmann::json{
10252 TOJSON_IMPL(verified),
10253 TOJSON_IMPL(channels),
10254 TOJSON_IMPL(sampleCount),
10256 TOJSON_IMPL(certPem),
10257 TOJSON_IMPL(certDescriptor),
10258 TOJSON_IMPL(signature)
10262 static void from_json(
const nlohmann::json& j, RiffDescriptor& p)
10265 FROMJSON_IMPL(file, std::string, EMPTY_STRING);
10266 FROMJSON_IMPL(verified,
bool,
false);
10267 FROMJSON_IMPL(channels,
int, 0);
10268 FROMJSON_IMPL(sampleCount,
int, 0);
10269 FROMJSON_IMPL(meta, std::string, EMPTY_STRING);
10270 FROMJSON_IMPL(certPem, std::string, EMPTY_STRING);
10271 getOptional<CertificateDescriptor>(
"certDescriptor", p.certDescriptor, j);
10272 FROMJSON_IMPL(signature, std::string, EMPTY_STRING);
10277 JSON_SERIALIZED_CLASS(BridgeCreationDetail)
10286 IMPLEMENT_JSON_SERIALIZATION()
10304 csAlreadyExists = -3,
10307 csInvalidConfiguration = -4,
10310 csInvalidJson = -5,
10313 csInsufficientGroups = -6,
10316 csTooManyGroups = -7,
10319 csDuplicateGroup = -8,
10322 csLocalLoopDetected = -9,
10323 } CreationStatus_t;
10339 status = csUndefined;
10343 static void to_json(nlohmann::json& j,
const BridgeCreationDetail& p)
10345 j = nlohmann::json{
10347 TOJSON_IMPL(status)
10350 static void from_json(
const nlohmann::json& j, BridgeCreationDetail& p)
10353 getOptional<std::string>(
"id", p.id, j, EMPTY_STRING);
10354 getOptional<BridgeCreationDetail::CreationStatus_t>(
"status", p.status, j, BridgeCreationDetail::CreationStatus_t::csUndefined);
10357 JSON_SERIALIZED_CLASS(GroupConnectionDetail)
10366 IMPLEMENT_JSON_SERIALIZATION()
10378 ctDirectDatagram = 1,
10382 } ConnectionType_t;
10407 connectionType = ctUndefined;
10409 asFailover =
false;
10414 static void to_json(nlohmann::json& j,
const GroupConnectionDetail& p)
10416 j = nlohmann::json{
10418 TOJSON_IMPL(connectionType),
10420 TOJSON_IMPL(asFailover),
10421 TOJSON_IMPL(reason)
10426 j[
"asFailover"] = p.asFailover;
10429 static void from_json(
const nlohmann::json& j, GroupConnectionDetail& p)
10432 getOptional<std::string>(
"id", p.id, j, EMPTY_STRING);
10433 getOptional<GroupConnectionDetail::ConnectionType_t>(
"connectionType", p.connectionType, j, GroupConnectionDetail::ConnectionType_t::ctUndefined);
10434 getOptional<std::string>(
"peer", p.peer, j, EMPTY_STRING);
10435 getOptional<bool>(
"asFailover", p.asFailover, j,
false);
10436 getOptional<std::string>(
"reason", p.reason, j, EMPTY_STRING);
10440 JSON_SERIALIZED_CLASS(GroupTxDetail)
10449 IMPLEMENT_JSON_SERIALIZATION()
10467 txsNotAnAudioGroup = -1,
10473 txsNotConnected = -3,
10476 txsAlreadyTransmitting = -4,
10479 txsInvalidParams = -5,
10482 txsPriorityTooLow = -6,
10485 txsRxActiveOnNonFdx = -7,
10488 txsCannotSubscribeToInput = -8,
10494 txsTxEndedWithFailure = -10,
10497 txsBridgedButNotMultistream = -11,
10500 txsAutoEndedDueToNonMultistreamBridge = -12,
10503 txsReBeginWithoutPriorBegin = -13
10532 status = txsUndefined;
10534 remotePriority = 0;
10535 nonFdxMsHangRemaining = 0;
10540 static void to_json(nlohmann::json& j,
const GroupTxDetail& p)
10542 j = nlohmann::json{
10544 TOJSON_IMPL(status),
10545 TOJSON_IMPL(localPriority),
10550 if(p.status == GroupTxDetail::TxStatus_t::txsPriorityTooLow)
10552 j[
"remotePriority"] = p.remotePriority;
10554 else if(p.status == GroupTxDetail::TxStatus_t::txsRxActiveOnNonFdx)
10556 j[
"nonFdxMsHangRemaining"] = p.nonFdxMsHangRemaining;
10559 static void from_json(
const nlohmann::json& j, GroupTxDetail& p)
10562 getOptional<std::string>(
"id", p.id, j, EMPTY_STRING);
10563 getOptional<GroupTxDetail::TxStatus_t>(
"status", p.status, j, GroupTxDetail::TxStatus_t::txsUndefined);
10564 getOptional<int>(
"localPriority", p.localPriority, j, 0);
10565 getOptional<int>(
"remotePriority", p.remotePriority, j, 0);
10566 getOptional<long>(
"nonFdxMsHangRemaining", p.nonFdxMsHangRemaining, j, 0);
10567 getOptional<uint32_t>(
"txId", p.txId, j, 0);
10571 JSON_SERIALIZED_CLASS(GroupCreationDetail)
10580 IMPLEMENT_JSON_SERIALIZATION()
10598 csConflictingRpListAndCluster = -2,
10601 csAlreadyExists = -3,
10604 csInvalidConfiguration = -4,
10607 csInvalidJson = -5,
10610 csCryptoFailure = -6,
10613 csAudioInputFailure = -7,
10616 csAudioOutputFailure = -8,
10619 csUnsupportedAudioEncoder = -9,
10625 csInvalidTransport = -11,
10628 csAudioInputDeviceNotFound = -12,
10631 csAudioOutputDeviceNotFound = -13
10632 } CreationStatus_t;
10648 status = csUndefined;
10652 static void to_json(nlohmann::json& j,
const GroupCreationDetail& p)
10654 j = nlohmann::json{
10656 TOJSON_IMPL(status)
10659 static void from_json(
const nlohmann::json& j, GroupCreationDetail& p)
10662 getOptional<std::string>(
"id", p.id, j, EMPTY_STRING);
10663 getOptional<GroupCreationDetail::CreationStatus_t>(
"status", p.status, j, GroupCreationDetail::CreationStatus_t::csUndefined);
10668 JSON_SERIALIZED_CLASS(GroupReconfigurationDetail)
10677 IMPLEMENT_JSON_SERIALIZATION()
10695 rsInvalidConfiguration = -2,
10698 rsInvalidJson = -3,
10701 rsAudioInputFailure = -4,
10704 rsAudioOutputFailure = -5,
10707 rsDoesNotExist = -6,
10710 rsAudioInputInUse = -7,
10713 rsAudioDisabledForGroup = -8,
10716 rsGroupIsNotAudio = -9
10717 } ReconfigurationStatus_t;
10733 status = rsUndefined;
10737 static void to_json(nlohmann::json& j,
const GroupReconfigurationDetail& p)
10739 j = nlohmann::json{
10741 TOJSON_IMPL(status)
10744 static void from_json(
const nlohmann::json& j, GroupReconfigurationDetail& p)
10747 getOptional<std::string>(
"id", p.id, j, EMPTY_STRING);
10748 getOptional<GroupReconfigurationDetail::ReconfigurationStatus_t>(
"status", p.status, j, GroupReconfigurationDetail::ReconfigurationStatus_t::rsUndefined);
10753 JSON_SERIALIZED_CLASS(GroupHealthReport)
10762 IMPLEMENT_JSON_SERIALIZATION()
10768 uint64_t lastErrorTs;
10769 uint64_t decryptionErrors;
10770 uint64_t encryptionErrors;
10771 uint64_t unsupportDecoderErrors;
10772 uint64_t decoderFailures;
10773 uint64_t decoderStartFailures;
10774 uint64_t inboundRtpPacketAllocationFailures;
10775 uint64_t inboundRtpPacketLoadFailures;
10776 uint64_t latePacketsDiscarded;
10777 uint64_t jitterBufferInsertionFailures;
10778 uint64_t presenceDeserializationFailures;
10779 uint64_t notRtpErrors;
10780 uint64_t generalErrors;
10781 uint64_t inboundRtpProcessorAllocationFailures;
10792 decryptionErrors = 0;
10793 encryptionErrors = 0;
10794 unsupportDecoderErrors = 0;
10795 decoderFailures = 0;
10796 decoderStartFailures = 0;
10797 inboundRtpPacketAllocationFailures = 0;
10798 inboundRtpPacketLoadFailures = 0;
10799 latePacketsDiscarded = 0;
10800 jitterBufferInsertionFailures = 0;
10801 presenceDeserializationFailures = 0;
10804 inboundRtpProcessorAllocationFailures = 0;
10810 j = nlohmann::json{
10812 TOJSON_IMPL(lastErrorTs),
10813 TOJSON_IMPL(decryptionErrors),
10814 TOJSON_IMPL(encryptionErrors),
10815 TOJSON_IMPL(unsupportDecoderErrors),
10816 TOJSON_IMPL(decoderFailures),
10817 TOJSON_IMPL(decoderStartFailures),
10818 TOJSON_IMPL(inboundRtpPacketAllocationFailures),
10819 TOJSON_IMPL(inboundRtpPacketLoadFailures),
10820 TOJSON_IMPL(latePacketsDiscarded),
10821 TOJSON_IMPL(jitterBufferInsertionFailures),
10822 TOJSON_IMPL(presenceDeserializationFailures),
10823 TOJSON_IMPL(notRtpErrors),
10824 TOJSON_IMPL(generalErrors),
10825 TOJSON_IMPL(inboundRtpProcessorAllocationFailures)
10828 static void from_json(
const nlohmann::json& j, GroupHealthReport& p)
10831 getOptional<std::string>(
"id", p.id, j, EMPTY_STRING);
10832 getOptional<uint64_t>(
"lastErrorTs", p.lastErrorTs, j, 0);
10833 getOptional<uint64_t>(
"decryptionErrors", p.decryptionErrors, j, 0);
10834 getOptional<uint64_t>(
"encryptionErrors", p.encryptionErrors, j, 0);
10835 getOptional<uint64_t>(
"unsupportDecoderErrors", p.unsupportDecoderErrors, j, 0);
10836 getOptional<uint64_t>(
"decoderFailures", p.decoderFailures, j, 0);
10837 getOptional<uint64_t>(
"decoderStartFailures", p.decoderStartFailures, j, 0);
10838 getOptional<uint64_t>(
"inboundRtpPacketAllocationFailures", p.inboundRtpPacketAllocationFailures, j, 0);
10839 getOptional<uint64_t>(
"inboundRtpPacketLoadFailures", p.inboundRtpPacketLoadFailures, j, 0);
10840 getOptional<uint64_t>(
"latePacketsDiscarded", p.latePacketsDiscarded, j, 0);
10841 getOptional<uint64_t>(
"jitterBufferInsertionFailures", p.jitterBufferInsertionFailures, j, 0);
10842 getOptional<uint64_t>(
"presenceDeserializationFailures", p.presenceDeserializationFailures, j, 0);
10843 getOptional<uint64_t>(
"notRtpErrors", p.notRtpErrors, j, 0);
10844 getOptional<uint64_t>(
"generalErrors", p.generalErrors, j, 0);
10845 getOptional<uint64_t>(
"inboundRtpProcessorAllocationFailures", p.inboundRtpProcessorAllocationFailures, j, 0);
10849 JSON_SERIALIZED_CLASS(InboundProcessorStats)
10858 IMPLEMENT_JSON_SERIALIZATION()
10865 uint64_t minRtpSamplesInQueue;
10866 uint64_t maxRtpSamplesInQueue;
10867 uint64_t totalSamplesTrimmed;
10868 uint64_t underruns;
10870 uint64_t samplesInQueue;
10871 uint64_t totalPacketsReceived;
10872 uint64_t totalPacketsLost;
10873 uint64_t totalPacketsDiscarded;
10884 minRtpSamplesInQueue = 0;
10885 maxRtpSamplesInQueue = 0;
10886 totalSamplesTrimmed = 0;
10889 samplesInQueue = 0;
10890 totalPacketsReceived = 0;
10891 totalPacketsLost = 0;
10892 totalPacketsDiscarded = 0;
10898 j = nlohmann::json{
10900 TOJSON_IMPL(jitter),
10901 TOJSON_IMPL(minRtpSamplesInQueue),
10902 TOJSON_IMPL(maxRtpSamplesInQueue),
10903 TOJSON_IMPL(totalSamplesTrimmed),
10904 TOJSON_IMPL(underruns),
10905 TOJSON_IMPL(overruns),
10906 TOJSON_IMPL(samplesInQueue),
10907 TOJSON_IMPL(totalPacketsReceived),
10908 TOJSON_IMPL(totalPacketsLost),
10909 TOJSON_IMPL(totalPacketsDiscarded)
10912 static void from_json(
const nlohmann::json& j, InboundProcessorStats& p)
10915 getOptional<uint32_t>(
"ssrc", p.ssrc, j, 0);
10916 getOptional<double>(
"jitter", p.jitter, j, 0.0);
10917 getOptional<uint64_t>(
"minRtpSamplesInQueue", p.minRtpSamplesInQueue, j, 0);
10918 getOptional<uint64_t>(
"maxRtpSamplesInQueue", p.maxRtpSamplesInQueue, j, 0);
10919 getOptional<uint64_t>(
"totalSamplesTrimmed", p.totalSamplesTrimmed, j, 0);
10920 getOptional<uint64_t>(
"underruns", p.underruns, j, 0);
10921 getOptional<uint64_t>(
"overruns", p.overruns, j, 0);
10922 getOptional<uint64_t>(
"samplesInQueue", p.samplesInQueue, j, 0);
10923 getOptional<uint64_t>(
"totalPacketsReceived", p.totalPacketsReceived, j, 0);
10924 getOptional<uint64_t>(
"totalPacketsLost", p.totalPacketsLost, j, 0);
10925 getOptional<uint64_t>(
"totalPacketsDiscarded", p.totalPacketsDiscarded, j, 0);
10929 JSON_SERIALIZED_CLASS(TrafficCounter)
10938 IMPLEMENT_JSON_SERIALIZATION()
10962 j = nlohmann::json{
10963 TOJSON_IMPL(packets),
10964 TOJSON_IMPL(bytes),
10965 TOJSON_IMPL(errors)
10968 static void from_json(
const nlohmann::json& j, TrafficCounter& p)
10971 getOptional<uint64_t>(
"packets", p.packets, j, 0);
10972 getOptional<uint64_t>(
"bytes", p.bytes, j, 0);
10973 getOptional<uint64_t>(
"errors", p.errors, j, 0);
10977 JSON_SERIALIZED_CLASS(GroupStats)
10986 IMPLEMENT_JSON_SERIALIZATION()
10987 IMPLEMENT_WRAPPED_JSON_SERIALIZATION(
GroupStats)
11010 static void to_json(nlohmann::json& j,
const GroupStats& p)
11012 j = nlohmann::json{
11015 TOJSON_IMPL(rxTraffic),
11016 TOJSON_IMPL(txTraffic)
11019 static void from_json(
const nlohmann::json& j, GroupStats& p)
11022 getOptional<std::string>(
"id", p.id, j, EMPTY_STRING);
11024 getOptional<TrafficCounter>(
"rxTraffic", p.rxTraffic, j);
11025 getOptional<TrafficCounter>(
"txTraffic", p.txTraffic, j);
11029 JSON_SERIALIZED_CLASS(RallypointConnectionDetail)
11038 IMPLEMENT_JSON_SERIALIZATION()
11065 internalId.clear();
11068 msToNextConnectionAttempt = 0;
11069 serverProcessingMs = -1.0f;
11073 static void to_json(nlohmann::json& j,
const RallypointConnectionDetail& p)
11075 j = nlohmann::json{
11076 TOJSON_IMPL(internalId),
11081 if(p.msToNextConnectionAttempt > 0)
11083 j[
"msToNextConnectionAttempt"] = p.msToNextConnectionAttempt;
11086 if(p.serverProcessingMs >= 0.0)
11088 j[
"serverProcessingMs"] = p.serverProcessingMs;
11091 static void from_json(
const nlohmann::json& j, RallypointConnectionDetail& p)
11094 getOptional<std::string>(
"internalId", p.internalId, j, EMPTY_STRING);
11095 getOptional<std::string>(
"host", p.host, j, EMPTY_STRING);
11096 getOptional<int>(
"port", p.port, j, 0);
11097 getOptional<uint64_t>(
"msToNextConnectionAttempt", p.msToNextConnectionAttempt, j, 0);
11098 getOptional<float>(
"serverProcessingMs", p.serverProcessingMs, j, -1.0);
11102 JSON_SERIALIZED_CLASS(TranslationSession)
11114 IMPLEMENT_JSON_SERIALIZATION()
11144 static void to_json(nlohmann::json& j,
const TranslationSession& p)
11146 j = nlohmann::json{
11149 TOJSON_IMPL(groups),
11150 TOJSON_IMPL(enabled)
11153 static void from_json(
const nlohmann::json& j, TranslationSession& p)
11156 FROMJSON_IMPL(
id, std::string, EMPTY_STRING);
11157 FROMJSON_IMPL(name, std::string, EMPTY_STRING);
11158 getOptional<std::vector<std::string>>(
"groups", p.groups, j);
11159 FROMJSON_IMPL(enabled,
bool,
true);
11163 JSON_SERIALIZED_CLASS(TranslationConfiguration)
11175 IMPLEMENT_JSON_SERIALIZATION()
11197 static void to_json(nlohmann::json& j,
const TranslationConfiguration& p)
11199 j = nlohmann::json{
11200 TOJSON_IMPL(sessions),
11201 TOJSON_IMPL(groups)
11204 static void from_json(
const nlohmann::json& j, TranslationConfiguration& p)
11207 getOptional<std::vector<TranslationSession>>(
"sessions", p.sessions, j);
11208 getOptional<std::vector<Group>>(
"groups", p.groups, j);
11212 JSON_SERIALIZED_CLASS(LingoServerStatusReportConfiguration)
11224 IMPLEMENT_JSON_SERIALIZATION()
11259 includeGroupDetail =
false;
11260 includeSessionDetail =
false;
11261 includeSessionGroupDetail =
false;
11266 static void to_json(nlohmann::json& j,
const LingoServerStatusReportConfiguration& p)
11268 j = nlohmann::json{
11269 TOJSON_IMPL(fileName),
11270 TOJSON_IMPL(intervalSecs),
11271 TOJSON_IMPL(enabled),
11272 TOJSON_IMPL(includeGroupDetail),
11273 TOJSON_IMPL(includeSessionDetail),
11274 TOJSON_IMPL(includeSessionGroupDetail),
11275 TOJSON_IMPL(runCmd)
11278 static void from_json(
const nlohmann::json& j, LingoServerStatusReportConfiguration& p)
11281 getOptional<std::string>(
"fileName", p.fileName, j);
11282 getOptional<int>(
"intervalSecs", p.intervalSecs, j, 60);
11283 getOptional<bool>(
"enabled", p.enabled, j,
false);
11284 getOptional<std::string>(
"runCmd", p.runCmd, j);
11285 getOptional<bool>(
"includeGroupDetail", p.includeGroupDetail, j,
false);
11286 getOptional<bool>(
"includeSessionDetail", p.includeSessionDetail, j,
false);
11287 getOptional<bool>(
"includeSessionGroupDetail", p.includeSessionGroupDetail, j,
false);
11291 JSON_SERIALIZED_CLASS(LingoServerInternals)
11305 IMPLEMENT_JSON_SERIALIZATION()
11327 housekeeperIntervalMs = 1000;
11331 static void to_json(nlohmann::json& j,
const LingoServerInternals& p)
11333 j = nlohmann::json{
11334 TOJSON_IMPL(watchdog),
11335 TOJSON_IMPL(housekeeperIntervalMs),
11336 TOJSON_IMPL(tuning)
11339 static void from_json(
const nlohmann::json& j, LingoServerInternals& p)
11342 getOptional<WatchdogSettings>(
"watchdog", p.watchdog, j);
11343 getOptional<int>(
"housekeeperIntervalMs", p.housekeeperIntervalMs, j, 1000);
11344 getOptional<TuningSettings>(
"tuning", p.tuning, j);
11348 JSON_SERIALIZED_CLASS(LingoServerConfiguration)
11359 IMPLEMENT_JSON_SERIALIZATION()
11416 serviceConfigurationFileCheckSecs = 60;
11417 lingoConfigurationFileName.clear();
11418 lingoConfigurationFileCommand.clear();
11419 lingoConfigurationFileCheckSecs = 60;
11420 statusReport.clear();
11421 externalHealthCheckResponder.clear();
11423 certStoreFileName.clear();
11424 certStorePasswordHex.clear();
11425 enginePolicy.clear();
11426 configurationCheckSignalName =
"rts.22f4ec3.${id}";
11427 fipsCrypto.clear();
11433 static void to_json(nlohmann::json& j,
const LingoServerConfiguration& p)
11435 j = nlohmann::json{
11437 TOJSON_IMPL(serviceConfigurationFileCheckSecs),
11438 TOJSON_IMPL(lingoConfigurationFileName),
11439 TOJSON_IMPL(lingoConfigurationFileCommand),
11440 TOJSON_IMPL(lingoConfigurationFileCheckSecs),
11441 TOJSON_IMPL(statusReport),
11442 TOJSON_IMPL(externalHealthCheckResponder),
11443 TOJSON_IMPL(internals),
11444 TOJSON_IMPL(certStoreFileName),
11445 TOJSON_IMPL(certStorePasswordHex),
11446 TOJSON_IMPL(enginePolicy),
11447 TOJSON_IMPL(configurationCheckSignalName),
11448 TOJSON_IMPL(fipsCrypto),
11449 TOJSON_IMPL(proxy),
11453 static void from_json(
const nlohmann::json& j, LingoServerConfiguration& p)
11456 getOptional<std::string>(
"id", p.id, j);
11457 getOptional<int>(
"serviceConfigurationFileCheckSecs", p.serviceConfigurationFileCheckSecs, j, 60);
11458 getOptional<std::string>(
"lingoConfigurationFileName", p.lingoConfigurationFileName, j);
11459 getOptional<std::string>(
"lingoConfigurationFileCommand", p.lingoConfigurationFileCommand, j);
11460 getOptional<int>(
"lingoConfigurationFileCheckSecs", p.lingoConfigurationFileCheckSecs, j, 60);
11461 getOptional<LingoServerStatusReportConfiguration>(
"statusReport", p.statusReport, j);
11462 getOptional<ExternalHealthCheckResponder>(
"externalHealthCheckResponder", p.externalHealthCheckResponder, j);
11463 getOptional<LingoServerInternals>(
"internals", p.internals, j);
11464 getOptional<std::string>(
"certStoreFileName", p.certStoreFileName, j);
11465 getOptional<std::string>(
"certStorePasswordHex", p.certStorePasswordHex, j);
11466 j.at(
"enginePolicy").get_to(p.enginePolicy);
11467 getOptional<std::string>(
"configurationCheckSignalName", p.configurationCheckSignalName, j,
"rts.22f4ec3.${id}");
11468 getOptional<FipsCryptoSettings>(
"fipsCrypo", p.fipsCrypto, j);
11469 getOptional<NetworkAddress>(
"proxy", p.proxy, j);
11470 getOptional<NsmConfiguration>(
"nsm", p.nsm, j);
11475 JSON_SERIALIZED_CLASS(VoiceToVoiceSession)
11487 IMPLEMENT_JSON_SERIALIZATION()
11517 static void to_json(nlohmann::json& j,
const VoiceToVoiceSession& p)
11519 j = nlohmann::json{
11522 TOJSON_IMPL(groups),
11523 TOJSON_IMPL(enabled)
11526 static void from_json(
const nlohmann::json& j, VoiceToVoiceSession& p)
11529 FROMJSON_IMPL(
id, std::string, EMPTY_STRING);
11530 FROMJSON_IMPL(name, std::string, EMPTY_STRING);
11531 getOptional<std::vector<std::string>>(
"groups", p.groups, j);
11532 FROMJSON_IMPL(enabled,
bool,
true);
11536 JSON_SERIALIZED_CLASS(LingoConfiguration)
11548 IMPLEMENT_JSON_SERIALIZATION()
11565 voiceToVoiceSessions.clear();
11570 static void to_json(nlohmann::json& j,
const LingoConfiguration& p)
11572 j = nlohmann::json{
11573 TOJSON_IMPL(voiceToVoiceSessions),
11574 TOJSON_IMPL(groups)
11577 static void from_json(
const nlohmann::json& j, LingoConfiguration& p)
11580 getOptional<std::vector<VoiceToVoiceSession>>(
"voiceToVoiceSessions", p.voiceToVoiceSessions, j);
11581 getOptional<std::vector<Group>>(
"groups", p.groups, j);
11585 JSON_SERIALIZED_CLASS(BridgingConfiguration)
11597 IMPLEMENT_JSON_SERIALIZATION()
11619 static void to_json(nlohmann::json& j,
const BridgingConfiguration& p)
11621 j = nlohmann::json{
11622 TOJSON_IMPL(bridges),
11623 TOJSON_IMPL(groups)
11626 static void from_json(
const nlohmann::json& j, BridgingConfiguration& p)
11629 getOptional<std::vector<Bridge>>(
"bridges", p.bridges, j);
11630 getOptional<std::vector<Group>>(
"groups", p.groups, j);
11634 JSON_SERIALIZED_CLASS(BridgingServerStatusReportConfiguration)
11646 IMPLEMENT_JSON_SERIALIZATION()
11681 includeGroupDetail =
false;
11682 includeBridgeDetail =
false;
11683 includeBridgeGroupDetail =
false;
11688 static void to_json(nlohmann::json& j,
const BridgingServerStatusReportConfiguration& p)
11690 j = nlohmann::json{
11691 TOJSON_IMPL(fileName),
11692 TOJSON_IMPL(intervalSecs),
11693 TOJSON_IMPL(enabled),
11694 TOJSON_IMPL(includeGroupDetail),
11695 TOJSON_IMPL(includeBridgeDetail),
11696 TOJSON_IMPL(includeBridgeGroupDetail),
11697 TOJSON_IMPL(runCmd)
11700 static void from_json(
const nlohmann::json& j, BridgingServerStatusReportConfiguration& p)
11703 getOptional<std::string>(
"fileName", p.fileName, j);
11704 getOptional<int>(
"intervalSecs", p.intervalSecs, j, 60);
11705 getOptional<bool>(
"enabled", p.enabled, j,
false);
11706 getOptional<std::string>(
"runCmd", p.runCmd, j);
11707 getOptional<bool>(
"includeGroupDetail", p.includeGroupDetail, j,
false);
11708 getOptional<bool>(
"includeBridgeDetail", p.includeBridgeDetail, j,
false);
11709 getOptional<bool>(
"includeBridgeGroupDetail", p.includeBridgeGroupDetail, j,
false);
11713 JSON_SERIALIZED_CLASS(BridgingServerInternals)
11727 IMPLEMENT_JSON_SERIALIZATION()
11749 housekeeperIntervalMs = 1000;
11753 static void to_json(nlohmann::json& j,
const BridgingServerInternals& p)
11755 j = nlohmann::json{
11756 TOJSON_IMPL(watchdog),
11757 TOJSON_IMPL(housekeeperIntervalMs),
11758 TOJSON_IMPL(tuning)
11761 static void from_json(
const nlohmann::json& j, BridgingServerInternals& p)
11764 getOptional<WatchdogSettings>(
"watchdog", p.watchdog, j);
11765 getOptional<int>(
"housekeeperIntervalMs", p.housekeeperIntervalMs, j, 1000);
11766 getOptional<TuningSettings>(
"tuning", p.tuning, j);
11770 JSON_SERIALIZED_CLASS(BridgingServerConfiguration)
11781 IMPLEMENT_JSON_SERIALIZATION()
11805 omADictatedByGroup = 3,
11862 serviceConfigurationFileCheckSecs = 60;
11863 bridgingConfigurationFileName.clear();
11864 bridgingConfigurationFileCommand.clear();
11865 bridgingConfigurationFileCheckSecs = 60;
11866 statusReport.clear();
11867 externalHealthCheckResponder.clear();
11869 certStoreFileName.clear();
11870 certStorePasswordHex.clear();
11871 enginePolicy.clear();
11872 configurationCheckSignalName =
"rts.6cc0651.${id}";
11873 fipsCrypto.clear();
11878 static void to_json(nlohmann::json& j,
const BridgingServerConfiguration& p)
11880 j = nlohmann::json{
11883 TOJSON_IMPL(serviceConfigurationFileCheckSecs),
11884 TOJSON_IMPL(bridgingConfigurationFileName),
11885 TOJSON_IMPL(bridgingConfigurationFileCommand),
11886 TOJSON_IMPL(bridgingConfigurationFileCheckSecs),
11887 TOJSON_IMPL(statusReport),
11888 TOJSON_IMPL(externalHealthCheckResponder),
11889 TOJSON_IMPL(internals),
11890 TOJSON_IMPL(certStoreFileName),
11891 TOJSON_IMPL(certStorePasswordHex),
11892 TOJSON_IMPL(enginePolicy),
11893 TOJSON_IMPL(configurationCheckSignalName),
11894 TOJSON_IMPL(fipsCrypto),
11898 static void from_json(
const nlohmann::json& j, BridgingServerConfiguration& p)
11901 getOptional<std::string>(
"id", p.id, j);
11902 getOptional<BridgingServerConfiguration::OpMode_t>(
"mode", p.mode, j, BridgingServerConfiguration::OpMode_t::omRaw);
11903 getOptional<int>(
"serviceConfigurationFileCheckSecs", p.serviceConfigurationFileCheckSecs, j, 60);
11904 getOptional<std::string>(
"bridgingConfigurationFileName", p.bridgingConfigurationFileName, j);
11905 getOptional<std::string>(
"bridgingConfigurationFileCommand", p.bridgingConfigurationFileCommand, j);
11906 getOptional<int>(
"bridgingConfigurationFileCheckSecs", p.bridgingConfigurationFileCheckSecs, j, 60);
11907 getOptional<BridgingServerStatusReportConfiguration>(
"statusReport", p.statusReport, j);
11908 getOptional<ExternalHealthCheckResponder>(
"externalHealthCheckResponder", p.externalHealthCheckResponder, j);
11909 getOptional<BridgingServerInternals>(
"internals", p.internals, j);
11910 getOptional<std::string>(
"certStoreFileName", p.certStoreFileName, j);
11911 getOptional<std::string>(
"certStorePasswordHex", p.certStorePasswordHex, j);
11912 j.at(
"enginePolicy").get_to(p.enginePolicy);
11913 getOptional<std::string>(
"configurationCheckSignalName", p.configurationCheckSignalName, j,
"rts.6cc0651.${id}");
11914 getOptional<FipsCryptoSettings>(
"fipsCrypto", p.fipsCrypto, j);
11915 getOptional<NsmConfiguration>(
"nsm", p.nsm, j);
11920 JSON_SERIALIZED_CLASS(EarGroupsConfiguration)
11932 IMPLEMENT_JSON_SERIALIZATION()
11950 static void to_json(nlohmann::json& j,
const EarGroupsConfiguration& p)
11952 j = nlohmann::json{
11953 TOJSON_IMPL(groups)
11956 static void from_json(
const nlohmann::json& j, EarGroupsConfiguration& p)
11959 getOptional<std::vector<Group>>(
"groups", p.groups, j);
11963 JSON_SERIALIZED_CLASS(EarServerStatusReportConfiguration)
11975 IMPLEMENT_JSON_SERIALIZATION()
12004 includeGroupDetail =
false;
12009 static void to_json(nlohmann::json& j,
const EarServerStatusReportConfiguration& p)
12011 j = nlohmann::json{
12012 TOJSON_IMPL(fileName),
12013 TOJSON_IMPL(intervalSecs),
12014 TOJSON_IMPL(enabled),
12015 TOJSON_IMPL(includeGroupDetail),
12016 TOJSON_IMPL(runCmd)
12019 static void from_json(
const nlohmann::json& j, EarServerStatusReportConfiguration& p)
12022 getOptional<std::string>(
"fileName", p.fileName, j);
12023 getOptional<int>(
"intervalSecs", p.intervalSecs, j, 60);
12024 getOptional<bool>(
"enabled", p.enabled, j,
false);
12025 getOptional<std::string>(
"runCmd", p.runCmd, j);
12026 getOptional<bool>(
"includeGroupDetail", p.includeGroupDetail, j,
false);
12030 JSON_SERIALIZED_CLASS(EarServerInternals)
12044 IMPLEMENT_JSON_SERIALIZATION()
12066 housekeeperIntervalMs = 1000;
12070 static void to_json(nlohmann::json& j,
const EarServerInternals& p)
12072 j = nlohmann::json{
12073 TOJSON_IMPL(watchdog),
12074 TOJSON_IMPL(housekeeperIntervalMs),
12075 TOJSON_IMPL(tuning)
12078 static void from_json(
const nlohmann::json& j, EarServerInternals& p)
12081 getOptional<WatchdogSettings>(
"watchdog", p.watchdog, j);
12082 getOptional<int>(
"housekeeperIntervalMs", p.housekeeperIntervalMs, j, 1000);
12083 getOptional<TuningSettings>(
"tuning", p.tuning, j);
12087 JSON_SERIALIZED_CLASS(EarServerConfiguration)
12098 IMPLEMENT_JSON_SERIALIZATION()
12153 serviceConfigurationFileCheckSecs = 60;
12154 groupsConfigurationFileName.clear();
12155 groupsConfigurationFileCommand.clear();
12156 groupsConfigurationFileCheckSecs = 60;
12157 statusReport.clear();
12158 externalHealthCheckResponder.clear();
12160 certStoreFileName.clear();
12161 certStorePasswordHex.clear();
12162 enginePolicy.clear();
12163 configurationCheckSignalName =
"rts.9a164fa.${id}";
12164 fipsCrypto.clear();
12169 static void to_json(nlohmann::json& j,
const EarServerConfiguration& p)
12171 j = nlohmann::json{
12173 TOJSON_IMPL(serviceConfigurationFileCheckSecs),
12174 TOJSON_IMPL(groupsConfigurationFileName),
12175 TOJSON_IMPL(groupsConfigurationFileCommand),
12176 TOJSON_IMPL(groupsConfigurationFileCheckSecs),
12177 TOJSON_IMPL(statusReport),
12178 TOJSON_IMPL(externalHealthCheckResponder),
12179 TOJSON_IMPL(internals),
12180 TOJSON_IMPL(certStoreFileName),
12181 TOJSON_IMPL(certStorePasswordHex),
12182 TOJSON_IMPL(enginePolicy),
12183 TOJSON_IMPL(configurationCheckSignalName),
12184 TOJSON_IMPL(fipsCrypto),
12188 static void from_json(
const nlohmann::json& j, EarServerConfiguration& p)
12191 getOptional<std::string>(
"id", p.id, j);
12192 getOptional<int>(
"serviceConfigurationFileCheckSecs", p.serviceConfigurationFileCheckSecs, j, 60);
12193 getOptional<std::string>(
"groupsConfigurationFileName", p.groupsConfigurationFileName, j);
12194 getOptional<std::string>(
"groupsConfigurationFileCommand", p.groupsConfigurationFileCommand, j);
12195 getOptional<int>(
"groupsConfigurationFileCheckSecs", p.groupsConfigurationFileCheckSecs, j, 60);
12196 getOptional<EarServerStatusReportConfiguration>(
"statusReport", p.statusReport, j);
12197 getOptional<ExternalHealthCheckResponder>(
"externalHealthCheckResponder", p.externalHealthCheckResponder, j);
12198 getOptional<EarServerInternals>(
"internals", p.internals, j);
12199 getOptional<std::string>(
"certStoreFileName", p.certStoreFileName, j);
12200 getOptional<std::string>(
"certStorePasswordHex", p.certStorePasswordHex, j);
12201 j.at(
"enginePolicy").get_to(p.enginePolicy);
12202 getOptional<std::string>(
"configurationCheckSignalName", p.configurationCheckSignalName, j,
"rts.9a164fa.${id}");
12203 getOptional<FipsCryptoSettings>(
"fipsCrypto", p.fipsCrypto, j);
12204 getOptional<NsmConfiguration>(
"nsm", p.nsm, j);
12208 JSON_SERIALIZED_CLASS(EngageSemGroupsConfiguration)
12220 IMPLEMENT_JSON_SERIALIZATION()
12238 static void to_json(nlohmann::json& j,
const EngageSemGroupsConfiguration& p)
12240 j = nlohmann::json{
12241 TOJSON_IMPL(groups)
12244 static void from_json(
const nlohmann::json& j, EngageSemGroupsConfiguration& p)
12247 getOptional<std::vector<Group>>(
"groups", p.groups, j);
12251 JSON_SERIALIZED_CLASS(EngageSemServerStatusReportConfiguration)
12263 IMPLEMENT_JSON_SERIALIZATION()
12292 includeGroupDetail =
false;
12297 static void to_json(nlohmann::json& j,
const EngageSemServerStatusReportConfiguration& p)
12299 j = nlohmann::json{
12300 TOJSON_IMPL(fileName),
12301 TOJSON_IMPL(intervalSecs),
12302 TOJSON_IMPL(enabled),
12303 TOJSON_IMPL(includeGroupDetail),
12304 TOJSON_IMPL(runCmd)
12307 static void from_json(
const nlohmann::json& j, EngageSemServerStatusReportConfiguration& p)
12310 getOptional<std::string>(
"fileName", p.fileName, j);
12311 getOptional<int>(
"intervalSecs", p.intervalSecs, j, 60);
12312 getOptional<bool>(
"enabled", p.enabled, j,
false);
12313 getOptional<std::string>(
"runCmd", p.runCmd, j);
12314 getOptional<bool>(
"includeGroupDetail", p.includeGroupDetail, j,
false);
12318 JSON_SERIALIZED_CLASS(EngageSemServerInternals)
12332 IMPLEMENT_JSON_SERIALIZATION()
12354 housekeeperIntervalMs = 1000;
12358 static void to_json(nlohmann::json& j,
const EngageSemServerInternals& p)
12360 j = nlohmann::json{
12361 TOJSON_IMPL(watchdog),
12362 TOJSON_IMPL(housekeeperIntervalMs),
12363 TOJSON_IMPL(tuning)
12366 static void from_json(
const nlohmann::json& j, EngageSemServerInternals& p)
12369 getOptional<WatchdogSettings>(
"watchdog", p.watchdog, j);
12370 getOptional<int>(
"housekeeperIntervalMs", p.housekeeperIntervalMs, j, 1000);
12371 getOptional<TuningSettings>(
"tuning", p.tuning, j);
12375 JSON_SERIALIZED_CLASS(EngageSemServerConfiguration)
12386 IMPLEMENT_JSON_SERIALIZATION()
12447 serviceConfigurationFileCheckSecs = 60;
12448 groupsConfigurationFileName.clear();
12449 groupsConfigurationFileCommand.clear();
12450 groupsConfigurationFileCheckSecs = 60;
12451 statusReport.clear();
12452 externalHealthCheckResponder.clear();
12454 certStoreFileName.clear();
12455 certStorePasswordHex.clear();
12456 enginePolicy.clear();
12457 configurationCheckSignalName =
"rts.9a164fa.${id}";
12458 fipsCrypto.clear();
12463 maxQueuingMs = 15000;
12469 static void to_json(nlohmann::json& j,
const EngageSemServerConfiguration& p)
12471 j = nlohmann::json{
12473 TOJSON_IMPL(serviceConfigurationFileCheckSecs),
12474 TOJSON_IMPL(groupsConfigurationFileName),
12475 TOJSON_IMPL(groupsConfigurationFileCommand),
12476 TOJSON_IMPL(groupsConfigurationFileCheckSecs),
12477 TOJSON_IMPL(statusReport),
12478 TOJSON_IMPL(externalHealthCheckResponder),
12479 TOJSON_IMPL(internals),
12480 TOJSON_IMPL(certStoreFileName),
12481 TOJSON_IMPL(certStorePasswordHex),
12482 TOJSON_IMPL(enginePolicy),
12483 TOJSON_IMPL(configurationCheckSignalName),
12484 TOJSON_IMPL(fipsCrypto),
12486 TOJSON_IMPL(maxQueueLen),
12487 TOJSON_IMPL(minQueuingMs),
12488 TOJSON_IMPL(maxQueuingMs),
12489 TOJSON_IMPL(minPriority),
12490 TOJSON_IMPL(maxPriority)
12493 static void from_json(
const nlohmann::json& j, EngageSemServerConfiguration& p)
12496 getOptional<std::string>(
"id", p.id, j);
12497 getOptional<int>(
"serviceConfigurationFileCheckSecs", p.serviceConfigurationFileCheckSecs, j, 60);
12498 getOptional<std::string>(
"groupsConfigurationFileName", p.groupsConfigurationFileName, j);
12499 getOptional<std::string>(
"groupsConfigurationFileCommand", p.groupsConfigurationFileCommand, j);
12500 getOptional<int>(
"groupsConfigurationFileCheckSecs", p.groupsConfigurationFileCheckSecs, j, 60);
12501 getOptional<EngageSemServerStatusReportConfiguration>(
"statusReport", p.statusReport, j);
12502 getOptional<ExternalHealthCheckResponder>(
"externalHealthCheckResponder", p.externalHealthCheckResponder, j);
12503 getOptional<EngageSemServerInternals>(
"internals", p.internals, j);
12504 getOptional<std::string>(
"certStoreFileName", p.certStoreFileName, j);
12505 getOptional<std::string>(
"certStorePasswordHex", p.certStorePasswordHex, j);
12506 j.at(
"enginePolicy").get_to(p.enginePolicy);
12507 getOptional<std::string>(
"configurationCheckSignalName", p.configurationCheckSignalName, j,
"rts.9a164fa.${id}");
12508 getOptional<FipsCryptoSettings>(
"fipsCrypto", p.fipsCrypto, j);
12509 getOptional<NsmConfiguration>(
"nsm", p.nsm, j);
12510 getOptional<int>(
"maxQueueLen", p.maxQueueLen, j, 64);
12511 getOptional<int>(
"minQueuingMs", p.minQueuingMs, j, 0);
12512 getOptional<int>(
"maxQueuingMs", p.maxQueuingMs, j, 15000);
12513 getOptional<int>(
"minPriority", p.minPriority, j, 0);
12514 getOptional<int>(
"maxPriority", p.maxPriority, j, 255);
12518 JSON_SERIALIZED_CLASS(EngateGroup)
12530 IMPLEMENT_JSON_SERIALIZATION()
12535 uint32_t inputHangMs;
12536 uint32_t inputActivationPowerThreshold;
12537 uint32_t inputDeactivationPowerThreshold;
12549 inputActivationPowerThreshold = 700;
12550 inputDeactivationPowerThreshold = 125;
12554 static void to_json(nlohmann::json& j,
const EngateGroup& p)
12557 to_json(g,
static_cast<const Group&
>(p));
12559 j = nlohmann::json{
12560 TOJSON_IMPL(useVad),
12561 TOJSON_IMPL(inputHangMs),
12562 TOJSON_IMPL(inputActivationPowerThreshold),
12563 TOJSON_IMPL(inputDeactivationPowerThreshold)
12566 static void from_json(
const nlohmann::json& j, EngateGroup& p)
12569 from_json(j,
static_cast<Group&
>(p));
12570 getOptional<uint32_t>(
"inputHangMs", p.inputHangMs, j, 750);
12571 getOptional<uint32_t>(
"inputActivationPowerThreshold", p.inputActivationPowerThreshold, j, 700);
12572 getOptional<uint32_t>(
"inputDeactivationPowerThreshold", p.inputDeactivationPowerThreshold, j, 125);
12576 JSON_SERIALIZED_CLASS(EngateGroupsConfiguration)
12588 IMPLEMENT_JSON_SERIALIZATION()
12606 static void to_json(nlohmann::json& j,
const EngateGroupsConfiguration& p)
12608 j = nlohmann::json{
12609 TOJSON_IMPL(groups)
12612 static void from_json(
const nlohmann::json& j, EngateGroupsConfiguration& p)
12615 getOptional<std::vector<EngateGroup>>(
"groups", p.groups, j);
12619 JSON_SERIALIZED_CLASS(EngateServerStatusReportConfiguration)
12631 IMPLEMENT_JSON_SERIALIZATION()
12660 includeGroupDetail =
false;
12665 static void to_json(nlohmann::json& j,
const EngateServerStatusReportConfiguration& p)
12667 j = nlohmann::json{
12668 TOJSON_IMPL(fileName),
12669 TOJSON_IMPL(intervalSecs),
12670 TOJSON_IMPL(enabled),
12671 TOJSON_IMPL(includeGroupDetail),
12672 TOJSON_IMPL(runCmd)
12675 static void from_json(
const nlohmann::json& j, EngateServerStatusReportConfiguration& p)
12678 getOptional<std::string>(
"fileName", p.fileName, j);
12679 getOptional<int>(
"intervalSecs", p.intervalSecs, j, 60);
12680 getOptional<bool>(
"enabled", p.enabled, j,
false);
12681 getOptional<std::string>(
"runCmd", p.runCmd, j);
12682 getOptional<bool>(
"includeGroupDetail", p.includeGroupDetail, j,
false);
12686 JSON_SERIALIZED_CLASS(EngateServerInternals)
12700 IMPLEMENT_JSON_SERIALIZATION()
12722 housekeeperIntervalMs = 1000;
12726 static void to_json(nlohmann::json& j,
const EngateServerInternals& p)
12728 j = nlohmann::json{
12729 TOJSON_IMPL(watchdog),
12730 TOJSON_IMPL(housekeeperIntervalMs),
12731 TOJSON_IMPL(tuning)
12734 static void from_json(
const nlohmann::json& j, EngateServerInternals& p)
12737 getOptional<WatchdogSettings>(
"watchdog", p.watchdog, j);
12738 getOptional<int>(
"housekeeperIntervalMs", p.housekeeperIntervalMs, j, 1000);
12739 getOptional<TuningSettings>(
"tuning", p.tuning, j);
12743 JSON_SERIALIZED_CLASS(EngateServerConfiguration)
12754 IMPLEMENT_JSON_SERIALIZATION()
12809 serviceConfigurationFileCheckSecs = 60;
12810 groupsConfigurationFileName.clear();
12811 groupsConfigurationFileCommand.clear();
12812 groupsConfigurationFileCheckSecs = 60;
12813 statusReport.clear();
12814 externalHealthCheckResponder.clear();
12816 certStoreFileName.clear();
12817 certStorePasswordHex.clear();
12818 enginePolicy.clear();
12819 configurationCheckSignalName =
"rts.9a164fa.${id}";
12820 fipsCrypto.clear();
12825 static void to_json(nlohmann::json& j,
const EngateServerConfiguration& p)
12827 j = nlohmann::json{
12829 TOJSON_IMPL(serviceConfigurationFileCheckSecs),
12830 TOJSON_IMPL(groupsConfigurationFileName),
12831 TOJSON_IMPL(groupsConfigurationFileCommand),
12832 TOJSON_IMPL(groupsConfigurationFileCheckSecs),
12833 TOJSON_IMPL(statusReport),
12834 TOJSON_IMPL(externalHealthCheckResponder),
12835 TOJSON_IMPL(internals),
12836 TOJSON_IMPL(certStoreFileName),
12837 TOJSON_IMPL(certStorePasswordHex),
12838 TOJSON_IMPL(enginePolicy),
12839 TOJSON_IMPL(configurationCheckSignalName),
12840 TOJSON_IMPL(fipsCrypto),
12844 static void from_json(
const nlohmann::json& j, EngateServerConfiguration& p)
12847 getOptional<std::string>(
"id", p.id, j);
12848 getOptional<int>(
"serviceConfigurationFileCheckSecs", p.serviceConfigurationFileCheckSecs, j, 60);
12849 getOptional<std::string>(
"groupsConfigurationFileName", p.groupsConfigurationFileName, j);
12850 getOptional<std::string>(
"groupsConfigurationFileCommand", p.groupsConfigurationFileCommand, j);
12851 getOptional<int>(
"groupsConfigurationFileCheckSecs", p.groupsConfigurationFileCheckSecs, j, 60);
12852 getOptional<EngateServerStatusReportConfiguration>(
"statusReport", p.statusReport, j);
12853 getOptional<ExternalHealthCheckResponder>(
"externalHealthCheckResponder", p.externalHealthCheckResponder, j);
12854 getOptional<EngateServerInternals>(
"internals", p.internals, j);
12855 getOptional<std::string>(
"certStoreFileName", p.certStoreFileName, j);
12856 getOptional<std::string>(
"certStorePasswordHex", p.certStorePasswordHex, j);
12857 j.at(
"enginePolicy").get_to(p.enginePolicy);
12858 getOptional<std::string>(
"configurationCheckSignalName", p.configurationCheckSignalName, j,
"rts.9a164fa.${id}");
12859 getOptional<FipsCryptoSettings>(
"fipsCrypto", p.fipsCrypto, j);
12860 getOptional<NsmConfiguration>(
"nsm", p.nsm, j);
12864 static inline void dumpExampleConfigurations(
const char *path)
12866 WatchdogSettings::document();
12867 FileRecordingRequest::document();
12868 Feature::document();
12869 Featureset::document();
12871 RtpPayloadTypeTranslation::document();
12872 NetworkInterfaceDevice::document();
12873 ListOfNetworkInterfaceDevice::document();
12874 RtpHeader::document();
12875 BlobInfo::document();
12876 TxAudioUri::document();
12877 AdvancedTxParams::document();
12878 Identity::document();
12879 Location::document();
12881 Connectivity::document();
12882 PresenceDescriptorGroupItem::document();
12883 PresenceDescriptor::document();
12884 NetworkTxOptions::document();
12885 TcpNetworkTxOptions::document();
12886 NetworkAddress::document();
12887 NetworkAddressRxTx::document();
12888 NetworkAddressRestrictionList::document();
12889 StringRestrictionList::document();
12890 Rallypoint::document();
12891 RallypointCluster::document();
12892 NetworkDeviceDescriptor::document();
12893 TxAudio::document();
12894 AudioDeviceDescriptor::document();
12895 ListOfAudioDeviceDescriptor::document();
12897 TalkerInformation::document();
12898 GroupTalkers::document();
12899 Presence::document();
12900 Advertising::document();
12901 GroupPriorityTranslation::document();
12902 GroupTimeline::document();
12903 GroupAppTransport::document();
12904 RtpProfile::document();
12906 Mission::document();
12907 LicenseDescriptor::document();
12908 EngineNetworkingRpUdpStreaming::document();
12909 EnginePolicyNetworking::document();
12912 Bridge::document();
12913 AndroidAudio::document();
12914 EnginePolicyAudio::document();
12915 SecurityCertificate::document();
12916 EnginePolicySecurity::document();
12917 EnginePolicyLogging::document();
12918 EnginePolicyDatabase::document();
12919 NamedAudioDevice::document();
12920 EnginePolicyNamedAudioDevices::document();
12921 Licensing::document();
12922 DiscoveryMagellan::document();
12923 DiscoverySsdp::document();
12924 DiscoverySap::document();
12925 DiscoveryCistech::document();
12926 DiscoveryTrellisware::document();
12927 DiscoveryConfiguration::document();
12928 EnginePolicyInternals::document();
12929 EnginePolicyTimelines::document();
12930 RtpMapEntry::document();
12931 ExternalModule::document();
12932 ExternalCodecDescriptor::document();
12933 EnginePolicy::document();
12934 TalkgroupAsset::document();
12935 EngageDiscoveredGroup::document();
12936 RallypointPeer::document();
12937 RallypointServerLimits::document();
12938 RallypointServerStatusReportConfiguration::document();
12939 RallypointServerLinkGraph::document();
12940 ExternalHealthCheckResponder::document();
12942 PeeringConfiguration::document();
12943 IgmpSnooping::document();
12944 RallypointReflector::document();
12945 RallypointUdpStreaming::document();
12946 RallypointServer::document();
12947 PlatformDiscoveredService::document();
12948 TimelineQueryParameters::document();
12949 CertStoreCertificate::document();
12950 CertStore::document();
12951 CertStoreCertificateElement::document();
12952 CertStoreDescriptor::document();
12953 CertificateDescriptor::document();
12954 BridgeCreationDetail::document();
12955 GroupConnectionDetail::document();
12956 GroupTxDetail::document();
12957 GroupCreationDetail::document();
12958 GroupReconfigurationDetail::document();
12959 GroupHealthReport::document();
12960 InboundProcessorStats::document();
12961 TrafficCounter::document();
12962 GroupStats::document();
12963 RallypointConnectionDetail::document();
12964 BridgingConfiguration::document();
12965 BridgingServerStatusReportConfiguration::document();
12966 BridgingServerInternals::document();
12967 BridgingServerConfiguration::document();
12968 EarGroupsConfiguration::document();
12969 EarServerStatusReportConfiguration::document();
12970 EarServerInternals::document();
12971 EarServerConfiguration::document();
12972 RangerPackets::document();
12973 TransportImpairment::document();
12975 EngageSemGroupsConfiguration::document();
12976 EngageSemServerStatusReportConfiguration::document();
12977 EngageSemServerInternals::document();
12978 EngageSemServerConfiguration::document();
12983 #pragma GCC diagnostic pop
TxPriority_t
Network Transmission Priority.
@ priBestEffort
best effort
AddressResolutionPolicy_t
Address family resolution policy.
@ arpIpv6ThenIpv4
IPv6 then IPv4.
@ arpIpv4ThenIpv6
IPv4 then IPv6.
#define ENGAGE_IGNORE_COMPILER_UNUSED_WARNING
RestrictionElementType_t
Enum describing restriction element types.
@ retGenericAccessTagPattern
Elements are generic access tags regex patterns.
@ retGroupIdPattern
Elements are group ID regex patterns.
@ retGroupId
A literal group ID.
@ retCertificateIssuerPattern
Elements are X.509 certificate issuer regex patterns.
@ retCertificateSubjectPattern
Elements are X.509 certificate subject regex patterns.
@ retCertificateFingerprintPattern
Elements are X.509 certificate fingerprint regex patterns.
@ retCertificateSerialNumberPattern
Elements are X.509 certificate serial number regex patterns.
GroupRestrictionAccessPolicyType_t
Enum describing restriction types.
@ graptStrict
Registration for groups is NOT allowed by default - requires definitive access through something like...
@ graptPermissive
Registration for groups is allowed by default.
RestrictionType_t
Enum describing restriction types.
@ rtWhitelist
Elements are whitelisted.
@ rtBlacklist
Elements are blacklisted.
Configuration when using the engageBeginGroupTxAdvanced API.
TxAudioUri audioUri
[Optional] A URI to stream from instead of the audio input device
uint8_t priority
[Optional, Default: 0] Transmit priority between 0 (lowest) and 255 (highest).
bool receiverRxMuteForAliasSpecializer
[Optional, Default: false] Indicates that the aliasSpecializer must cause receivers to mute this tran...
uint16_t subchannelTag
[Optional, Default: 0] Defines a sub channel within a group. Audio will be opaque to all other client...
bool reBegin
[Optional, Default: false] Indicates that the transmission should be restarted.
uint16_t aliasSpecializer
[Optional, Default: 0] Defines a numeric affinity value to be included in the transmission....
uint16_t flags
[Optional, Default: 0] Combination of the ENGAGE_TXFLAG_xxx flags
std::string alias
[Optional, Default: empty string] The Engage Engine should transmit the user's alias as part of the h...
bool includeNodeId
[Optional, Default: false] The Engage Engine should transmit the NodeId as part of the header extensi...
uint32_t txId
[Optional, Default: 0] Transmission ID
bool muted
[Optional, Default: false] While the microphone should be opened, captured audio should be ignored un...
Defines parameters for advertising of an entity such as a known, public, group.
int intervalMs
[Optional, Default: 20000] Interval at which the advertisement should be sent in milliseconds.
bool enabled
[Optional, Default: false] Enabled advertising
bool alwaysAdvertise
[Optional, Default: false] If true, the node will advertise the item even if it detects other nodes m...
Acoustic Echo Cancellation settings.
int speakerTailMs
[Optional, Default: 60] Milliseconds of speaker tail
bool cng
[Optional, Default: true] Enable comfort noise generation
bool enabled
[Optional, Default: false] Enable acoustic echo cancellation
Mode_t
Acoustic echo cancellation mode enum.
Mode_t mode
[Optional, Default: aecmDefault] Specifies AEC mode. See Mode_t for all modes
bool enabled
[Optional, Default: false] Enables automatic gain control.
int compressionGainDb
[Optional, Default: 25, Minimum = 0, Maximum = 125] Gain in db.
bool enableLimiter
[Optional, Default: false] Enables limiter to prevent overdrive.
int maxLevel
[Optional, Default: 255] Maximum level.
int minLevel
[Optional, Default: 0] Minimum level.
int targetLevelDb
[Optional, Default: 9] Target gain level if there is no compression gain.
Default audio settings for AndroidAudio.
int api
[Optional, Default 0] Android audio API version: 0=Unspecified, 1=AAudio, 2=OpenGLES
int sessionId
[Optional, Default INVALID_SESSION_ID] A session ID from the Android AudioManager
int contentType
[Optional, Default 1] Usage type: 1=Speech 2=Music 3=Movie 4=Sonification
int sharingMode
[Optional, Default 0] Sharing mode: 0=Exclusive, 1=Shared
int performanceMode
[Optional, Default 12] Performance mode: 10=None/Default, 11=PowerSaving, 12=LowLatency
int inputPreset
[Optional, Default 7] Input preset: 1=Generic 5=Camcorder 6=VoiceRecognition 7=VoiceCommunication 9=U...
int usage
[Optional, Default 2] Usage type: 1=Media 2=VoiceCommunication 3=VoiceCommunicationSignalling 4=Alarm...
int engineMode
[Optional, Default 0] 0=use legacy low-level APIs, 1=use high-level Android APIs
Custom Audio Device Configuration.
std::string type
Device type (if any)
int samplingRate
This is the rate that the device will process the PCM audio data at.
std::string name
Name of the device assigned by the platform.
bool isDefault
True if this is the default device for the direction above.
std::string serialNumber
Device serial number (if any)
int channels
Indicates the number of audio channels to process.
std::string hardwareId
Device hardware ID (if any)
std::string manufacturer
Device manufacturer (if any)
Direction_t
Audio Device Direction Enum.
@ dirOutput
This is an output only device.
@ dirInput
This is an input only device.
std::string model
Device mode (if any)
Direction_t direction
Audio direction the device supports.
std::string extra
Extra data provided by the platform (if any)
bool isPresent
True if the device is currently present on the system.
int boostPercentage
A percentage at which to gain/attenuate the audio.
bool isAdad
True if the device is an Application-Defined Audio Device.
int deviceId
[Read Only] Unique device identifier assigned by Engage Engine at time of device creation.
Description of an audio gate.
double coefficient
[Optional. Default: 1.75] Coefficient by which to multiply the current history average to determine t...
uint32_t hangMs
[Optional. Default: 1500] Hang timer in milliseconds
bool enabled
[Optional. Default: false] Enables the audio gate if true
uint32_t windowMin
[Optional. Default: 25] Number of 10ms history samples to gather before calculating the noise floor -...
bool useVad
[Optional. Default: false] Use voice activity detection rather than audio energy
uint32_t windowMax
[Optional. Default: 125] Maximum number of 10ms history samples - ignored if useVad is true
Used to configure the Audio properties for a group.
int outputLevelRight
[Optional, Default: 100] The percentage at which to set the right audio at.
std::string outputHardwareId
[Optional] Hardware ID of the output audio device to use for this group. If empty,...
bool outputMuted
[Optional, Default: false] Mutes output audio.
std::string inputHardwareId
[Optional] Hardware ID of the input audio device to use for this group. If empty, inputId is used.
bool enabled
[Optional, Default: true] Audio is enabled
int inputId
[Optional, Default: first audio device] Id for the input audio device to use for this group.
int outputGain
[Optional, Default: 0] The percentage at which to gain the output audio.
int outputId
[Optional, Default: first audio device] Id for the output audio device to use for this group.
int inputGain
[Optional, Default: 0] The percentage at which to gain the input audio.
int outputLevelLeft
[Optional, Default: 100] The percentage at which to set the left audio at.
Describes an audio device that is available on the system.
std::string model
[Optional] Model
std::string extra
[Optional] Extra
std::string name
Name of the device.
std::string manufacturer
[Optional] Manufacturer
std::string type
[Optional] Type
std::string hardwareId
The string identifier used to identify the hardware.
bool isDefault
True if this is the default device.
std::string serialNumber
[Optional] Serial number
Describes an audio registry.
std::vector< AudioRegistryDevice > inputs
[Optional] List of input devices to use for the registry.
std::vector< AudioRegistryDevice > outputs
[Optional] List of output devices to use for the registry.
Describes the Blob data being sent used in the engageSendGroupBlob API.
size_t size
[Optional, Default : 0] Size of the payload
RtpHeader rtpHeader
Custom RTP header.
PayloadType_t payloadType
[Optional, Default: bptUndefined] The payload type to send in the blob
std::string target
[Optional, Default: empty string] The nodeId to which this message is targeted. If this is empty,...
std::string source
[Optional, Default: empty string] The nodeId of Engage Engine that sent the message....
int txnTimeoutSecs
[Optional, Default: 0] Number of seconds after which to time out delivery to the target node
PayloadType_t
Payload type. BlobInfo RTP supported Payload types.
std::string txnId
[Optional but required if txnTimeoutSecs is > 0]
Detailed information for a bridge creation.
CreationStatus_t
Creation status.
CreationStatus_t status
The creation status.
std::string id
ID of the bridge.
Bridging session settings.
std::vector< std::string > groups
List of group IDs to be included in the session.
bool enabled
[Optional, Default: true] Enable the bridge NOTE: this is only used bt EBS and is ignored when callin...
std::vector< Group > groups
Array of bridges in the configuration.
std::vector< Bridge > bridges
Array of bridges in the configuration.
Configuration for the bridging server.
std::string certStoreFileName
Path to the certificate store.
FipsCryptoSettings fipsCrypto
[Optional] Settings for the FIPS crypto.
std::string configurationCheckSignalName
Name to use for signalling a configuration check.
ExternalHealthCheckResponder externalHealthCheckResponder
Details concerning the server's interaction with an external health-checker such as a load-balancer.
OpMode_t mode
Specifies the default operation mode (see OpMode_t).
EnginePolicy enginePolicy
The policy to be used for the underlying Engage Engine.
BridgingServerStatusReportConfiguration statusReport
Details for producing a status report.
std::string bridgingConfigurationFileCommand
Command-line to execute that returns a bridging configuration.
std::string bridgingConfigurationFileName
Name of a file containing the bridging configuration.
std::string certStorePasswordHex
Hex password for the certificate store (if any)
OpMode_t
Enum describing the default mode the bridging service runs in. Values of omRaw, omMultistream,...
BridgingServerInternals internals
Internal settings.
int bridgingConfigurationFileCheckSecs
Number of seconds between checks to see if the bridging configuration has been updated....
int serviceConfigurationFileCheckSecs
Number of seconds between checks to see if the service configuration has been updated....
std::string id
A unqiue identifier for the bridge server.
NsmConfiguration nsm
[Optional] Settings for NSM.
Internal bridging server settings.
int housekeeperIntervalMs
[Optional, Default: 1000] Interval at which to run the housekeeper thread.
TuningSettings tuning
[Optional] Low-level tuning
WatchdogSettings watchdog
[Optional] Settings for the watchdog.
TODO: Configuration for the bridging server status report file.
bool includeBridgeGroupDetail
Description of a certstore certificate element.
std::string tags
Additional attributes.
bool hasPrivateKey
True if the certificate has a private key associated with it.
std::string certificatePem
PEM of the certificate.
Holds a certificate and (optionally) a private key in a certstore.
std::string tags
Additional tags.
std::string id
Id of the certificate.
std::string certificatePem
Certificate in PEM format.
void * internalData
Unserialized internal data.
std::string privateKeyPem
Private key in PEM format.
Description of a certstore.
std::string id
Certstore ID.
std::vector< CertStoreCertificateElement > certificates
Array of certificate elements.
std::string fileName
Name of the file the certstore resides in.
int flags
Flags set for the certstore.
int version
Version of the certstore.
std::vector< KvPair > kvp
Array of kv pairs.
std::vector< KvPair > kvp
[Optional] Array of KV pairs
std::vector< CertStoreCertificate > certificates
Array of certificates in this store.
std::string id
The ID of the certstore.
Description of a certificate.
std::vector< CertificateSubjectElement > subjectElements
Array of subject elements.
std::string serial
Serial #.
std::string publicKeyPem
PEM version of the public key.
std::vector< CertificateSubjectElement > issuerElements
Array of issuer elements.
bool selfSigned
Indicates whether the certificqte is self-signed.
std::string fingerprint
Fingerprint.
std::string notAfter
Validity date notAfter.
std::string subject
Subject.
std::string notBefore
Validity date notBefore.
std::string issuer
Issuer.
std::string certificatePem
PEM version of the certificate.
Description of a certificate subject element.
Connectivity Information used as part of the PresenceDescriptor.
int type
Is the type of connectivity the device has to the network.
int strength
Is the strength of the connection connection as reported by the OS - usually in dbm.
int rating
Is the quality of the network connection as reported by the OS - OS dependent.
Cistech Discovery settings.
Configuration for the Discovery features.
DiscoveryMagellan magellan
DiscoveryTrellisware trellisware
DiscoveryMagellan Discovery settings.
SecurityCertificate security
Tls tls
[Optional] Details concerning Transport Layer Security.
std::string interfaceName
[Optional, Default: default system interface] The network interface to bind to for discovery packets.
Session Announcement Discovery settings settings.
int ageTimeoutMs
[Optional, Default 30000] Number of milliseconds of no SAP announcment before the advertised entity i...
Advertising advertising
Parameters for advertising.
NetworkAddress address
[Optional, Default 224.2.127.254:9875] IP address and port.
bool enabled
[Optional, Default: false] Enables the Engage Engine to use SAP for asset discovery.
std::string interfaceName
[Optional, Default: default system interface] The network interface to bind to for discovery packets.
Simple Service Discovery Protocol settings.
bool enabled
[Optional, Default: false] Enables the Engage Engine to use SSDP for asset discovery.
std::vector< std::string > searchTerms
[Optional] An array of regex strings to be used to filter SSDP requests and responses.
int ageTimeoutMs
[Optional, Default 30000] Number of milliseconds of no SSDP announcment before the advertised entity ...
Advertising advertising
Parameters for advertising.
std::string interfaceName
[Optional, Default: default system interface] The network interface to bind to for discovery packets.
NetworkAddress address
[Optional, Default 255.255.255.255:1900] IP address and port.
Trellisware Discovery settings.
SecurityCertificate security
std::vector< Group > groups
Array of groups in the configuration.
Configuration for the ear server.
std::string id
A unqiue identifier for the EAR server.
std::string configurationCheckSignalName
Name to use for signalling a configuration check.
std::string certStorePasswordHex
Hex password for the certificate store (if any)
ExternalHealthCheckResponder externalHealthCheckResponder
Details concerning the server's interaction with an external health-checker such as a load-balancer.
FipsCryptoSettings fipsCrypto
[Optional] Settings for the FIPS crypto.
NsmConfiguration nsm
[Optional] Settings for NSM.
EarServerInternals internals
Internal settings.
int groupsConfigurationFileCheckSecs
Number of seconds between checks to see if the configuration has been updated. Default is 60.
EarServerStatusReportConfiguration statusReport
Details for producing a status report.
std::string certStoreFileName
Path to the certificate store.
std::string groupsConfigurationFileName
Name of a file containing the ear configuration.
int serviceConfigurationFileCheckSecs
Number of seconds between checks to see if the service configuration has been updated....
std::string groupsConfigurationFileCommand
Command-line to execute that returns a configuration.
EnginePolicy enginePolicy
The policy to be used for the underlying Engage Engine.
Internal ear server settings.
int housekeeperIntervalMs
[Optional, Default: 1000] Interval at which to run the housekeeper thread.
WatchdogSettings watchdog
[Optional] Settings for the EAR's watchdog.
TuningSettings tuning
[Optional] Low-level tuning
TODO: Configuration for the ear server status report file.
NetworkAddress rx
Internal RX detail.
NetworkAddress tx
Internal TX detail.
std::string id
Internal ID.
Engage Semaphore configuration.
std::vector< Group > groups
Array of groups in the configuration.
Configuration for the EFC server.
FipsCryptoSettings fipsCrypto
[Optional] Settings for the FIPS crypto.
EnginePolicy enginePolicy
The policy to be used for the underlying Engage Engine.
std::string configurationCheckSignalName
Name to use for signalling a configuration check.
EngageSemServerStatusReportConfiguration statusReport
Details for producing a status report.
std::string id
A unqiue identifier for the EFC server.
std::string certStoreFileName
Path to the certificate store.
std::string groupsConfigurationFileName
Name of a file containing the EFC configuration.
int serviceConfigurationFileCheckSecs
Number of seconds between checks to see if the service configuration has been updated....
NsmConfiguration nsm
[Optional] Settings for NSM.
std::string groupsConfigurationFileCommand
Command-line to execute that returns a configuration.
ExternalHealthCheckResponder externalHealthCheckResponder
Details concerning the server's interaction with an external health-checker such as a load-balancer.
EngageSemServerInternals internals
Internal settings.
std::string certStorePasswordHex
Hex password for the certificate store (if any)
int groupsConfigurationFileCheckSecs
Number of seconds between checks to see if the configuration has been updated. Default is 60.
Internal EFC server settings.
WatchdogSettings watchdog
[Optional] Settings for the EFC's watchdog.
TuningSettings tuning
[Optional] Low-level tuning
int housekeeperIntervalMs
[Optional, Default: 1000] Interval at which to run the housekeeper thread.
TODO: Configuration for the EFC server status report file.
std::vector< EngateGroup > groups
Array of groups in the configuration.
Configuration for the engate server.
EngateServerStatusReportConfiguration statusReport
Details for producing a status report.
ExternalHealthCheckResponder externalHealthCheckResponder
Details concerning the server's interaction with an external health-checker such as a load-balancer.
std::string certStorePasswordHex
Hex password for the certificate store (if any)
std::string groupsConfigurationFileName
Name of a file containing the ear configuration.
EngateServerInternals internals
Internal settings.
int groupsConfigurationFileCheckSecs
Number of seconds between checks to see if the configuration has been updated. Default is 60.
FipsCryptoSettings fipsCrypto
[Optional] Settings for the FIPS crypto.
std::string certStoreFileName
Path to the certificate store.
NsmConfiguration nsm
[Optional] Settings for NSM.
std::string configurationCheckSignalName
Name to use for signalling a configuration check.
EnginePolicy enginePolicy
The policy to be used for the underlying Engage Engine.
int serviceConfigurationFileCheckSecs
Number of seconds between checks to see if the service configuration has been updated....
std::string id
A unqiue identifier for the EAR server.
std::string groupsConfigurationFileCommand
Command-line to execute that returns a configuration.
Internal engate server settings.
TuningSettings tuning
[Optional] Low-level tuning
int housekeeperIntervalMs
[Optional, Default: 1000] Interval at which to run the housekeeper thread.
WatchdogSettings watchdog
[Optional] Settings for the EAR's watchdog.
TODO: Configuration for the engate server status report file.
Configuration for RP UDP streaming.
TxPriority_t priority
[Optional, Default: priVoice] Transmission priority. This has meaning on some operating systems based...
int keepaliveIntervalSecs
Optional, Default: 15] Seconds interval at which to send UDP keepalives to Rallypoints....
int ttl
[Optional, Default: 64] Time to live or hop limit is a mechanism that limits the lifespan or lifetime...
int port
[Optional, 0] The port to be used for Rallypoint UDP streaming. A value of 0 will result in an epheme...
bool enabled
[Optional, false] Enables UDP streaming if the RP supports it
Default audio settings for Engage Engine policy.
AudioRegistry registry
[Optional] If specified, this registry will be used to discover the input and output devices
Vad vad
[Optional] Voice activity detection settings
Agc outputAgc
[Optional] Automatic Gain Control for audio outputs
bool saveOutputPcm
[Optional, Default: false] If true, input audio is written to a PCM file in the data directory
bool enabled
[Optional, Default: true] Enables audio processing
AndroidAudio android
[Optional] Android-specific audio settings
int internalRate
[Optional, Default: 16000] Internal sampling rate - 8000 or 16000
bool muteTxOnTx
[Optional, Default: false] Automatically mute TX when TX begins
Agc inputAgc
[Optional] Automatic Gain Control for audio inputs
bool hardwareEnabled
[Optional, Default: true] Enables local machine hardware audio
Aec aec
[Optional] Acoustic echo cancellation settings
bool denoiseInput
[Optional, Default: false] Denoise input
bool saveInputPcm
[Optional, Default: false] If true, input audio is written to a PCM file in the data directory
bool denoiseOutput
[Optional, Default: false] Denoise output
int internalChannels
[Optional, Default: 2] Internal audio channel count rate - 1 or 2
Provides Engage Engine policy configuration.
std::vector< ExternalModule > externalCodecs
Optional external codecs.
EnginePolicyNamedAudioDevices namedAudioDevices
Optional named audio devices (Linux only)
Featureset featureset
Optional feature set.
EnginePolicyDatabase database
Database settings.
EnginePolicyAudio audio
Audio settings.
std::string dataDirectory
Specifies the root of the physical path to store data.
Licensing licensing
Licensing settings.
EnginePolicyLogging logging
Logging settings.
DiscoveryConfiguration discovery
Discovery settings.
std::vector< RtpMapEntry > rtpMap
Optional RTP - overrides the default.
EngineStatusReportConfiguration statusReport
Optional statusReport - details for the status report.
EnginePolicyInternals internals
Internal settings.
EnginePolicySecurity security
Security settings.
EnginePolicyTimelines timelines
Timelines settings.
EnginePolicyNetworking networking
Security settings.
Internal Engage Engine settings.
TuningSettings tuning
[Optional] Low-level tuning
int stickyTidHangSecs
[Optional, Default: 10] The number of seconds after which "sticky" transmission IDs expire.
int maxTxSecs
[Optional, Default: 30] The default duration the engageBeginGroupTx and engageBeginGroupTxAdvanced fu...
int rpConnectionTimeoutSecs
[Optional, Default: 5] Connection timeout in seconds to RP
WatchdogSettings watchdog
[Optional] Settings for the Engine's watchdog.
RallypointCluster::ConnectionStrategy_t rpClusterStrategy
[Optional, Default: csRoundRobin] Specifies the default RP cluster connection strategy to be followed...
int delayedMicrophoneClosureSecs
[Optional, Default: 15] The number of seconds to cache an open microphone before actually closing it.
int rpTransactionTimeoutMs
[Optional, Default: 5] Transaction timeout with RP
int rtpExpirationCheckIntervalMs
[Optional, Default: 250] Interval at which to check for RTP expiration.
int rpClusterRolloverSecs
[Optional, Default: 10] Seconds between switching to a new target in a RP cluster
int housekeeperIntervalMs
[Optional, Default: 1000] Interval at which to run the housekeeper thread.
int uriStreamingIntervalMs
[Optional, Default: 60] The packet framing interval for audio streaming from a URI.
int maxLevel
[Optional, Default: 4, Range: 0-4] This is the maximum logging level to display in other words,...
EngineNetworkingRpUdpStreaming rpUdpStreaming
[Optional] Configuration for UDP streaming
std::string defaultNic
The default network interface card the Engage Engine should bind to.
RtpProfile rtpProfile
[Optional] Configuration for RTP profile
AddressResolutionPolicy_t addressResolutionPolicy
[Optional, Default 64] Address resolution policy
int multicastRejoinSecs
[Optional, Default: 8] Number of seconds elapsed between RX of multicast packets before an IGMP rejoi...
bool logRtpJitterBufferStats
[Optional, Default: false] If true, logs RTP jitter buffer statistics periodically
int rallypointRtTestIntervalMs
[Optional, Default: 60000] Milliseconds between sending Rallypoint round-trip test requests
bool preventMulticastFailover
[Optional, Default: false] Overrides/cancels group-level multicast failover if set to true
Default certificate to use for security operation in the Engage Engine.
SecurityCertificate certificate
The default certificate and private key for the Engine instance.
std::vector< std::string > caCertificates
[Optional] An array of CA certificates to be used for validation of far-end X.509 certificates
Engine Policy Timeline configuration.
long autosaveIntervalSecs
[Default 5] Interval at which events are to be saved from memory to disk (a slow operation)
int maxStorageMb
Specifies the maximum storage space to use.
bool enabled
[Optional, Default: true] Specifies if Time Lines are enabled by default.
int maxDiskMb
Specifies the maximum disk space to use - defaults to maxStorageMb.
SecurityCertificate security
The certificate to use for signing the recording.
int maxAudioEventMemMb
Specifies the maximum number of megabytes to allow for a single audio event's memory block - defaults...
long maxEventAgeSecs
Maximum age of an event after which it is to be erased.
int maxMemMb
Specifies the maximum memory to use - defaults to maxStorageMb.
std::string storageRoot
Specifies where the timeline recordings will be stored physically.
bool ephemeral
[Default false] If true, recordings are automatically purged when the Engine is shut down and/or rein...
bool disableSigningAndVerification
[Default false] If true, prevents signing of events - i.e. no anti-tanpering features will be availab...
int maxEvents
Maximum number of events to be retained.
long groomingIntervalSecs
Interval at which events are to be checked for age-based grooming.
TODO: Configuration for the translation server status report file.
bool includeTaskQueueDetail
Describes an external codec.
int samplingRate
Sampling rate.
int rtpPayloadType
RTP payload type.
int rtpTsMultiplier
RTP timestamp multiplier.
TODO: Configuration to enable external systems to use to check if the service is still running.
Base for a description of an external module.
std::string file
File spec.
nlohmann::json configuration
Optional free-form JSON configuration to be passed to the module.
bool debug
[Optional, Default false] If true, requests the crypto engine module to run in debugging mode.
bool enabled
[Optional, Default false] If true, requires FIPS140-2 crypto operation.
std::string curves
[Optional] Specifies the NIST-approved curves to be used for FIPS
std::string path
Path where the crypto engine module is located
std::string ciphers
[Optional] Specifies the NIST-approved ciphers to be used for FIPS
Configuration for the optional custom transport functionality for Group.
bool enabled
[Optional, Default: false] Enables custom feature.
std::string id
The id/name of the transport. This must match the id/name supplied when registering the app transport...
BridgingOpMode_t
Enum describing bridging operation mode types where applicable.
AdvancedTxParams mixedStreamTxParams
[Optional] Parameters to be applied when output is mixed (bomMixedStream)
BridgingOpMode_t mode
[Optional] The output mode
Detailed information for a group connection.
std::string id
ID of the group.
std::string peer
Peer information.
ConnectionType_t
Connection type.
bool asFailover
Indicates whether the connection is for purposes of failover.
ConnectionType_t connectionType
The connection type.
std::string reason
[Optional] Additional reason information
Detailed information for a group creation.
std::string id
ID of the group.
CreationStatus_t status
The creation status.
CreationStatus_t
Creation status.
Detailed information regarding a group's health.
GroupAppTransport appTransport
[Optional] Settings necessary if the group is transported via an application-supplied custom transpor...
std::string source
[Optional, Default: null] Indicates the source of this configuration - e.g. from the application or d...
Presence presence
Presence configuration (see Presence).
std::vector< uint16_t > specializerAffinities
List of specializer IDs that the local node has an affinity for/member of.
std::vector< Source > ignoreSources
[Optional] List of sources to ignore for this group
NetworkAddress rtcpPresenceRx
The network address for receiving RTCP presencing packets.
bool allowLoopback
[Optional, Default: false] Allows for processing of looped back packets - primarily meant for debuggi...
Type_t
Enum describing the group types.
NetworkAddress tx
The network address for transmitting network traffic to.
std::string alias
User alias to transmit as part of the realtime audio stream when using the engageBeginGroupTx API.
int stickyTidHangSecs
[Optional, Default: 10] The number of seconds after which "sticky" transmission IDs expire.
TxAudio txAudio
Audio transmit options such as codec, framing size etc (see TxAudio).
int maxRxSecs
[Optional, Default: 0] Maximum number of seconds the Engine will receive for on this group.
PacketCapturer txCapture
Details for capture of transmitted packets
NetworkTxOptions txOptions
Transmit options for the group (see NetworkTxOptions).
std::string synVoice
Name of the synthesis voice to use for the group
TransportImpairment rxImpairment
[Optional] The RX impairment to apply
std::string languageCode
ISO 639-2 language code for the group
std::string cryptoPassword
Password to be used for encryption. Note that this is not the encryption key but, rather,...
std::vector< std::string > presenceGroupAffinities
List of presence group IDs with which this group has an affinity.
GroupTimeline timeline
Audio timeline is configuration.
GroupPriorityTranslation priorityTranslation
[Optional] Describe how traffic for this group on a different addressing scheme translates to priorit...
bool disablePacketEvents
[Optional, Default: false] Disable packet events.
bool blockAdvertising
[Optional, Default: false] Set this to true if you do not want the Engine to advertise this Group on ...
bool ignoreAudioTraffic
[Optional, Default: false] Indicates that the group should ignore traffic that is audio-related
std::string interfaceName
The name of the network interface to use for multicasting for this group. If not provided,...
bool _wasDeserialized_rtpProfile
[Internal - not serialized
bool enableMulticastFailover
[Optional, Default: false] Set this to true to enable failover to multicast operation if a Rallypoint...
std::string name
The human readable name for the group.
NetworkAddress rx
The network address for receiving network traffic on.
Type_t type
Specifies the group type (see Type_t).
uint16_t blobRtpPayloadType
[Optional, Default: ENGAGE_DEFAULT_BLOB_RTP_PAYLOAD_TYPE] The RTP payload type to be used for blobs s...
std::vector< Rallypoint > rallypoints
[DEPRECATED] List of Rallypoint (s) the Group should use to connect to a Rallypoint router....
RtpProfile rtpProfile
[Optional] RTP profile the group
std::vector< RtpPayloadTypeTranslation > inboundRtpPayloadTypeTranslations
[Optional] A vector of translations from external entity RTP payload types to those used by Engage
int multicastFailoverSecs
[Optional, Default: 10] Specifies the number fo seconds to wait after Rallypoint connection failure t...
InboundAliasGenerationPolicy_t
Enum describing the alias generation policy.
RangerPackets rangerPackets
[Optional] Ranger packet options
int rfc4733RtpPayloadId
[Optional, Default: 0] The RTP payload ID by which to identify (RX and TX) payloads encoded according...
uint32_t securityLevel
[Optional, Default: 0] The security classification level of the group.
PacketCapturer rxCapture
Details for capture of received packets
GroupBridgeTargetOutputDetail bridgeTargetOutputDetail
Output details for when the group is a target in a bridge (see GroupBridgeTargetOutputDetail).
std::string id
Unique identity for the group.
AudioGate gateIn
[Optional] Inbound gating of audio - only audio allowed through by the gate will be processed
RallypointCluster rallypointCluster
Cluster of one or more Rallypoints the group may use.
TransportImpairment txImpairment
[Optional] The TX impairment to apply
Audio audio
Sets audio properties like which audio device to use, audio gain etc (see Audio).
bool lbCrypto
[Optional, Default: false] Use low-bandwidth crypto
std::string spokenName
The group name as spoken - typically by a text-to-speech system
InboundAliasGenerationPolicy_t inboundAliasGenerationPolicy
[Optional, Default: iagpAnonymousAlias]
std::string anonymousAlias
[Optional] Alias to use for inbound streams that do not have an alias component
Details for priority transmission based on unique network addressing.
NetworkAddress tx
TX addressing.
int priority
Engage priority for RX & TX.
NetworkAddress rx
RX addressing.
Detailed information for a group reconfiguration.
ReconfigurationStatus_t status
The creation status.
std::string id
ID of the group.
ReconfigurationStatus_t
Reconfiguration status.
Detailed statistics for group.
List of TalkerInformation objects.
std::vector< TalkerInformation > list
List of TalkerInformation objects.
Configuration for Timeline functionality for Group.
bool enabled
[Optional, Default: true] Enables timeline feature.
int maxAudioTimeMs
[Optional, Default: 30000] Maximum audio block size to record in milliseconds.
Detailed information for a group transmit.
std::string id
ID of the group.
int remotePriority
Remote TX priority (optional)
long nonFdxMsHangRemaining
Milliseconds of hang time remaining on a non-FDX group (optional)
int localPriority
Local TX priority (optional)
uint32_t txId
Transmission ID (optional)
TxStatus_t status
The TX status.
std::string displayName
[Optional, Default: empty string] The display name to be used for the user.
std::string userId
[Optional, Default: empty string] The user ID to be used to represent the user.
std::string nodeId
[Optional, Default: Auto Generated] This is the Node ID to use to represent instance on the network.
std::string avatar
[Optional, Default: empty string] This is a application defined field used to indicate a users avatar...
Configuration for IGMP snooping.
int queryIntervalMs
[Optional, Default 125000] Interval between sending IGMP membership queries. If 0,...
int subscriptionTimeoutMs
[Optional, Default 0] Typically calculated according to RFC specifications. Set a value here to manua...
bool enabled
Enables IGMP. Default is false.
Detailed statistics for an inbound processor.
Helper class for serializing and deserializing the LicenseDescriptor JSON.
std::string entitlement
Entitlement key to use for the product.
std::string cargo
Reserved for internal use.
std::string manufacturerId
[Read only] Manufacturer ID.
std::string key
License Key to be used for the application.
uint8_t cargoFlags
Reserved for internal use.
int type
[Read only] 0 = unknown, 1 = perpetual, 2 = expires
std::string deviceId
[Read only] Unique device identifier generated by the Engine.
int status
The current licensing status.
time_t expires
[Read only] The time that the license key or activation code expires in Unix timestamp - Zulu/UTC.
std::string activationCode
If the key required activation, this is the activation code generated using the entitlement,...
std::string expiresFormatted
[Read only] The time that the license key or activation code expires formatted in ISO 8601 format,...
std::string deviceId
Device Identifier. See LicenseDescriptor::deviceId for details.
std::string manufacturerId
Manufacturer ID to use for the product. See LicenseDescriptor::manufacturerId for details.
std::string activationCode
Activation Code issued for the license key. See LicenseDescriptor::activationCode for details.
std::string key
License key. See LicenseDescriptor::key for details.
std::string entitlement
Entitlement key to use for the product. See LicenseDescriptor::entitlement for details.
std::vector< Group > groups
Array of groups in the configuration.
std::vector< VoiceToVoiceSession > voiceToVoiceSessions
Array of voiceToVoice sessions in the configuration.
Configuration for the linguistics server.
LingoServerStatusReportConfiguration statusReport
Details for producing a status report.
std::string lingoConfigurationFileName
Name of a file containing the linguistics configuration.
std::string configurationCheckSignalName
Name to use for signalling a configuration check.
std::string id
A unqiue identifier for the linguistics server.
ExternalHealthCheckResponder externalHealthCheckResponder
Details concerning the server's interaction with an external health-checker such as a load-balancer.
NsmConfiguration nsm
[Optional] Settings for NSM.
std::string certStorePasswordHex
Hex password for the certificate store (if any)
std::string lingoConfigurationFileCommand
Command-line to execute that returns a linguistics configuration.
LingoServerInternals internals
Internal settings.
EnginePolicy enginePolicy
The policy to be used for the underlying Engage Engine.
int lingoConfigurationFileCheckSecs
Number of seconds between checks to see if the linguistics configuration has been updated....
std::string certStoreFileName
Path to the certificate store.
FipsCryptoSettings fipsCrypto
[Optional] Settings for the FIPS crypto.
NetworkAddress proxy
Address and port of the proxy.
int serviceConfigurationFileCheckSecs
Number of seconds between checks to see if the service configuration has been updated....
Internal translator server settings.
int housekeeperIntervalMs
[Optional, Default: 1000] Interval at which to run the housekeeper thread.
WatchdogSettings watchdog
[Optional] Settings for the watchdog.
TuningSettings tuning
[Optional] Low-level tuning
TODO: Configuration for the translation server status report file.
bool includeSessionGroupDetail
bool includeSessionDetail
Location information used as part of the PresenceDescriptor.
double longitude
Its the longitudinal position using the Signed degrees format (DDD.dddd) format. Valid range is -180 ...
double altitude
[Optional, Default: INVALID_LOCATION_VALUE] The altitude above sea level in meters.
uint32_t ts
[Read Only: Unix timestamp - Zulu/UTC] Indicates the timestamp that the location was recorded.
double latitude
Its the latitude position using the using the Signed degrees format (DDD.dddd). Valid range is -90 to...
double direction
[Optional, Default: INVALID_LOCATION_VALUE] Direction the endpoint is traveling in degrees....
double speed
[Optional, Default: INVALID_LOCATION_VALUE] The speed the endpoint is traveling at in meters per seco...
Defines settings for a named identity.
SecurityCertificate certificate
The identity certificate.
std::string name
The identity name.
std::string address
IP address.
NetworkAddressRestrictionList.
RestrictionType_t type
Type indicating how the elements are to be treated.
std::vector< NetworkAddressRxTx > elements
List of elements.
Custom Network Device Configuration.
std::string manufacturer
Device manufacturer (if any)
std::string model
Device mode (if any)
int deviceId
[Read Only] Unique device identifier assigned by Engage Engine at time of device creation.
std::string extra
Extra data provided by the platform (if any)
std::string type
Device type (if any)
std::string hardwareId
Device hardware ID (if any)
std::string serialNumber
Device serial number (if any)
std::string name
Name of the device assigned by the platform.
Network Transmit Options.
int ttl
[Optional, Default: 1] Time to live or hop limit is a mechanism that limits the lifespan or lifetime ...
TxPriority_t priority
[Optional, Default: priVoice] Transmission priority. This has meaning on some operating systems based...
Description of a packet capturer.
Configuration for Rallypoint peers.
int version
TODO: A version number for the domain configuration. Change this whenever you update your configurati...
std::string comments
Comments.
std::string id
An identifier useful for organizations that track different domain configurations by ID.
std::vector< RallypointPeer > peers
List of Rallypoint peers to connect to.
Device Power Information used as part of the PresenceDescriptor.
int state
[Optional, Default: 0] Is the current state that the power system is in.
int source
[Optional, Default: 0] Is the source the power is being delivered from
int level
[Optional, Default: 0] Is the current level of the battery or power system as a percentage....
Group Alias used as part of the PresenceDescriptor.
uint16_t status
Status flags for the user's participation on the group.
std::string alias
User's alias for the group.
std::string groupId
Group Id the alias is associated with.
Represents an endpoints presence properties. Used in engageUpdatePresenceDescriptor API and PFN_ENGAG...
Power power
[Optional, Default: see Power] Device power information like charging state, battery level,...
std::string custom
[Optional, Default: empty string] Custom string application can use of presence descriptor....
bool self
[Read Only] Indicates that this presence declaration was generated by the Engage Engine the applicati...
uint32_t nextUpdate
[Read Only, Unix timestamp - Zulu/UTC] Indicates the next time the presence descriptor will be sent.
std::vector< PresenceDescriptorGroupItem > groupAliases
[Read Only] List of group items associated with this presence descriptor.
Identity identity
[Optional, Default see Identity] Endpoint's identity information.
bool announceOnReceive
[Read Only] Indicates that the Engine will announce its PresenceDescriptor in response to this messag...
uint32_t ts
[Read Only, Unix timestamp - Zulu/UTC] Indicates the timestamp that the message was originally sent.
std::string comment
[Optional] No defined limit on size but the total size of the serialized JSON object must fit inside ...
Connectivity connectivity
[Optional, Default: see Connectivity] Device connectivity information like wifi/cellular,...
uint32_t disposition
[Optional] Indicates the users disposition
Location location
[Optional, Default: see Location] Location information
Describes how the Presence is configured for a group of type Group::gtPresence in Group::Type_t.
Format_t format
Format to be used to represent presence information.
Format_t
Presence format types enum.
bool reduceImmediacy
[Optional, Default: false] Instructs the Engage Engine reduce the immediacy of presence announcements...
bool listenOnly
Instructs the Engage Engine to not transmit presence descriptor.
int minIntervalSecs
[Optional, Default: 5] The minimum interval to send at to prevent network flooding
int intervalSecs
[Optional, Default: 30] The interval in seconds at which to send the presence descriptor on the prese...
Defines settings for Rallypoint advertising.
std::string interfaceName
The multicast network interface for mDNS.
std::string serviceName
[Optional, Default "_rallypoint._tcp.local."] The service name
std::string hostName
[Optional] This Rallypoint's DNS-SD host name
int port
[Default: RP port] The multicast network interface for mDNS
bool enabled
[Default: false] Advertising is enabled
int ttl
[Default: 60] TTL for service TTL
int rolloverSecs
Seconds between switching to a new target.
ConnectionStrategy_t
Connection strategy enum.
int transactionTimeoutMs
[Optional, Default: 10000] Default transaction time in milliseconds to any RP in the cluster
int connectionTimeoutSecs
[Optional, Default: 5] Default connection timeout in seconds to any RP in the cluster
std::vector< Rallypoint > rallypoints
List of Rallypoints.
ConnectionStrategy_t connectionStrategy
[Optional, Default: csRoundRobin] Specifies the connection strategy to be followed....
Detailed information for a rallypoint connection.
std::string internalId
Id.
float serverProcessingMs
Server processing time in milliseconds - used for roundtrip reports.
uint64_t msToNextConnectionAttempt
Milliseconds until next connection attempt.
Defines settings for Rallypoint extended group restrictions.
std::vector< StringRestrictionList > restrictions
Restrictions.
int transactionTimeoutMs
[Optional, Default 10000] Number of milliseconds that a transaction may take before the link is consi...
bool allowSelfSignedCertificate
[Optional, Default false] Allows the Rallypoint to accept self-signed certificates from the far-end
std::string sni
[Optional] A user-defined string sent as the Server Name Indication (SNI) field in the TLS setup....
std::vector< std::string > caCertificates
[Optional] A vector of certificates (raw content, file names, or certificate store elements) used to ...
std::string certificate
This is the X509 certificate to use for mutual authentication.
bool verifyPeer
[Optional, Default true] Indicates whether the connection peer is to be verified by checking the vali...
bool disableMessageSigning
[Optional, Default false] Indicates whether to forego ECSDA signing of control-plane messages.
NetworkAddress host
This is the host address for the Engine to connect to the RallyPoint service.
std::string additionalProtocols
[Optional, Default: ""] Additional protocols to use for the Rallypoint connection (only used for WebS...
RpProtocol_t protocol
[Optional, Default: rppTlsTcp] Specifies the protocol to be used for the Rallypoint connection....
std::string certificateKey
This is the private key used to generate the X509 certificate.
int connectionTimeoutSecs
[Optional, Default: 5] Connection timeout in seconds to the RP
TcpNetworkTxOptions tcpTxOptions
[Optional] Tx options for the TCP link
std::string path
[Optional, Default: ""] Path to use for the RP connection (only used for WebSocket)
RpProtocol_t
RP protocol enum.
SecurityCertificate certificate
Internal certificate detail.
std::string id
Internal ID.
std::string additionalProtocols
[Optional, Default: ""] Additional protocols to use for the peer (only used for WebSocket)
bool forceIsMeshLeaf
Internal enablement setting.
int connectionTimeoutSecs
[Optional, Default: 0 - OS platform default] Connection timeout in seconds to the peer
NetworkAddress host
Internal host detail.
std::string path
[Optional, Default: ""] Path to use for the peer (only used for WebSocket)
bool enabled
Internal enablement setting.
Rallypoint::RpProtocol_t protocol
[Optional, Default: Rallypoint::RpProtocol_t::rppTlsTcp] Protocol to use for the peer
Definition of a static group for Rallypoints.
NetworkAddress rx
The network address for receiving network traffic on.
std::string id
Unique identity for the group.
std::vector< NetworkAddress > additionalTx
[Optional] Vector of additional TX addresses .
NetworkAddress tx
The network address for transmitting network traffic to.
DirectionRestriction_t directionRestriction
[Optional] Restriction of direction of traffic flow
DirectionRestriction_t
Enum describing direction(s) for the reflector.
std::string multicastInterfaceName
[Optional] The name of the NIC on which to send and receive multicast traffic.
Defines a behavior for a Rallypoint peer roundtrip time.
BehaviorType_t
Enum describing behavior types.
@ btReportWarn
Report at level warning.
@ btReportError
Report at level error.
@ btReportInfo
Report at level info.
BehaviorType_t behavior
Specifies the streaming mode type (see BehaviorType_t).
uint32_t atOrAboveMs
Network address for listening.
Configuration for the Rallypoint server.
uint32_t maxSecurityLevel
[Optional, Default 0] Sets the maximum item security level that can be registered with the RP
bool forwardDiscoveredGroups
Enables automatic forwarding of discovered multicast traffic to peer Rallypoints.
std::string interfaceName
Name of the NIC to bind to for listening for incoming TCP connections.
NetworkTxOptions multicastTxOptions
Tx options for multicast.
bool disableMessageSigning
Set to true to forgo DSA signing of messages. Doing so is is a security risk but can be useful on CPU...
SecurityCertificate certificate
X.509 certificate and private key that identifies the Rallypoint.
std::string multicastInterfaceName
The name of the NIC on which to send and receive multicast traffic.
StringRestrictionList groupRestrictions
Group IDs to be restricted (inclusive or exclusive)
std::string peeringConfigurationFileName
Name of a file containing a JSON array of Rallypoint peers to connect to.
uint32_t sysFlags
[Optional, Default 0] Internal system flags
int listenPort
TCP port to listen on. Default is 7443.
FipsCryptoSettings fipsCrypto
[Optional] Settings for the FIPS crypto.
NetworkAddressRestrictionList multicastRestrictions
Multicasts to be restricted (inclusive or exclusive)
uint32_t normalTaskQueueBias
[Optional, Default 0] Sets the queue's normal task bias
PacketCapturer txCapture
Details for capture of transmitted packets
std::vector< RallypointReflector > staticReflectors
Vector of static groups.
bool enableLeafReflectionReverseSubscription
If enabled, causes a domain leaf to reverse-subscribe to a core node upon the core subscribing and a ...
std::string configurationCheckSignalName
Name to use for signalling a configuration check.
IpFamilyType_t ipFamily
[Optional, Default IpFamilyType_t::ifIp4] Address familiy to be used for listening
int peerRtTestIntervalMs
[Optional, Default: 60000] Milliseconds between sending round-trip test requests to peers
WatchdogSettings watchdog
[Optional] Settings for the Rallypoint's watchdog.
DiscoveryConfiguration discovery
Details discovery capabilities.
bool isMeshLeaf
Indicates whether this Rallypoint is part of a core domain or hangs off the periphery as a leaf node.
std::string certStorePasswordHex
Hex password for the certificate store (if any)
GroupRestrictionAccessPolicyType_t groupRestrictionAccessPolicyType
The policy employed to allow group registration.
RallypointServerStreamStatsExport streamStatsExport
Details for exporting stream statistics.
Licensing licensing
Licensing settings.
PacketCapturer rxCapture
Details for capture of received packets
std::vector< std::string > extraDomains
[Optional] List of additional domains that can be reached via this RP
uint32_t maxOutboundPeerConnectionIntervalDeltaSecs
[Optional, Default 15] Sets the delta value for the maximum number of seconds to delay when attemptin...
TuningSettings tuning
[Optional] Low-level tuning
RallypointAdvertisingSettings advertising
[Optional] Settings for advertising.
Featureset featureset
Optional feature set.
ExternalHealthCheckResponder externalHealthCheckResponder
Details concerning the Rallypoint's interaction with an external health-checker such as a load-balanc...
std::vector< RallypointExtendedGroupRestriction > extendedGroupRestrictions
Extended group restrictions.
int ioPools
Number of threading pools to create for network I/O. Default is -1 which creates 1 I/O pool per CPU c...
RallypointServerStatusReportConfiguration statusReport
Details for producing a status report.
std::vector< NamedIdentity > additionalIdentities
[Optional] List of additional named identities
IgmpSnooping igmpSnooping
IGMP snooping configuration.
RallypointServerLinkGraph linkGraph
Details for producing a Graphviz-compatible link graph.
RallypointServerLimits limits
Details for capacity limits and determining processing load.
PeeringConfiguration peeringConfiguration
Internal - not serialized.
std::string domainName
[Optional] This Rallypoint's domain name
bool allowMulticastForwarding
Allows traffic received on unicast links to be forwarded to the multicast network.
RallypointWebsocketSettings websocket
[Optional] Settings for websocket operation
std::string peeringConfigurationFileCommand
Command-line to execute that returns a JSON array of Rallypoint peers to connect to.
RallypointServerRouteMap routeMap
Details for producing a report containing the route map.
StreamIdPrivacyType_t streamIdPrivacyType
[Optional, default sptDefault] Modes for stream ID transformation.
bool allowPeerForwarding
Set to true to allow forwarding of packets received from other Rallypoints to all other Rallypoints....
TcpNetworkTxOptions tcpTxOptions
Tx options for TCP.
RallypointUdpStreaming udpStreaming
Optional configuration for high-performance UDP streaming.
bool forwardMulticastAddressing
Enables forwarding of multicast addressing to peer Rallypoints.
std::vector< RallypointRpRtTimingBehavior > peerRtBehaviors
[Optional] Array of behaviors for roundtrip times to peers
std::string id
A unqiue identifier for the Rallypoint.
NsmConfiguration nsm
[Optional] Settings for NSM.
bool disableLoopDetection
If true, turns off loop detection.
std::vector< std::string > blockedDomains
[Optional] List of domains that explictly MAY NOT connect to this RP
std::vector< std::string > allowedDomains
[Optional] List of domains that explicitly MAY connect to this RP
std::string certStoreFileName
Path to the certificate store.
int peeringConfigurationFileCheckSecs
Number of seconds between checks to see if the peering configuration has been updated....
Tls tls
Details concerning Transport Layer Security.
TODO: Configuration for Rallypoint limits.
uint32_t maxQOpsPerSec
Maximum number of queue operations per second (0 = unlimited)
uint32_t maxInboundBacklog
Maximum number of inbound backlog requests the Rallypoint will accept.
uint32_t normalPriorityQueueThreshold
Number of normal priority queue operations after which new connections will not be accepted.
uint32_t maxPeers
Maximum number of peers (0 = unlimited)
uint32_t maxTxBytesPerSec
Maximum number of bytes transmitted per second (0 = unlimited)
uint32_t maxTxPacketsPerSec
Maximum number of packets transmitted per second (0 = unlimited)
uint32_t maxRegisteredStreams
Maximum number of registered streams (0 = unlimited)
uint32_t maxClients
Maximum number of clients (0 = unlimited)
uint32_t maxMulticastReflectors
Maximum number of multicastReflectors (0 = unlimited)
uint32_t maxStreamPaths
Maximum number of bidirectional stream paths (0 = unlimited)
uint32_t lowPriorityQueueThreshold
Number of low priority queue operations after which new connections will not be accepted.
uint32_t maxRxBytesPerSec
Maximum number of bytes received per second (0 = unlimited)
uint32_t denyNewConnectionCpuThreshold
The CPU utilization threshold percentage (0-100) beyond which new connections are denied.
uint32_t maxRxPacketsPerSec
Maximum number of packets received per second (0 = unlimited)
uint32_t warnAtCpuThreshold
The CPU utilization threshold percentage (0-100) beyond which warnings are logged.
std::string leafRpStyling
std::string coreRpStyling
bool includeDigraphEnclosure
std::string clientStyling
TODO: Configuration for the Rallypoint status report file.
bool includePeerLinkDetails
bool includeClientLinkDetails
bool resetCountersAfterExport
ExportFormat_t
Enum describing format(s) for the stream stats export.
Streaming configuration for RP clients.
int listenPort
UDP port to listen on. Default is 7444.
TxPriority_t priority
[Optional, Default: priVoice] Transmission priority. This has meaning on some operating systems based...
RallypointUdpStreamingIpvX ipv4
IPv4
bool enabled
[Optional, Default true] If true, enables UDP streaming unless turned off on a per-family basis.
CryptoType_t cryptoType
[Optional, Default ctSharedKeyAes256FullIv] The crypto method to be used
int ttl
[Optional, Default: 64] Time to live or hop limit.
CryptoType_t
Enum describing UDP streaming modes.
int keepaliveIntervalSecs
[Optional, Default: 15] Interval (seconds) at which to send UDP keepalives
RallypointUdpStreamingIpvX ipv6
IPv6.
Streaming configuration for RP clients.
bool enabled
[Optional, Default true] If true, enables UDP streaming for vX.
NetworkAddress external
Network address for external entities to transmit to. Defaults to the address of the local interface ...
Defines settings for Rallypoint websockets functionality.
int listenPort
Listen port (TCP). Default is 8443.
SecurityCertificate certificate
Certificate to be used for WebSockets.
bool requireTls
[Default: false] Indicates whether TLS is required
bool enabled
[Default: false] Websocket is enabled
bool requireClientCertificate
[Default: false] Indicates whether the client is required to present a certificate
Options for Ranger packets.
int count
[Optional, Default: 5] Number of ranger packets to send when a new interval starts
int hangTimerSecs
[Optional, Default: -1] Number of seconds since last packet transmission before 'count' packets are s...
Helper class for serializing and deserializing the RiffDescriptor JSON.
CertificateDescriptor certDescriptor
[Optional] X.509 certificate parsed into a CertificateDescriptor object.
std::string meta
[Optional] Meta data associated with the file - typically a stringified JSON object.
bool verified
True if the ECDSA signature is verified.
int channels
Number of audio channels.
std::string signature
[Optional] ECDSA signature
std::string certPem
[Optional] X.509 certificate in PEM format used to sign the RIFF file.
int sampleCount
Number of audio samples.
std::string file
Name of the RIFF file.
std::string name
Name of the CODEC.
int engageType
An integer representing the codec type.
int rtpPayloadType
The RTP payload type identifier.
RtpPayloadTypeTranslation.
uint16_t engage
The payload type used by Engage.
uint16_t external
The payload type used by the external entity.
Configuration for the optional RtpProfile.
JitterMode_t
Jitter buffer mode.
int signalledInboundProcessorInactivityMs
[Optional, Default: inboundProcessorInactivityMs * 4] The number of milliseconds of RTP inactivity on...
int jitterUnderrunReductionAger
[Optional, Default: 100] Number of jitter buffer operations after which to reduce any underrun
int jitterMinMs
[Optional, Default: 100] Low-water mark for jitter buffers that are in a buffering state.
int jitterMaxFactor
[Optional, Default: 8] The factor by which to multiply the jitter buffer's active low-water to determ...
int inboundProcessorInactivityMs
[Optional, Default: 500] The number of milliseconds of RTP inactivity before heuristically determinin...
JitterMode_t mode
[Optional, Default: jmStandard] Specifies the operation mode (see JitterMode_t).
int jitterForceTrimAtMs
[Optional, Default: 0] Forces trimming of the jitter buffer if the queue length is greater (and not z...
int latePacketSequenceRange
[Optional, Default: 5] The delta in RTP sequence numbers in order to heuristically determine the star...
int jitterMaxExceededClipHangMs
[Optional, Default: 1500] Number of milliseconds for which the jitter buffer may exceed max before cl...
int jitterTrimPercentage
[Optional, Default: 10] The percentage of the overall jitter buffer sample count to trim when potenti...
int jitterMaxTrimMs
[Optional, Default: 250] Maximum number of milliseconds to be trimmed from a jitter buffer at any one...
int jitterMaxMs
[Optional, Default: 10000] Maximum number of milliseconds allowed in the queue
int latePacketTimestampRangeMs
[Optional, Default: 500] The delta in milliseconds in order to heuristically determine the start of a...
int jitterMaxExceededClipPerc
[Optional, Default: 10] Percentage by which maximum number of samples in the queue exceeded computed ...
int zombieLifetimeMs
[Optional, Default: 15000] The number of milliseconds that a "zombified" RTP processor is kept around...
int rtcpPresenceTimeoutMs
[Optional, Default: 45000] Timeout for RTCP presence.
int jitterUnderrunReductionThresholdMs
[Optional, Default: 1500] Number of milliseconds of error-free operations in a jitter buffer before t...
Configuration for a secure signature.
std::string signature
Contains the signature.
std::string certificate
Contains the PEM-formatted text of the certificate.
Configuration for a Security Certificate used in various configurations.
std::string key
As for above but for certificate's private key.
std::string certificate
Contains the PEM-formatted text of the certificate, OR, a reference to a PEM file denoted by "@file:/...
std::string alias
[Optional] An alias
std::string nodeId
[Optional] A node ID
RestrictionType_t type
Type indicating how the elements are to be treated.
std::vector< std::string > elements
List of elements.
RestrictionElementType_t elementsType
Type indicating what kind of data each element contains.
std::string nodeId
A unique identifier for the asset.
Group group
Details for the talkgroup.
Network Transmit Options for TCP.
Parameters for querying the group timeline.
bool onlyCommitted
Include only committed (not in-progress) events.
uint64_t startedOnOrAfter
Include events that started on or after this UNIX millisecond timestamp.
int onlyType
Include events for this type.
long maxCount
Maximum number of records to return.
uint64_t endedOnOrBefore
Include events that ended on or after this UNIX millisecond timestamp.
std::string sql
Ignore all other settings for SQL construction and use this query string instead.
bool mostRecentFirst
Sorted results with most recent timestamp first.
std::string onlyNodeId
Include events for this transmitter node ID.
int onlyDirection
Include events for this direction.
int onlyTxId
Include events for this transmission ID.
std::string onlyAlias
Include events for this transmitter alias.
TODO: Transport Security Layer (TLS) settings.
bool verifyPeers
[Optional, Default: true] When true, checks the far-end certificate validity and Engage-specific TLS ...
StringRestrictionList subjectRestrictions
[NOT USED AT THIS TIME]
std::vector< std::string > caCertificates
[Optional] Array of CA certificates (PEM or "@" file/certstore references) to be used to validate far...
StringRestrictionList issuerRestrictions
[NOT USED AT THIS TIME]
bool allowSelfSignedCertificates
[Optional, Default: false] When true, accepts far-end certificates that are self-signed.
std::vector< std::string > crlSerials
[Optional] Array of serial numbers certificates that have been revoked
Translation configuration.
std::vector< TranslationSession > sessions
Array of sessions in the configuration.
std::vector< Group > groups
Array of groups in the configuration.
Translation session settings.
std::vector< std::string > groups
List of group IDs to be included in the session.
bool enabled
[Optional, Default: true] Enable the session
Description of a transport impairment.
uint32_t maxActiveBlobObjects
[Optional, Default 0 (no max)] Maximum number of blob objects allowed to be active
uint32_t maxActiveRtpProcessors
[Optional, Default 0 (no max)] Maximum number concurrent RTP processors
uint32_t maxPooledBufferMb
[Optional, Default 0 (no max)] Maximum number of buffer bytes allowed to be pooled
uint32_t maxActiveBufferObjects
[Optional, Default 0 (no max)] Maximum number of buffer objects allowed to be active
uint32_t maxPooledBufferObjects
[Optional, Default 0 (no max)] Maximum number of buffer objects allowed to be pooled
uint32_t maxPooledRtpObjects
[Optional, Default 0 (no max)] Maximum number of RTP objects allowed to be pooled
uint32_t maxPooledBlobMb
[Optional, Default 0 (no max)] Maximum number of blob bytes allowed to be pooled
uint32_t maxPooledRtpMb
[Optional, Default 0 (no max)] Maximum number of RTP bytes allowed to be pooled
uint32_t maxActiveRtpObjects
[Optional, Default 0 (no max)] Maximum number of RTP objects allowed to be active
uint32_t maxPooledBlobObjects
[Optional, Default 0 (no max)] Maximum number of blob objects allowed to be pooled
Configuration for the audio transmit properties for a group.
int startTxNotifications
[Optional, Default: 5] Number of start TX notifications to send when TX is about to begin.
int framingMs
[Optional, Default: 60] Audio sample framing size in milliseconds.
int maxTxSecs
[Optional, Default: 0] Maximum number of seconds the Engine will transmit for.
uint32_t internalKey
[INTERNAL] The Engine-assigned key for the codec
bool enabled
[Optional, Default: true] Audio transmission is enabled
bool fdx
[Optional, Default: false] Indicates if full duplex audio is supported.
int initialHeaderBurst
[Optional, Default: 5] Number of headers to send at the beginning of a talk burst.
bool resetRtpOnTx
[Optional, Default: true] Resets RTP counters on each new transmission.
bool dtx
[Optional, Default: false] Support discontinuous transmission on those CODECs that allow it
std::string encoderName
[Optional] The name of the external codec - overrides encoder
TxCodec_t encoder
[Optional, Default: ctOpus8000] Specifies the Codec Type to use for the transmission....
int blockCount
[Optional, Default: 0] If >0, derives framingMs based on the encoder's internal operation
int smoothedHangTimeMs
[Optional, Default: 0] Hang timer for ongoing TX - only applicable if enableSmoothing is true
int customRtpPayloadType
[Optional, Default: -1] The custom RTP payload type to use for transmission. A value of -1 causes the...
bool noHdrExt
[Optional, Default: false] Set to true whether to disable header extensions.
bool enableSmoothing
[Optional, Default: true] Smooth input audio
int trailingHeaderBurst
[Optional, Default: 5] Number of headers to send at the conclusion of a talk burst.
int extensionSendInterval
[Optional, Default: 10] The number of packets when to periodically send the header extension.
TxCodec_t
Codec Types enum.
Optional audio streaming from a URI for engageBeginGroupTxAdvanced.
std::string uri
URI for the file.
int repeatCount
[Optional, Default: 0] Number of times to repeat
Voice Activity Detection settings.
bool enabled
[Optional, Default: false] Enable VAD
Mode_t mode
[Optional, Default: vamDefault] Specifies VAD mode. See Mode_t for all modes
Voice to voice session settings.
std::vector< std::string > groups
List of group IDs to be included in the session.
bool enabled
[Optional, Default: true] Enable the session
int intervalMs
[Optional, Default: 5000] Interval at which checks are made.
int hangDetectionMs
[Optional, Default: 2000] Number of milliseconds that must pass before a hang is assumed.
int slowExecutionThresholdMs
[Optional, Default: 100] Maximum number of milliseconds that a task may take before being considered ...
bool abortOnHang
[Optional, Default: true] If true, aborts the process if a hang is detected.
bool enabled
[Optional, Default: true] Enables/disables a watchdog.
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * OID_RTS_PEM
Rally Tactical Systems' PEN as assigned by IANA.
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * OID_RTS_CERT_SUBJ_ACCESS_TAGS
The link to the Rallypoint is down.
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_DISCONNECTED_REASON_EXCLUDED_SERIAL
The Rallypoint denied the registration request because the far-end's certificate serial number has be...
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_DISCONNECTED_REASON_SECURITY_CLASSIFICATION_LEVEL_TOO_HIGH
The Rallypoint has denied the registration because the registration is for a security level not allow...
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_DISCONNECTED_REASON_ON_BLACKLIST
The Rallypoint denied the registration request because the far-end does appears in blackist criteria.
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_DISCONNECTED_REASON_EXCLUDED_FINGERPRINT
The Rallypoint denied the registration request because the far-end's certificate fingerprint has been...
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_DISCONNECTED_REASON_NO_ISSUER
The Rallypoint denied the registration request because the far-end's certificate does not have an an ...
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_DISCONNECTED_REASON_GENERAL_DENIAL
The Rallypoint has denied the registration for no specific reason.
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_DISCONNECTED_REASON_NO_ACCESS_TAG
The Rallypoint denied the registration request because the far-end's certificate does not have an acc...
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_DISCONNECTED_REASON_NO_SUBJECT
The Rallypoint denied the registration request because the far-end's certificate does not have an an ...
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_DISCONNECTED_REASON_NOT_ALLOWED
The Rallypoint is not accepting registration for the group at this time.
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_DISCONNECTED_REASON_EXCLUDED_SUBJECT
The Rallypoint denied the registration request because the far-end's certificate subject has been exc...
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_DISCONNECTED_REASON_NO_LINK
The link to the Rallypoint is down.
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_DISCONNECTED_REASON_NO_SERIAL
The Rallypoint denied the registration request because the far-end's certificate does not have an an ...
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_DISCONNECTED_REASON_NO_FINGERPRINT
The Rallypoint denied the registration request because the far-end's certificate does not have an an ...
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_DISCONNECTED_REASON_EXCLUDED_ISSUER
The Rallypoint denied the registration request because the far-end's certificate issuer has been excl...
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_DISCONNECTED_REASON_EXCLUDED_ACCESS_TAG
The Rallypoint denied the registration request because the far-end's certificate does not have an acc...
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_DISCONNECTED_REASON_UNREGISTERED
The group has been gracefully unregistered from the Rallypoint.
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_DISCONNECTED_REASON_NO_REAON
No particular reason was provided.
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_DISCONNECTED_REASON_NOT_ON_WHITELIST
The Rallypoint denied the registration request because the far-end does not appear in any whitelist c...
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_SOURCE_ENGAGE_MAGELLAN_DOMO
The source is Domo Tactical via Magellan discovery.
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_SOURCE_ENGAGE_MAGELLAN_CISTECH
The source is CISTECH via Magellan discovery.
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_SOURCE_ENGAGE_MAGELLAN_CORE
The source is a Magellan-capable entity.
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_SOURCE_ENGAGE_INTERNAL
Internal to Engage.
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_SOURCE_ENGAGE_MAGELLAN_TAIT
The source is Tait via Magellan discovery.
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_SOURCE_ENGAGE_MAGELLAN_TRELLISWARE
The source is Trellisware via Magellan discovery.
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_SOURCE_ENGAGE_MAGELLAN_SILVUS
The source is Silvus via Magellan discovery.
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_SOURCE_ENGAGE_MAGELLAN_VOCALITY
The source is Vocality via Magellan discovery.
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_SOURCE_ENGAGE_MAGELLAN_PERSISTENT
The source is Persistent Systems via Magellan discovery.
static ENGAGE_IGNORE_COMPILER_UNUSED_WARNING const char * GROUP_SOURCE_ENGAGE_MAGELLAN_KENWOOD
The source is Kenwood via Magellan discovery.
static const uint8_t ENGAGE_DEFAULT_BLOB_RTP_PAYLOAD_TYPE
The default RTP payload type Engage uses for RTP blob messaging.