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(Rfc4733Event)
1226 IMPLEMENT_JSON_SERIALIZATION()
1260 virtual void initForDocumenting()
1271 static void to_json(nlohmann::json& j,
const Rfc4733Event& p)
1276 TOJSON_IMPL(reserved),
1277 TOJSON_IMPL(volume),
1278 TOJSON_IMPL(duration)
1281 static void from_json(
const nlohmann::json& j, Rfc4733Event& p)
1284 getOptional<int>(
"id", p.id, j, -1);
1285 getOptional<bool>(
"end", p.end, j,
false);
1286 getOptional<int>(
"reserved", p.reserved, j, 0);
1287 getOptional<int>(
"volume", p.volume, j, 0);
1288 getOptional<int>(
"duration", p.duration, j, 0);
1292 JSON_SERIALIZED_CLASS(BlobInfo)
1303 IMPLEMENT_JSON_SERIALIZATION()
1304 IMPLEMENT_JSON_DOCUMENTATION(
BlobInfo)
1319 bptJsonTextUtf8 = 2,
1325 bptEngageBinaryHumanBiometrics = 4,
1328 bptAppMimeMessage = 5,
1331 bptRfc4733Events = 6,
1334 bptEngageInternal = 42
1369 payloadType = PayloadType_t::bptUndefined;
1374 virtual void initForDocumenting()
1377 rtpHeader.initForDocumenting();
1381 static void to_json(nlohmann::json& j,
const BlobInfo& p)
1385 TOJSON_IMPL(source),
1386 TOJSON_IMPL(target),
1387 TOJSON_IMPL(rtpHeader),
1388 TOJSON_IMPL(payloadType),
1390 TOJSON_IMPL(txnTimeoutSecs)
1393 static void from_json(
const nlohmann::json& j, BlobInfo& p)
1396 getOptional<size_t>(
"size", p.size, j, 0);
1397 getOptional<std::string>(
"source", p.source, j, EMPTY_STRING);
1398 getOptional<std::string>(
"target", p.target, j, EMPTY_STRING);
1399 getOptional<RtpHeader>(
"rtpHeader", p.rtpHeader, j);
1400 getOptional<BlobInfo::PayloadType_t>(
"payloadType", p.payloadType, j, BlobInfo::PayloadType_t::bptUndefined);
1401 getOptional<std::string>(
"txnId", p.txnId, j, EMPTY_STRING);
1402 getOptional<int>(
"txnTimeoutSecs", p.txnTimeoutSecs, j, 0);
1407 JSON_SERIALIZED_CLASS(TxAudioUri)
1421 IMPLEMENT_JSON_SERIALIZATION()
1442 virtual void initForDocumenting()
1447 static void to_json(nlohmann::json& j,
const TxAudioUri& p)
1451 TOJSON_IMPL(repeatCount)
1454 static void from_json(
const nlohmann::json& j, TxAudioUri& p)
1457 getOptional<std::string>(
"uri", p.uri, j, EMPTY_STRING);
1458 getOptional<int>(
"repeatCount", p.repeatCount, j, 0);
1463 JSON_SERIALIZED_CLASS(AdvancedTxParams)
1477 IMPLEMENT_JSON_SERIALIZATION()
1525 includeNodeId =
false;
1530 aliasSpecializer = 0;
1531 receiverRxMuteForAliasSpecializer =
false;
1535 virtual void initForDocumenting()
1540 static void to_json(nlohmann::json& j,
const AdvancedTxParams& p)
1544 TOJSON_IMPL(priority),
1545 TOJSON_IMPL(subchannelTag),
1546 TOJSON_IMPL(includeNodeId),
1550 TOJSON_IMPL(audioUri),
1551 TOJSON_IMPL(aliasSpecializer),
1552 TOJSON_IMPL(receiverRxMuteForAliasSpecializer),
1553 TOJSON_IMPL(reBegin)
1556 static void from_json(
const nlohmann::json& j, AdvancedTxParams& p)
1559 getOptional<uint16_t>(
"flags", p.flags, j, 0);
1560 getOptional<uint8_t>(
"priority", p.priority, j, 0);
1561 getOptional<uint16_t>(
"subchannelTag", p.subchannelTag, j, 0);
1562 getOptional<bool>(
"includeNodeId", p.includeNodeId, j,
false);
1563 getOptional<std::string>(
"alias", p.alias, j, EMPTY_STRING);
1564 getOptional<bool>(
"muted", p.muted, j,
false);
1565 getOptional<uint32_t>(
"txId", p.txId, j, 0);
1566 getOptional<TxAudioUri>(
"audioUri", p.audioUri, j);
1567 getOptional<uint16_t>(
"aliasSpecializer", p.aliasSpecializer, j, 0);
1568 getOptional<bool>(
"receiverRxMuteForAliasSpecializer", p.receiverRxMuteForAliasSpecializer, j,
false);
1569 getOptional<bool>(
"reBegin", p.reBegin, j,
false);
1573 JSON_SERIALIZED_CLASS(Identity)
1587 IMPLEMENT_JSON_SERIALIZATION()
1588 IMPLEMENT_JSON_DOCUMENTATION(
Identity)
1618 displayName.clear();
1622 virtual void initForDocumenting()
1627 static void to_json(nlohmann::json& j,
const Identity& p)
1630 TOJSON_IMPL(nodeId),
1631 TOJSON_IMPL(userId),
1632 TOJSON_IMPL(displayName),
1636 static void from_json(
const nlohmann::json& j, Identity& p)
1639 getOptional<std::string>(
"nodeId", p.nodeId, j);
1640 getOptional<std::string>(
"userId", p.userId, j);
1641 getOptional<std::string>(
"displayName", p.displayName, j);
1642 getOptional<std::string>(
"avatar", p.avatar, j);
1647 JSON_SERIALIZED_CLASS(Location)
1661 IMPLEMENT_JSON_SERIALIZATION()
1662 IMPLEMENT_JSON_DOCUMENTATION(
Location)
1665 constexpr static double INVALID_LOCATION_VALUE = -999.999;
1693 latitude = INVALID_LOCATION_VALUE;
1694 longitude = INVALID_LOCATION_VALUE;
1695 altitude = INVALID_LOCATION_VALUE;
1696 direction = INVALID_LOCATION_VALUE;
1697 speed = INVALID_LOCATION_VALUE;
1700 virtual void initForDocumenting()
1706 longitude = 456.789;
1713 static void to_json(nlohmann::json& j,
const Location& p)
1715 if(p.latitude != Location::INVALID_LOCATION_VALUE && p.longitude != Location::INVALID_LOCATION_VALUE)
1718 TOJSON_IMPL(latitude),
1719 TOJSON_IMPL(longitude),
1722 if(p.ts != 0) j[
"ts"] = p.ts;
1723 if(p.altitude != Location::INVALID_LOCATION_VALUE) j[
"altitude"] = p.altitude;
1724 if(p.speed != Location::INVALID_LOCATION_VALUE) j[
"speed"] = p.speed;
1725 if(p.direction != Location::INVALID_LOCATION_VALUE) j[
"direction"] = p.direction;
1728 static void from_json(
const nlohmann::json& j, Location& p)
1731 getOptional<uint32_t>(
"ts", p.ts, j, 0);
1732 j.at(
"latitude").get_to(p.latitude);
1733 j.at(
"longitude").get_to(p.longitude);
1734 getOptional<double>(
"altitude", p.altitude, j, Location::INVALID_LOCATION_VALUE);
1735 getOptional<double>(
"direction", p.direction, j, Location::INVALID_LOCATION_VALUE);
1736 getOptional<double>(
"speed", p.speed, j, Location::INVALID_LOCATION_VALUE);
1740 JSON_SERIALIZED_CLASS(Power)
1752 IMPLEMENT_JSON_SERIALIZATION()
1753 IMPLEMENT_JSON_DOCUMENTATION(
Power)
1799 virtual void initForDocumenting()
1804 static void to_json(nlohmann::json& j,
const Power& p)
1806 if(p.source != 0 && p.state != 0 && p.level != 0)
1809 TOJSON_IMPL(source),
1815 static void from_json(
const nlohmann::json& j, Power& p)
1818 getOptional<int>(
"source", p.source, j, 0);
1819 getOptional<int>(
"state", p.state, j, 0);
1820 getOptional<int>(
"level", p.level, j, 0);
1825 JSON_SERIALIZED_CLASS(Connectivity)
1837 IMPLEMENT_JSON_SERIALIZATION()
1874 virtual void initForDocumenting()
1884 static void to_json(nlohmann::json& j,
const Connectivity& p)
1890 TOJSON_IMPL(strength),
1895 static void from_json(
const nlohmann::json& j, Connectivity& p)
1898 getOptional<int>(
"type", p.type, j, 0);
1899 getOptional<int>(
"strength", p.strength, j, 0);
1900 getOptional<int>(
"rating", p.rating, j, 0);
1905 JSON_SERIALIZED_CLASS(PresenceDescriptorGroupItem)
1917 IMPLEMENT_JSON_SERIALIZATION()
1942 virtual void initForDocumenting()
1944 groupId =
"{123-456}";
1950 static void to_json(nlohmann::json& j,
const PresenceDescriptorGroupItem& p)
1953 TOJSON_IMPL(groupId),
1958 static void from_json(
const nlohmann::json& j, PresenceDescriptorGroupItem& p)
1961 getOptional<std::string>(
"groupId", p.groupId, j);
1962 getOptional<std::string>(
"alias", p.alias, j);
1963 getOptional<uint16_t>(
"status", p.status, j);
1968 JSON_SERIALIZED_CLASS(PresenceDescriptor)
1980 IMPLEMENT_JSON_SERIALIZATION()
2058 groupAliases.clear();
2061 announceOnReceive =
false;
2062 connectivity.clear();
2066 virtual void initForDocumenting()
2073 identity.initForDocumenting();
2074 comment =
"This is a comment";
2077 PresenceDescriptorGroupItem gi;
2078 gi.initForDocumenting();
2079 groupAliases.push_back(gi);
2081 location.initForDocumenting();
2083 announceOnReceive =
true;
2084 connectivity.initForDocumenting();
2085 power.initForDocumenting();
2089 static void to_json(nlohmann::json& j,
const PresenceDescriptor& p)
2093 TOJSON_IMPL(nextUpdate),
2094 TOJSON_IMPL(identity),
2095 TOJSON_IMPL(comment),
2096 TOJSON_IMPL(disposition),
2097 TOJSON_IMPL(groupAliases),
2098 TOJSON_IMPL(location),
2099 TOJSON_IMPL(custom),
2100 TOJSON_IMPL(announceOnReceive),
2101 TOJSON_IMPL(connectivity),
2105 if(!p.comment.empty()) j[
"comment"] = p.comment;
2106 if(!p.custom.empty()) j[
"custom"] = p.custom;
2113 static void from_json(
const nlohmann::json& j, PresenceDescriptor& p)
2116 getOptional<bool>(
"self", p.self, j);
2117 getOptional<uint32_t>(
"ts", p.ts, j);
2118 getOptional<uint32_t>(
"nextUpdate", p.nextUpdate, j);
2119 getOptional<Identity>(
"identity", p.identity, j);
2120 getOptional<std::string>(
"comment", p.comment, j);
2121 getOptional<uint32_t>(
"disposition", p.disposition, j);
2122 getOptional<std::vector<PresenceDescriptorGroupItem>>(
"groupAliases", p.groupAliases, j);
2123 getOptional<Location>(
"location", p.location, j);
2124 getOptional<std::string>(
"custom", p.custom, j);
2125 getOptional<bool>(
"announceOnReceive", p.announceOnReceive, j);
2126 getOptional<Connectivity>(
"connectivity", p.connectivity, j);
2127 getOptional<Power>(
"power", p.power, j);
2168 } AddressResolutionPolicy_t;
2171 JSON_SERIALIZED_CLASS(NetworkTxOptions)
2185 IMPLEMENT_JSON_SERIALIZATION()
2210 virtual void initForDocumenting()
2215 static void to_json(nlohmann::json& j,
const NetworkTxOptions& p)
2218 TOJSON_IMPL(priority),
2222 static void from_json(
const nlohmann::json& j, NetworkTxOptions& p)
2225 getOptional<TxPriority_t>(
"priority", p.priority, j, TxPriority_t::priVoice);
2226 getOptional<int>(
"ttl", p.ttl, j, 1);
2231 JSON_SERIALIZED_CLASS(TcpNetworkTxOptions)
2241 IMPLEMENT_JSON_SERIALIZATION()
2256 virtual void initForDocumenting()
2264 TOJSON_IMPL(priority),
2268 static void from_json(
const nlohmann::json& j, TcpNetworkTxOptions& p)
2271 getOptional<TxPriority_t>(
"priority", p.priority, j, TxPriority_t::priVoice);
2272 getOptional<int>(
"ttl", p.ttl, j, -1);
2288 JSON_SERIALIZED_CLASS(NetworkAddress)
2301 IMPLEMENT_JSON_SERIALIZATION()
2322 bool matches(
const NetworkAddress& other)
2324 if(address.compare(other.address) != 0)
2329 if(port != other.port)
2338 static void to_json(nlohmann::json& j,
const NetworkAddress& p)
2341 TOJSON_IMPL(address),
2345 static void from_json(
const nlohmann::json& j, NetworkAddress& p)
2348 getOptional<std::string>(
"address", p.address, j);
2349 getOptional<int>(
"port", p.port, j);
2354 JSON_SERIALIZED_CLASS(NetworkAddressRxTx)
2367 IMPLEMENT_JSON_SERIALIZATION()
2389 static void to_json(nlohmann::json& j,
const NetworkAddressRxTx& p)
2396 static void from_json(
const nlohmann::json& j, NetworkAddressRxTx& p)
2399 getOptional<NetworkAddress>(
"rx", p.rx, j);
2400 getOptional<NetworkAddress>(
"tx", p.tx, j);
2411 } GroupRestrictionAccessPolicyType_t;
2413 static bool isValidGroupRestrictionAccessPolicyType(GroupRestrictionAccessPolicyType_t t)
2415 return (t == GroupRestrictionAccessPolicyType_t::graptPermissive ||
2416 t == GroupRestrictionAccessPolicyType_t::graptStrict );
2430 } RestrictionType_t;
2432 static bool isValidRestrictionType(RestrictionType_t t)
2434 return (t == RestrictionType_t::rtUndefined ||
2435 t == RestrictionType_t::rtWhitelist ||
2436 t == RestrictionType_t::rtBlacklist );
2462 } RestrictionElementType_t;
2464 static bool isValidRestrictionElementType(RestrictionElementType_t t)
2466 return (t == RestrictionElementType_t::retGroupId ||
2467 t == RestrictionElementType_t::retGroupIdPattern ||
2468 t == RestrictionElementType_t::retGenericAccessTagPattern ||
2469 t == RestrictionElementType_t::retCertificateSerialNumberPattern ||
2470 t == RestrictionElementType_t::retCertificateFingerprintPattern ||
2471 t == RestrictionElementType_t::retCertificateSubjectPattern ||
2472 t == RestrictionElementType_t::retCertificateIssuerPattern);
2477 JSON_SERIALIZED_CLASS(NetworkAddressRestrictionList)
2490 IMPLEMENT_JSON_SERIALIZATION()
2507 type = RestrictionType_t::rtUndefined;
2512 static void to_json(nlohmann::json& j,
const NetworkAddressRestrictionList& p)
2516 TOJSON_IMPL(elements)
2519 static void from_json(
const nlohmann::json& j, NetworkAddressRestrictionList& p)
2522 getOptional<RestrictionType_t>(
"type", p.type, j, RestrictionType_t::rtUndefined);
2523 getOptional<std::vector<NetworkAddressRxTx>>(
"elements", p.elements, j);
2527 JSON_SERIALIZED_CLASS(StringRestrictionList)
2540 IMPLEMENT_JSON_SERIALIZATION()
2555 type = RestrictionType_t::rtUndefined;
2556 elementsType = RestrictionElementType_t::retGroupId;
2566 static void to_json(nlohmann::json& j,
const StringRestrictionList& p)
2570 TOJSON_IMPL(elementsType),
2571 TOJSON_IMPL(elements)
2574 static void from_json(
const nlohmann::json& j, StringRestrictionList& p)
2577 getOptional<RestrictionType_t>(
"type", p.type, j, RestrictionType_t::rtUndefined);
2578 getOptional<RestrictionElementType_t>(
"elementsType", p.elementsType, j, RestrictionElementType_t::retGroupId);
2579 getOptional<std::vector<std::string>>(
"elements", p.elements, j);
2584 JSON_SERIALIZED_CLASS(PacketCapturer)
2595 IMPLEMENT_JSON_SERIALIZATION()
2601 std::string filePrefix;
2619 TOJSON_IMPL(enabled),
2621 TOJSON_IMPL(filePrefix)
2624 static void from_json(
const nlohmann::json& j, PacketCapturer& p)
2627 getOptional<bool>(
"enabled", p.enabled, j,
false);
2628 getOptional<uint32_t>(
"maxMb", p.maxMb, j, 10);
2629 getOptional<std::string>(
"filePrefix", p.filePrefix, j, EMPTY_STRING);
2634 JSON_SERIALIZED_CLASS(TransportImpairment)
2645 IMPLEMENT_JSON_SERIALIZATION()
2649 int applicationPercentage;
2660 applicationPercentage = 0;
2669 TOJSON_IMPL(applicationPercentage),
2670 TOJSON_IMPL(jitterMs),
2671 TOJSON_IMPL(lossPercentage)
2674 static void from_json(
const nlohmann::json& j, TransportImpairment& p)
2677 getOptional<int>(
"applicationPercentage", p.applicationPercentage, j, 0);
2678 getOptional<int>(
"jitterMs", p.jitterMs, j, 0);
2679 getOptional<int>(
"lossPercentage", p.lossPercentage, j, 0);
2683 JSON_SERIALIZED_CLASS(NsmNetworking)
2694 IMPLEMENT_JSON_SERIALIZATION()
2698 std::string interfaceName;
2705 std::string cryptoPassword;
2714 interfaceName.clear();
2719 rxImpairment.clear();
2720 txImpairment.clear();
2721 cryptoPassword.clear();
2725 static void to_json(nlohmann::json& j,
const NsmNetworking& p)
2728 TOJSON_IMPL(interfaceName),
2729 TOJSON_IMPL(address),
2732 TOJSON_IMPL(txOversend),
2733 TOJSON_IMPL(rxImpairment),
2734 TOJSON_IMPL(txImpairment),
2735 TOJSON_IMPL(cryptoPassword)
2738 static void from_json(
const nlohmann::json& j, NsmNetworking& p)
2741 getOptional(
"interfaceName", p.interfaceName, j, EMPTY_STRING);
2742 getOptional<NetworkAddress>(
"address", p.address, j);
2743 getOptional<int>(
"ttl", p.ttl, j, 1);
2744 getOptional<int>(
"tos", p.tos, j, 56);
2745 getOptional<int>(
"txOversend", p.txOversend, j, 0);
2746 getOptional<TransportImpairment>(
"rxImpairment", p.rxImpairment, j);
2747 getOptional<TransportImpairment>(
"txImpairment", p.txImpairment, j);
2748 getOptional(
"cryptoPassword", p.cryptoPassword, j, EMPTY_STRING);
2753 JSON_SERIALIZED_CLASS(NsmConfiguration)
2764 IMPLEMENT_JSON_SERIALIZATION()
2772 std::vector<std::string> resources;
2776 int transitionSecsFactor;
2786 favorUptime =
false;
2789 tokenStart = 1000000;
2792 transitionSecsFactor = 3;
2800 TOJSON_IMPL(favorUptime),
2801 TOJSON_IMPL(networking),
2802 TOJSON_IMPL(resources),
2803 TOJSON_IMPL(tokenStart),
2804 TOJSON_IMPL(tokenEnd),
2805 TOJSON_IMPL(intervalSecs),
2806 TOJSON_IMPL(transitionSecsFactor)
2809 static void from_json(
const nlohmann::json& j, NsmConfiguration& p)
2812 getOptional(
"id", p.id, j);
2813 getOptional<bool>(
"favorUptime", p.favorUptime, j,
false);
2814 getOptional<NsmNetworking>(
"networking", p.networking, j);
2815 getOptional<std::vector<std::string>>(
"resources", p.resources, j);
2816 getOptional<int>(
"tokenStart", p.tokenStart, j, 1000000);
2817 getOptional<int>(
"tokenEnd", p.tokenEnd, j, 2000000);
2818 getOptional<int>(
"intervalSecs", p.intervalSecs, j, 1);
2819 getOptional<int>(
"transitionSecsFactor", p.transitionSecsFactor, j, 3);
2824 JSON_SERIALIZED_CLASS(Rallypoint)
2834 IMPLEMENT_JSON_SERIALIZATION()
2943 certificate.clear();
2944 certificateKey.clear();
2945 caCertificates.clear();
2947 transactionTimeoutMs = 0;
2948 disableMessageSigning =
false;
2949 connectionTimeoutSecs = 0;
2950 tcpTxOptions.clear();
2952 protocol = rppTlsTcp;
2954 additionalProtocols.clear();
2957 bool matches(
const Rallypoint& other)
2959 if(!host.matches(other.host))
2964 if(protocol != other.protocol)
2969 if(path.compare(other.path) != 0)
2974 if(certificate.compare(other.certificate) != 0)
2979 if(certificateKey.compare(other.certificateKey) != 0)
2984 if(verifyPeer != other.verifyPeer)
2989 if(allowSelfSignedCertificate != other.allowSelfSignedCertificate)
2994 if(caCertificates.size() != other.caCertificates.size())
2999 for(
size_t x = 0; x < caCertificates.size(); x++)
3003 for(
size_t y = 0; y < other.caCertificates.size(); y++)
3005 if(caCertificates[x].compare(other.caCertificates[y]) == 0)
3018 if(transactionTimeoutMs != other.transactionTimeoutMs)
3023 if(disableMessageSigning != other.disableMessageSigning)
3027 if(connectionTimeoutSecs != other.connectionTimeoutSecs)
3031 if(tcpTxOptions.
priority != other.tcpTxOptions.priority)
3035 if(sni.compare(other.sni) != 0)
3044 static void to_json(nlohmann::json& j,
const Rallypoint& p)
3048 TOJSON_IMPL(certificate),
3049 TOJSON_IMPL(certificateKey),
3050 TOJSON_IMPL(verifyPeer),
3051 TOJSON_IMPL(allowSelfSignedCertificate),
3052 TOJSON_IMPL(caCertificates),
3053 TOJSON_IMPL(transactionTimeoutMs),
3054 TOJSON_IMPL(disableMessageSigning),
3055 TOJSON_IMPL(connectionTimeoutSecs),
3056 TOJSON_IMPL(tcpTxOptions),
3058 TOJSON_IMPL(protocol),
3060 TOJSON_IMPL(additionalProtocols)
3064 static void from_json(
const nlohmann::json& j, Rallypoint& p)
3067 j.at(
"host").get_to(p.host);
3068 getOptional(
"certificate", p.certificate, j);
3069 getOptional(
"certificateKey", p.certificateKey, j);
3070 getOptional<bool>(
"verifyPeer", p.verifyPeer, j,
true);
3071 getOptional<bool>(
"allowSelfSignedCertificate", p.allowSelfSignedCertificate, j,
false);
3072 getOptional<std::vector<std::string>>(
"caCertificates", p.caCertificates, j);
3073 getOptional<int>(
"transactionTimeoutMs", p.transactionTimeoutMs, j, 0);
3074 getOptional<bool>(
"disableMessageSigning", p.disableMessageSigning, j,
false);
3075 getOptional<int>(
"connectionTimeoutSecs", p.connectionTimeoutSecs, j, 0);
3076 getOptional<TcpNetworkTxOptions>(
"tcpTxOptions", p.tcpTxOptions, j);
3077 getOptional<std::string>(
"sni", p.sni, j);
3078 getOptional<Rallypoint::RpProtocol_t>(
"protocol", p.protocol, j, Rallypoint::RpProtocol_t::rppTlsTcp);
3079 getOptional<std::string>(
"path", p.path, j);
3080 getOptional<std::string>(
"additionalProtocols", p.additionalProtocols, j);
3084 JSON_SERIALIZED_CLASS(RallypointCluster)
3097 IMPLEMENT_JSON_SERIALIZATION()
3113 } ConnectionStrategy_t;
3137 connectionStrategy = csRoundRobin;
3138 rallypoints.clear();
3140 connectionTimeoutSecs = 5;
3141 transactionTimeoutMs = 10000;
3145 static void to_json(nlohmann::json& j,
const RallypointCluster& p)
3148 TOJSON_IMPL(connectionStrategy),
3149 TOJSON_IMPL(rallypoints),
3150 TOJSON_IMPL(rolloverSecs),
3151 TOJSON_IMPL(connectionTimeoutSecs),
3152 TOJSON_IMPL(transactionTimeoutMs)
3155 static void from_json(
const nlohmann::json& j, RallypointCluster& p)
3158 getOptional<RallypointCluster::ConnectionStrategy_t>(
"connectionStrategy", p.connectionStrategy, RallypointCluster::ConnectionStrategy_t::csRoundRobin);
3159 getOptional<std::vector<Rallypoint>>(
"rallypoints", p.rallypoints, j);
3160 getOptional<int>(
"rolloverSecs", p.rolloverSecs, j, 10);
3161 getOptional<int>(
"connectionTimeoutSecs", p.connectionTimeoutSecs, j, 5);
3162 getOptional<int>(
"transactionTimeoutMs", p.transactionTimeoutMs, j, 10000);
3167 JSON_SERIALIZED_CLASS(NetworkDeviceDescriptor)
3179 IMPLEMENT_JSON_SERIALIZATION()
3220 manufacturer.clear();
3223 serialNumber.clear();
3228 virtual std::string toString()
3232 snprintf(buff,
sizeof(buff),
"deviceId=%d, name=%s, manufacturer=%s, model=%s, hardwareId=%s, serialNumber=%s, type=%s, extra=%s",
3235 manufacturer.c_str(),
3238 serialNumber.c_str(),
3242 return std::string(buff);
3246 static void to_json(nlohmann::json& j,
const NetworkDeviceDescriptor& p)
3249 TOJSON_IMPL(deviceId),
3251 TOJSON_IMPL(manufacturer),
3253 TOJSON_IMPL(hardwareId),
3254 TOJSON_IMPL(serialNumber),
3259 static void from_json(
const nlohmann::json& j, NetworkDeviceDescriptor& p)
3262 getOptional<int>(
"deviceId", p.deviceId, j, 0);
3263 getOptional(
"name", p.name, j);
3264 getOptional(
"manufacturer", p.manufacturer, j);
3265 getOptional(
"model", p.model, j);
3266 getOptional(
"hardwareId", p.hardwareId, j);
3267 getOptional(
"serialNumber", p.serialNumber, j);
3268 getOptional(
"type", p.type, j);
3269 getOptional(
"extra", p.extra, j);
3273 JSON_SERIALIZED_CLASS(AudioGate)
3284 IMPLEMENT_JSON_SERIALIZATION()
3323 static void to_json(nlohmann::json& j,
const AudioGate& p)
3326 TOJSON_IMPL(enabled),
3327 TOJSON_IMPL(useVad),
3328 TOJSON_IMPL(hangMs),
3329 TOJSON_IMPL(windowMin),
3330 TOJSON_IMPL(windowMax),
3331 TOJSON_IMPL(coefficient)
3334 static void from_json(
const nlohmann::json& j, AudioGate& p)
3337 getOptional<bool>(
"enabled", p.enabled, j,
false);
3338 getOptional<bool>(
"useVad", p.useVad, j,
false);
3339 getOptional<uint32_t>(
"hangMs", p.hangMs, j, 1500);
3340 getOptional<uint32_t>(
"windowMin", p.windowMin, j, 25);
3341 getOptional<uint32_t>(
"windowMax", p.windowMax, j, 125);
3342 getOptional<double>(
"coefficient", p.coefficient, j, 1.75);
3346 JSON_SERIALIZED_CLASS(TxAudio)
3361 IMPLEMENT_JSON_SERIALIZATION()
3362 IMPLEMENT_JSON_DOCUMENTATION(
TxAudio)
3533 hetEngageStandard = 0,
3536 hetNatoStanga5643 = 1
3537 } HeaderExtensionType_t;
3619 encoder = TxAudio::TxCodec_t::ctUnknown;
3620 encoderName.clear();
3626 extensionSendInterval = 10;
3627 initialHeaderBurst = 5;
3628 trailingHeaderBurst = 5;
3629 startTxNotifications = 5;
3630 customRtpPayloadType = -1;
3632 resetRtpOnTx =
true;
3633 enableSmoothing =
true;
3635 smoothedHangTimeMs = 0;
3636 hdrExtType = HeaderExtensionType_t::hetEngageStandard;
3640 static void to_json(nlohmann::json& j,
const TxAudio& p)
3643 TOJSON_IMPL(enabled),
3644 TOJSON_IMPL(encoder),
3645 TOJSON_IMPL(encoderName),
3646 TOJSON_IMPL(framingMs),
3647 TOJSON_IMPL(blockCount),
3649 TOJSON_IMPL(noHdrExt),
3650 TOJSON_IMPL(maxTxSecs),
3651 TOJSON_IMPL(extensionSendInterval),
3652 TOJSON_IMPL(initialHeaderBurst),
3653 TOJSON_IMPL(trailingHeaderBurst),
3654 TOJSON_IMPL(startTxNotifications),
3655 TOJSON_IMPL(customRtpPayloadType),
3656 TOJSON_IMPL(resetRtpOnTx),
3657 TOJSON_IMPL(enableSmoothing),
3659 TOJSON_IMPL(smoothedHangTimeMs),
3660 TOJSON_IMPL(hdrExtType)
3665 static void from_json(
const nlohmann::json& j, TxAudio& p)
3668 getOptional<bool>(
"enabled", p.enabled, j,
true);
3669 getOptional<TxAudio::TxCodec_t>(
"encoder", p.encoder, j, TxAudio::TxCodec_t::ctOpus8000);
3670 getOptional<std::string>(
"encoderName", p.encoderName, j, EMPTY_STRING);
3671 getOptional(
"framingMs", p.framingMs, j, 60);
3672 getOptional(
"blockCount", p.blockCount, j, 0);
3673 getOptional(
"fdx", p.fdx, j,
false);
3674 getOptional(
"noHdrExt", p.noHdrExt, j,
false);
3675 getOptional(
"maxTxSecs", p.maxTxSecs, j, 0);
3676 getOptional(
"extensionSendInterval", p.extensionSendInterval, j, 10);
3677 getOptional(
"initialHeaderBurst", p.initialHeaderBurst, j, 5);
3678 getOptional(
"trailingHeaderBurst", p.trailingHeaderBurst, j, 5);
3679 getOptional(
"startTxNotifications", p.startTxNotifications, j, 5);
3680 getOptional(
"customRtpPayloadType", p.customRtpPayloadType, j, -1);
3681 getOptional(
"resetRtpOnTx", p.resetRtpOnTx, j,
true);
3682 getOptional(
"enableSmoothing", p.enableSmoothing, j,
true);
3683 getOptional(
"dtx", p.dtx, j,
false);
3684 getOptional(
"smoothedHangTimeMs", p.smoothedHangTimeMs, j, 0);
3685 getOptional(
"hdrExtType", p.hdrExtType, j, TxAudio::HeaderExtensionType_t::hetEngageStandard);
3691 JSON_SERIALIZED_CLASS(AudioRegistryDevice)
3703 IMPLEMENT_JSON_SERIALIZATION()
3742 manufacturer.clear();
3744 serialNumber.clear();
3749 virtual std::string toString()
3753 snprintf(buff,
sizeof(buff),
"hardwareId=%s, isDefault=%d, name=%s, manufacturer=%s, model=%s, serialNumber=%s, type=%s, extra=%s",
3757 manufacturer.c_str(),
3759 serialNumber.c_str(),
3763 return std::string(buff);
3767 static void to_json(nlohmann::json& j,
const AudioRegistryDevice& p)
3770 TOJSON_IMPL(hardwareId),
3771 TOJSON_IMPL(isDefault),
3773 TOJSON_IMPL(manufacturer),
3775 TOJSON_IMPL(serialNumber),
3780 static void from_json(
const nlohmann::json& j, AudioRegistryDevice& p)
3783 getOptional<std::string>(
"hardwareId", p.hardwareId, j, EMPTY_STRING);
3784 getOptional<bool>(
"isDefault", p.isDefault, j,
false);
3785 getOptional(
"name", p.name, j);
3786 getOptional(
"manufacturer", p.manufacturer, j);
3787 getOptional(
"model", p.model, j);
3788 getOptional(
"serialNumber", p.serialNumber, j);
3789 getOptional(
"type", p.type, j);
3790 getOptional(
"extra", p.extra, j);
3795 JSON_SERIALIZED_CLASS(AudioRegistry)
3807 IMPLEMENT_JSON_SERIALIZATION()
3828 virtual std::string toString()
3830 return std::string(
"");
3834 static void to_json(nlohmann::json& j,
const AudioRegistry& p)
3837 TOJSON_IMPL(inputs),
3838 TOJSON_IMPL(outputs)
3841 static void from_json(
const nlohmann::json& j, AudioRegistry& p)
3844 getOptional<std::vector<AudioRegistryDevice>>(
"inputs", p.inputs, j);
3845 getOptional<std::vector<AudioRegistryDevice>>(
"outputs", p.outputs, j);
3849 JSON_SERIALIZED_CLASS(AudioDeviceDescriptor)
3861 IMPLEMENT_JSON_SERIALIZATION()
3955 direction = dirUnknown;
3956 boostPercentage = 0;
3961 manufacturer.clear();
3964 serialNumber.clear();
3970 virtual std::string toString()
3974 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",
3982 manufacturer.c_str(),
3985 serialNumber.c_str(),
3991 return std::string(buff);
3995 static void to_json(nlohmann::json& j,
const AudioDeviceDescriptor& p)
3998 TOJSON_IMPL(deviceId),
3999 TOJSON_IMPL(samplingRate),
4000 TOJSON_IMPL(channels),
4001 TOJSON_IMPL(direction),
4002 TOJSON_IMPL(boostPercentage),
4003 TOJSON_IMPL(isAdad),
4005 TOJSON_IMPL(manufacturer),
4007 TOJSON_IMPL(hardwareId),
4008 TOJSON_IMPL(serialNumber),
4009 TOJSON_IMPL(isDefault),
4012 TOJSON_IMPL(isPresent)
4015 static void from_json(
const nlohmann::json& j, AudioDeviceDescriptor& p)
4018 getOptional<int>(
"deviceId", p.deviceId, j, 0);
4019 getOptional<int>(
"samplingRate", p.samplingRate, j, 0);
4020 getOptional<int>(
"channels", p.channels, j, 0);
4021 getOptional<AudioDeviceDescriptor::Direction_t>(
"direction", p.direction, j,
4022 AudioDeviceDescriptor::Direction_t::dirUnknown);
4023 getOptional<int>(
"boostPercentage", p.boostPercentage, j, 0);
4025 getOptional<bool>(
"isAdad", p.isAdad, j,
false);
4026 getOptional(
"name", p.name, j);
4027 getOptional(
"manufacturer", p.manufacturer, j);
4028 getOptional(
"model", p.model, j);
4029 getOptional(
"hardwareId", p.hardwareId, j);
4030 getOptional(
"serialNumber", p.serialNumber, j);
4031 getOptional(
"isDefault", p.isDefault, j);
4032 getOptional(
"type", p.type, j);
4033 getOptional(
"extra", p.extra, j);
4034 getOptional<bool>(
"isPresent", p.isPresent, j,
false);
4038 JSON_SERIALIZED_CLASS(ListOfAudioDeviceDescriptor)
4041 IMPLEMENT_JSON_SERIALIZATION()
4045 std::vector<AudioDeviceDescriptor> list;
4064 static void from_json(
const nlohmann::json& j, ListOfAudioDeviceDescriptor& p)
4067 getOptional<std::vector<AudioDeviceDescriptor>>(
"list", p.list, j);
4071 JSON_SERIALIZED_CLASS(Audio)
4081 IMPLEMENT_JSON_SERIALIZATION()
4082 IMPLEMENT_JSON_DOCUMENTATION(
Audio)
4124 inputHardwareId.clear();
4127 outputHardwareId.clear();
4129 outputLevelLeft = 100;
4130 outputLevelRight = 100;
4131 outputMuted =
false;
4135 static void to_json(nlohmann::json& j,
const Audio& p)
4138 TOJSON_IMPL(enabled),
4139 TOJSON_IMPL(inputId),
4140 TOJSON_IMPL(inputHardwareId),
4141 TOJSON_IMPL(inputGain),
4142 TOJSON_IMPL(outputId),
4143 TOJSON_IMPL(outputHardwareId),
4144 TOJSON_IMPL(outputLevelLeft),
4145 TOJSON_IMPL(outputLevelRight),
4146 TOJSON_IMPL(outputMuted)
4149 static void from_json(
const nlohmann::json& j, Audio& p)
4152 getOptional<bool>(
"enabled", p.enabled, j,
true);
4153 getOptional<int>(
"inputId", p.inputId, j, 0);
4154 getOptional<std::string>(
"inputHardwareId", p.inputHardwareId, j, EMPTY_STRING);
4155 getOptional<int>(
"inputGain", p.inputGain, j, 0);
4156 getOptional<int>(
"outputId", p.outputId, j, 0);
4157 getOptional<std::string>(
"outputHardwareId", p.outputHardwareId, j, EMPTY_STRING);
4158 getOptional<int>(
"outputGain", p.outputGain, j, 0);
4159 getOptional<int>(
"outputLevelLeft", p.outputLevelLeft, j, 100);
4160 getOptional<int>(
"outputLevelRight", p.outputLevelRight, j, 100);
4161 getOptional<bool>(
"outputMuted", p.outputMuted, j,
false);
4165 JSON_SERIALIZED_CLASS(TalkerInformation)
4177 IMPLEMENT_JSON_SERIALIZATION()
4193 matSsrcGenerated = 2
4194 } ManufacturedAliasType_t;
4239 aliasSpecializer = 0;
4241 manufacturedAliasType = ManufacturedAliasType_t::matNone;
4246 static void to_json(nlohmann::json& j,
const TalkerInformation& p)
4250 TOJSON_IMPL(nodeId),
4251 TOJSON_IMPL(rxFlags),
4252 TOJSON_IMPL(txPriority),
4254 TOJSON_IMPL(duplicateCount),
4255 TOJSON_IMPL(aliasSpecializer),
4256 TOJSON_IMPL(rxMuted),
4257 TOJSON_IMPL(manufacturedAliasType),
4261 static void from_json(
const nlohmann::json& j, TalkerInformation& p)
4264 getOptional<std::string>(
"alias", p.alias, j, EMPTY_STRING);
4265 getOptional<std::string>(
"nodeId", p.nodeId, j, EMPTY_STRING);
4266 getOptional<uint16_t>(
"rxFlags", p.rxFlags, j, 0);
4267 getOptional<int>(
"txPriority", p.txPriority, j, 0);
4268 getOptional<uint32_t>(
"txId", p.txId, j, 0);
4269 getOptional<int>(
"duplicateCount", p.duplicateCount, j, 0);
4270 getOptional<uint16_t>(
"aliasSpecializer", p.aliasSpecializer, j, 0);
4271 getOptional<bool>(
"rxMuted", p.rxMuted, j,
false);
4272 getOptional<TalkerInformation::ManufacturedAliasType_t>(
"manufacturedAliasType", p.manufacturedAliasType, j, TalkerInformation::ManufacturedAliasType_t::matNone);
4273 getOptional<uint32_t>(
"ssrc", p.ssrc, j, 0);
4277 JSON_SERIALIZED_CLASS(GroupTalkers)
4291 IMPLEMENT_JSON_SERIALIZATION()
4296 std::vector<TalkerInformation>
list;
4309 static void to_json(nlohmann::json& j,
const GroupTalkers& p)
4315 static void from_json(
const nlohmann::json& j, GroupTalkers& p)
4318 getOptional<std::vector<TalkerInformation>>(
"list", p.list, j);
4322 JSON_SERIALIZED_CLASS(Presence)
4334 IMPLEMENT_JSON_SERIALIZATION()
4335 IMPLEMENT_JSON_DOCUMENTATION(
Presence)
4383 minIntervalSecs = 5;
4384 reduceImmediacy =
false;
4388 static void to_json(nlohmann::json& j,
const Presence& p)
4391 TOJSON_IMPL(format),
4392 TOJSON_IMPL(intervalSecs),
4393 TOJSON_IMPL(listenOnly),
4394 TOJSON_IMPL(minIntervalSecs),
4395 TOJSON_IMPL(reduceImmediacy)
4398 static void from_json(
const nlohmann::json& j, Presence& p)
4401 getOptional<Presence::Format_t>(
"format", p.format, j, Presence::Format_t::pfEngage);
4402 getOptional<int>(
"intervalSecs", p.intervalSecs, j, 30);
4403 getOptional<bool>(
"listenOnly", p.listenOnly, j,
false);
4404 getOptional<int>(
"minIntervalSecs", p.minIntervalSecs, j, 5);
4405 getOptional<bool>(
"reduceImmediacy", p.reduceImmediacy, j,
false);
4410 JSON_SERIALIZED_CLASS(Advertising)
4422 IMPLEMENT_JSON_SERIALIZATION()
4444 alwaysAdvertise =
false;
4448 static void to_json(nlohmann::json& j,
const Advertising& p)
4451 TOJSON_IMPL(enabled),
4452 TOJSON_IMPL(intervalMs),
4453 TOJSON_IMPL(alwaysAdvertise)
4456 static void from_json(
const nlohmann::json& j, Advertising& p)
4459 getOptional(
"enabled", p.enabled, j,
false);
4460 getOptional<int>(
"intervalMs", p.intervalMs, j, 20000);
4461 getOptional<bool>(
"alwaysAdvertise", p.alwaysAdvertise, j,
false);
4465 JSON_SERIALIZED_CLASS(GroupPriorityTranslation)
4477 IMPLEMENT_JSON_SERIALIZATION()
4503 static void to_json(nlohmann::json& j,
const GroupPriorityTranslation& p)
4508 TOJSON_IMPL(priority)
4511 static void from_json(
const nlohmann::json& j, GroupPriorityTranslation& p)
4514 j.at(
"rx").get_to(p.rx);
4515 j.at(
"tx").get_to(p.tx);
4516 FROMJSON_IMPL(priority,
int, 0);
4520 JSON_SERIALIZED_CLASS(GroupTimeline)
4534 IMPLEMENT_JSON_SERIALIZATION()
4553 maxAudioTimeMs = 30000;
4558 static void to_json(nlohmann::json& j,
const GroupTimeline& p)
4561 TOJSON_IMPL(enabled),
4562 TOJSON_IMPL(maxAudioTimeMs),
4563 TOJSON_IMPL(recordAudio)
4566 static void from_json(
const nlohmann::json& j, GroupTimeline& p)
4569 getOptional(
"enabled", p.enabled, j,
true);
4570 getOptional<int>(
"maxAudioTimeMs", p.maxAudioTimeMs, j, 30000);
4571 getOptional(
"recordAudio", p.recordAudio, j,
true);
4674 IMPLEMENT_JSON_SERIALIZATION()
4696 static void to_json(nlohmann::json& j,
const GroupAppTransport& p)
4699 TOJSON_IMPL(enabled),
4703 static void from_json(
const nlohmann::json& j, GroupAppTransport& p)
4706 getOptional<bool>(
"enabled", p.enabled, j,
false);
4707 getOptional<std::string>(
"id", p.id, j);
4711 JSON_SERIALIZED_CLASS(RtpProfile)
4723 IMPLEMENT_JSON_SERIALIZATION()
4741 jmReleaseOnTxEnd = 2
4804 jitterMaxMs = 10000;
4806 jitterMaxFactor = 8;
4807 jitterTrimPercentage = 10;
4808 jitterUnderrunReductionThresholdMs = 1500;
4809 jitterUnderrunReductionAger = 100;
4810 latePacketSequenceRange = 5;
4811 latePacketTimestampRangeMs = 2000;
4812 inboundProcessorInactivityMs = 500;
4813 jitterForceTrimAtMs = 0;
4814 rtcpPresenceTimeoutMs = 45000;
4815 jitterMaxExceededClipPerc = 10;
4816 jitterMaxExceededClipHangMs = 1500;
4817 zombieLifetimeMs = 15000;
4818 jitterMaxTrimMs = 250;
4819 signalledInboundProcessorInactivityMs = (inboundProcessorInactivityMs * 4);
4823 static void to_json(nlohmann::json& j,
const RtpProfile& p)
4827 TOJSON_IMPL(jitterMaxMs),
4828 TOJSON_IMPL(inboundProcessorInactivityMs),
4829 TOJSON_IMPL(jitterMinMs),
4830 TOJSON_IMPL(jitterMaxFactor),
4831 TOJSON_IMPL(jitterTrimPercentage),
4832 TOJSON_IMPL(jitterUnderrunReductionThresholdMs),
4833 TOJSON_IMPL(jitterUnderrunReductionAger),
4834 TOJSON_IMPL(latePacketSequenceRange),
4835 TOJSON_IMPL(latePacketTimestampRangeMs),
4836 TOJSON_IMPL(inboundProcessorInactivityMs),
4837 TOJSON_IMPL(jitterForceTrimAtMs),
4838 TOJSON_IMPL(jitterMaxExceededClipPerc),
4839 TOJSON_IMPL(jitterMaxExceededClipHangMs),
4840 TOJSON_IMPL(zombieLifetimeMs),
4841 TOJSON_IMPL(jitterMaxTrimMs),
4842 TOJSON_IMPL(signalledInboundProcessorInactivityMs)
4845 static void from_json(
const nlohmann::json& j, RtpProfile& p)
4848 FROMJSON_IMPL(mode, RtpProfile::JitterMode_t, RtpProfile::JitterMode_t::jmStandard);
4849 FROMJSON_IMPL(jitterMaxMs,
int, 10000);
4850 FROMJSON_IMPL(jitterMinMs,
int, 20);
4851 FROMJSON_IMPL(jitterMaxFactor,
int, 8);
4852 FROMJSON_IMPL(jitterTrimPercentage,
int, 10);
4853 FROMJSON_IMPL(jitterUnderrunReductionThresholdMs,
int, 1500);
4854 FROMJSON_IMPL(jitterUnderrunReductionAger,
int, 100);
4855 FROMJSON_IMPL(latePacketSequenceRange,
int, 5);
4856 FROMJSON_IMPL(latePacketTimestampRangeMs,
int, 2000);
4857 FROMJSON_IMPL(inboundProcessorInactivityMs,
int, 500);
4858 FROMJSON_IMPL(jitterForceTrimAtMs,
int, 0);
4859 FROMJSON_IMPL(rtcpPresenceTimeoutMs,
int, 45000);
4860 FROMJSON_IMPL(jitterMaxExceededClipPerc,
int, 10);
4861 FROMJSON_IMPL(jitterMaxExceededClipHangMs,
int, 1500);
4862 FROMJSON_IMPL(zombieLifetimeMs,
int, 15000);
4863 FROMJSON_IMPL(jitterMaxTrimMs,
int, 250);
4864 FROMJSON_IMPL(signalledInboundProcessorInactivityMs,
int, (p.inboundProcessorInactivityMs * 4));
4868 JSON_SERIALIZED_CLASS(Tls)
4880 IMPLEMENT_JSON_SERIALIZATION()
4881 IMPLEMENT_JSON_DOCUMENTATION(
Tls)
4911 allowSelfSignedCertificates =
false;
4912 caCertificates.clear();
4913 subjectRestrictions.clear();
4914 issuerRestrictions.clear();
4919 static void to_json(nlohmann::json& j,
const Tls& p)
4922 TOJSON_IMPL(verifyPeers),
4923 TOJSON_IMPL(allowSelfSignedCertificates),
4924 TOJSON_IMPL(caCertificates),
4925 TOJSON_IMPL(subjectRestrictions),
4926 TOJSON_IMPL(issuerRestrictions),
4927 TOJSON_IMPL(crlSerials)
4930 static void from_json(
const nlohmann::json& j, Tls& p)
4933 getOptional<bool>(
"verifyPeers", p.verifyPeers, j,
true);
4934 getOptional<bool>(
"allowSelfSignedCertificates", p.allowSelfSignedCertificates, j,
false);
4935 getOptional<std::vector<std::string>>(
"caCertificates", p.caCertificates, j);
4936 getOptional<StringRestrictionList>(
"subjectRestrictions", p.subjectRestrictions, j);
4937 getOptional<StringRestrictionList>(
"issuerRestrictions", p.issuerRestrictions, j);
4938 getOptional<std::vector<std::string>>(
"crlSerials", p.crlSerials, j);
4942 JSON_SERIALIZED_CLASS(RangerPackets)
4956 IMPLEMENT_JSON_SERIALIZATION()
4977 virtual void initForDocumenting()
4982 static void to_json(nlohmann::json& j,
const RangerPackets& p)
4985 TOJSON_IMPL(hangTimerSecs),
4989 static void from_json(
const nlohmann::json& j, RangerPackets& p)
4992 getOptional<int>(
"hangTimerSecs", p.hangTimerSecs, j, 11);
4993 getOptional<int>(
"count", p.count, j, 5);
4997 JSON_SERIALIZED_CLASS(Source)
5011 IMPLEMENT_JSON_SERIALIZATION()
5012 IMPLEMENT_JSON_DOCUMENTATION(
Source)
5019 uint8_t _internal_binary_nodeId[ENGAGE_MAX_NODE_ID_SIZE];
5025 uint8_t _internal_binary_alias[ENGAGE_MAX_ALIAS_SIZE];
5035 memset(_internal_binary_nodeId, 0,
sizeof(_internal_binary_nodeId));
5038 memset(_internal_binary_alias, 0,
sizeof(_internal_binary_alias));
5041 virtual void initForDocumenting()
5046 static void to_json(nlohmann::json& j,
const Source& p)
5049 TOJSON_IMPL(nodeId),
5053 static void from_json(
const nlohmann::json& j, Source& p)
5056 FROMJSON_IMPL_SIMPLE(nodeId);
5057 FROMJSON_IMPL_SIMPLE(alias);
5061 JSON_SERIALIZED_CLASS(GroupBridgeTargetOutputDetail)
5075 IMPLEMENT_JSON_SERIALIZATION()
5112 mode = BridgingOpMode_t::bomRaw;
5113 mixedStreamTxParams.clear();
5116 virtual void initForDocumenting()
5122 static void to_json(nlohmann::json& j,
const GroupBridgeTargetOutputDetail& p)
5126 TOJSON_IMPL(mixedStreamTxParams)
5129 static void from_json(
const nlohmann::json& j, GroupBridgeTargetOutputDetail& p)
5132 FROMJSON_IMPL_SIMPLE(mode);
5133 FROMJSON_IMPL_SIMPLE(mixedStreamTxParams);
5137 JSON_SERIALIZED_CLASS(GroupDefaultAudioPriority)
5151 IMPLEMENT_JSON_SERIALIZATION()
5172 virtual void initForDocumenting()
5178 static void to_json(nlohmann::json& j,
const GroupDefaultAudioPriority& p)
5185 static void from_json(
const nlohmann::json& j, GroupDefaultAudioPriority& p)
5188 FROMJSON_IMPL_SIMPLE(tx);
5189 FROMJSON_IMPL_SIMPLE(rx);
5193 JSON_SERIALIZED_CLASS(Group)
5206 IMPLEMENT_JSON_SERIALIZATION()
5207 IMPLEMENT_JSON_DOCUMENTATION(
Group)
5230 iagpAnonymousAlias = 0,
5234 } InboundAliasGenerationPolicy_t;
5409 bridgeTargetOutputDetail.clear();
5410 defaultAudioPriority.clear();
5414 interfaceName.clear();
5420 cryptoPassword.clear();
5424 rallypoints.clear();
5425 rallypointCluster.clear();
5430 blockAdvertising =
false;
5436 enableMulticastFailover =
false;
5437 multicastFailoverSecs = 10;
5439 rtcpPresenceRx.clear();
5441 presenceGroupAffinities.clear();
5442 disablePacketEvents =
false;
5444 rfc4733RtpPayloadId = 0;
5445 inboundRtpPayloadTypeTranslations.clear();
5446 priorityTranslation.clear();
5448 stickyTidHangSecs = 10;
5449 anonymousAlias.clear();
5452 appTransport.clear();
5453 allowLoopback =
false;
5456 rangerPackets.clear();
5458 _wasDeserialized_rtpProfile =
false;
5460 txImpairment.clear();
5461 rxImpairment.clear();
5463 specializerAffinities.clear();
5467 ignoreSources.clear();
5469 languageCode.clear();
5476 inboundAliasGenerationPolicy = iagpAnonymousAlias;
5479 ignoreAudioTraffic =
false;
5483 static void to_json(nlohmann::json& j,
const Group& p)
5487 TOJSON_IMPL(bridgeTargetOutputDetail),
5488 TOJSON_IMPL(defaultAudioPriority),
5491 TOJSON_IMPL(spokenName),
5492 TOJSON_IMPL(interfaceName),
5495 TOJSON_IMPL(txOptions),
5496 TOJSON_IMPL(txAudio),
5497 TOJSON_IMPL(presence),
5498 TOJSON_IMPL(cryptoPassword),
5507 TOJSON_IMPL(timeline),
5508 TOJSON_IMPL(blockAdvertising),
5509 TOJSON_IMPL(source),
5510 TOJSON_IMPL(maxRxSecs),
5511 TOJSON_IMPL(enableMulticastFailover),
5512 TOJSON_IMPL(multicastFailoverSecs),
5513 TOJSON_IMPL(rtcpPresenceRx),
5514 TOJSON_IMPL(presenceGroupAffinities),
5515 TOJSON_IMPL(disablePacketEvents),
5516 TOJSON_IMPL(rfc4733RtpPayloadId),
5517 TOJSON_IMPL(inboundRtpPayloadTypeTranslations),
5518 TOJSON_IMPL(priorityTranslation),
5519 TOJSON_IMPL(stickyTidHangSecs),
5520 TOJSON_IMPL(anonymousAlias),
5521 TOJSON_IMPL(lbCrypto),
5522 TOJSON_IMPL(appTransport),
5523 TOJSON_IMPL(allowLoopback),
5524 TOJSON_IMPL(rangerPackets),
5526 TOJSON_IMPL(txImpairment),
5527 TOJSON_IMPL(rxImpairment),
5529 TOJSON_IMPL(specializerAffinities),
5531 TOJSON_IMPL(securityLevel),
5533 TOJSON_IMPL(ignoreSources),
5535 TOJSON_IMPL(languageCode),
5536 TOJSON_IMPL(synVoice),
5538 TOJSON_IMPL(rxCapture),
5539 TOJSON_IMPL(txCapture),
5541 TOJSON_IMPL(blobRtpPayloadType),
5543 TOJSON_IMPL(inboundAliasGenerationPolicy),
5545 TOJSON_IMPL(gateIn),
5547 TOJSON_IMPL(ignoreAudioTraffic)
5553 if(p._wasDeserialized_rtpProfile || p.isDocumenting())
5555 j[
"rtpProfile"] = p.rtpProfile;
5558 if(p.isDocumenting())
5560 j[
"rallypointCluster"] = p.rallypointCluster;
5561 j[
"rallypoints"] = p.rallypoints;
5566 if(!p.rallypointCluster.rallypoints.empty())
5568 j[
"rallypointCluster"] = p.rallypointCluster;
5570 else if(!p.rallypoints.empty())
5572 j[
"rallypoints"] = p.rallypoints;
5576 static void from_json(
const nlohmann::json& j, Group& p)
5579 j.at(
"type").get_to(p.type);
5580 getOptional<GroupBridgeTargetOutputDetail>(
"bridgeTargetOutputDetail", p.bridgeTargetOutputDetail, j);
5581 j.at(
"id").get_to(p.id);
5582 getOptional<std::string>(
"name", p.name, j);
5583 getOptional<std::string>(
"spokenName", p.spokenName, j);
5584 getOptional<std::string>(
"interfaceName", p.interfaceName, j);
5585 getOptional<NetworkAddress>(
"rx", p.rx, j);
5586 getOptional<NetworkAddress>(
"tx", p.tx, j);
5587 getOptional<NetworkTxOptions>(
"txOptions", p.txOptions, j);
5588 getOptional<std::string>(
"cryptoPassword", p.cryptoPassword, j);
5589 getOptional<std::string>(
"alias", p.alias, j);
5590 getOptional<TxAudio>(
"txAudio", p.txAudio, j);
5591 getOptional<Presence>(
"presence", p.presence, j);
5592 getOptional<std::vector<Rallypoint>>(
"rallypoints", p.rallypoints, j);
5593 getOptional<RallypointCluster>(
"rallypointCluster", p.rallypointCluster, j);
5594 getOptional<Audio>(
"audio", p.audio, j);
5595 getOptional<GroupTimeline>(
"timeline", p.timeline, j);
5596 getOptional<bool>(
"blockAdvertising", p.blockAdvertising, j,
false);
5597 getOptional<std::string>(
"source", p.source, j);
5598 getOptional<int>(
"maxRxSecs", p.maxRxSecs, j, 0);
5599 getOptional<bool>(
"enableMulticastFailover", p.enableMulticastFailover, j,
false);
5600 getOptional<int>(
"multicastFailoverSecs", p.multicastFailoverSecs, j, 10);
5601 getOptional<NetworkAddress>(
"rtcpPresenceRx", p.rtcpPresenceRx, j);
5602 getOptional<std::vector<std::string>>(
"presenceGroupAffinities", p.presenceGroupAffinities, j);
5603 getOptional<bool>(
"disablePacketEvents", p.disablePacketEvents, j,
false);
5604 getOptional<int>(
"rfc4733RtpPayloadId", p.rfc4733RtpPayloadId, j, 0);
5605 getOptional<std::vector<RtpPayloadTypeTranslation>>(
"inboundRtpPayloadTypeTranslations", p.inboundRtpPayloadTypeTranslations, j);
5606 getOptional<GroupPriorityTranslation>(
"priorityTranslation", p.priorityTranslation, j);
5607 getOptional<GroupDefaultAudioPriority>(
"defaultAudioPriority", p.defaultAudioPriority, j);
5608 getOptional<int>(
"stickyTidHangSecs", p.stickyTidHangSecs, j, 10);
5609 getOptional<std::string>(
"anonymousAlias", p.anonymousAlias, j);
5610 getOptional<bool>(
"lbCrypto", p.lbCrypto, j,
false);
5611 getOptional<GroupAppTransport>(
"appTransport", p.appTransport, j);
5612 getOptional<bool>(
"allowLoopback", p.allowLoopback, j,
false);
5613 getOptionalWithIndicator<RtpProfile>(
"rtpProfile", p.rtpProfile, j, &p._wasDeserialized_rtpProfile);
5614 getOptional<RangerPackets>(
"rangerPackets", p.rangerPackets, j);
5615 getOptional<TransportImpairment>(
"txImpairment", p.txImpairment, j);
5616 getOptional<TransportImpairment>(
"rxImpairment", p.rxImpairment, j);
5617 getOptional<std::vector<uint16_t>>(
"specializerAffinities", p.specializerAffinities, j);
5618 getOptional<uint32_t>(
"securityLevel", p.securityLevel, j, 0);
5619 getOptional<std::vector<Source>>(
"ignoreSources", p.ignoreSources, j);
5620 getOptional<std::string>(
"languageCode", p.languageCode, j);
5621 getOptional<std::string>(
"synVoice", p.synVoice, j);
5623 getOptional<PacketCapturer>(
"rxCapture", p.rxCapture, j);
5624 getOptional<PacketCapturer>(
"txCapture", p.txCapture, j);
5628 getOptional<Group::InboundAliasGenerationPolicy_t>(
"inboundAliasGenerationPolicy", p.inboundAliasGenerationPolicy, j, Group::InboundAliasGenerationPolicy_t::iagpAnonymousAlias);
5630 getOptional<AudioGate>(
"gateIn", p.gateIn, j);
5632 getOptional<bool>(
"ignoreAudioTraffic", p.ignoreAudioTraffic, j,
false);
5634 FROMJSON_BASE_IMPL();
5639 JSON_SERIALIZED_CLASS(Mission)
5642 IMPLEMENT_JSON_SERIALIZATION()
5643 IMPLEMENT_JSON_DOCUMENTATION(
Mission)
5648 std::vector<Group> groups;
5649 std::chrono::system_clock::time_point begins;
5650 std::chrono::system_clock::time_point ends;
5651 std::string certStoreId;
5652 int multicastFailoverPolicy;
5660 certStoreId.clear();
5661 multicastFailoverPolicy = 0;
5666 static void to_json(nlohmann::json& j,
const Mission& p)
5671 TOJSON_IMPL(groups),
5672 TOJSON_IMPL(certStoreId),
5673 TOJSON_IMPL(multicastFailoverPolicy),
5674 TOJSON_IMPL(rallypoint)
5678 static void from_json(
const nlohmann::json& j, Mission& p)
5681 j.at(
"id").get_to(p.id);
5682 j.at(
"name").get_to(p.name);
5687 j.at(
"groups").get_to(p.groups);
5694 FROMJSON_IMPL(certStoreId, std::string, EMPTY_STRING);
5695 FROMJSON_IMPL(multicastFailoverPolicy,
int, 0);
5696 getOptional<Rallypoint>(
"rallypoint", p.rallypoint, j);
5700 JSON_SERIALIZED_CLASS(LicenseDescriptor)
5712 IMPLEMENT_JSON_SERIALIZATION()
5721 static const int STATUS_OK = 0;
5722 static const int ERR_NULL_ENTITLEMENT_KEY = -1;
5723 static const int ERR_NULL_LICENSE_KEY = -2;
5724 static const int ERR_INVALID_LICENSE_KEY_LEN = -3;
5725 static const int ERR_LICENSE_KEY_VERIFICATION_FAILURE = -4;
5726 static const int ERR_ACTIVATION_CODE_VERIFICATION_FAILURE = -5;
5727 static const int ERR_INVALID_EXPIRATION_DATE = -6;
5728 static const int ERR_GENERAL_FAILURE = -7;
5729 static const int ERR_NOT_INITIALIZED = -8;
5730 static const int ERR_REQUIRES_ACTIVATION = -9;
5731 static const int ERR_LICENSE_NOT_SUITED_FOR_ACTIVATION = -10;
5739 static const uint8_t LIC_CARGO_FLAG_LIMIT_TO_FEATURES = 0x01;
5806 entitlement.clear();
5808 activationCode.clear();
5811 expiresFormatted.clear();
5816 status = ERR_NOT_INITIALIZED;
5817 manufacturerId.clear();
5818 activationHmac.clear();
5822 static void to_json(nlohmann::json& j,
const LicenseDescriptor& p)
5826 {
"entitlement",
"*entitlement*"},
5828 TOJSON_IMPL(activationCode),
5830 TOJSON_IMPL(expires),
5831 TOJSON_IMPL(expiresFormatted),
5833 TOJSON_IMPL(deviceId),
5834 TOJSON_IMPL(status),
5836 {
"manufacturerId",
"*manufacturerId*"},
5838 TOJSON_IMPL(cargoFlags),
5839 TOJSON_IMPL(activationHmac)
5843 static void from_json(
const nlohmann::json& j, LicenseDescriptor& p)
5846 FROMJSON_IMPL(entitlement, std::string, EMPTY_STRING);
5847 FROMJSON_IMPL(key, std::string, EMPTY_STRING);
5848 FROMJSON_IMPL(activationCode, std::string, EMPTY_STRING);
5849 FROMJSON_IMPL(type,
int, 0);
5850 FROMJSON_IMPL(expires, time_t, 0);
5851 FROMJSON_IMPL(expiresFormatted, std::string, EMPTY_STRING);
5852 FROMJSON_IMPL(flags, uint32_t, 0);
5853 FROMJSON_IMPL(deviceId, std::string, EMPTY_STRING);
5854 FROMJSON_IMPL(status,
int, LicenseDescriptor::ERR_NOT_INITIALIZED);
5855 FROMJSON_IMPL(manufacturerId, std::string, EMPTY_STRING);
5856 FROMJSON_IMPL(cargo, std::string, EMPTY_STRING);
5857 FROMJSON_IMPL(cargoFlags, uint8_t, 0);
5858 FROMJSON_IMPL(activationHmac, std::string, EMPTY_STRING);
5863 JSON_SERIALIZED_CLASS(EngineNetworkingRpUdpStreaming)
5877 IMPLEMENT_JSON_SERIALIZATION()
5905 keepaliveIntervalSecs = 15;
5906 priority = TxPriority_t::priVoice;
5910 virtual void initForDocumenting()
5915 static void to_json(nlohmann::json& j,
const EngineNetworkingRpUdpStreaming& p)
5918 TOJSON_IMPL(enabled),
5920 TOJSON_IMPL(keepaliveIntervalSecs),
5921 TOJSON_IMPL(priority),
5925 static void from_json(
const nlohmann::json& j, EngineNetworkingRpUdpStreaming& p)
5928 getOptional<bool>(
"enabled", p.enabled, j,
false);
5929 getOptional<int>(
"port", p.port, j, 0);
5930 getOptional<int>(
"keepaliveIntervalSecs", p.keepaliveIntervalSecs, j, 15);
5931 getOptional<TxPriority_t>(
"priority", p.priority, j, TxPriority_t::priVoice);
5932 getOptional<int>(
"ttl", p.ttl, j, 64);
5936 JSON_SERIALIZED_CLASS(EnginePolicyNetworking)
5947 IMPLEMENT_JSON_SERIALIZATION()
5983 multicastRejoinSecs = 8;
5984 rallypointRtTestIntervalMs = 60000;
5985 logRtpJitterBufferStats =
false;
5986 preventMulticastFailover =
false;
5987 addressResolutionPolicy = AddressResolutionPolicy_t::arpIpv6ThenIpv4;
5989 rpUdpStreaming.clear();
5994 static void to_json(nlohmann::json& j,
const EnginePolicyNetworking& p)
5997 TOJSON_IMPL(defaultNic),
5998 TOJSON_IMPL(multicastRejoinSecs),
6000 TOJSON_IMPL(rallypointRtTestIntervalMs),
6001 TOJSON_IMPL(logRtpJitterBufferStats),
6002 TOJSON_IMPL(preventMulticastFailover),
6004 TOJSON_IMPL(rpUdpStreaming),
6005 TOJSON_IMPL(rtpProfile),
6006 TOJSON_IMPL(addressResolutionPolicy)
6009 static void from_json(
const nlohmann::json& j, EnginePolicyNetworking& p)
6012 FROMJSON_IMPL(defaultNic, std::string, EMPTY_STRING);
6013 FROMJSON_IMPL(multicastRejoinSecs,
int, 8);
6014 FROMJSON_IMPL(rallypointRtTestIntervalMs,
int, 60000);
6015 FROMJSON_IMPL(logRtpJitterBufferStats,
bool,
false);
6016 FROMJSON_IMPL(preventMulticastFailover,
bool,
false);
6018 getOptional<EngineNetworkingRpUdpStreaming>(
"rpUdpStreaming", p.rpUdpStreaming, j);
6019 getOptional<RtpProfile>(
"rtpProfile", p.rtpProfile, j);
6020 getOptional<AddressResolutionPolicy_t>(
"addressResolutionPolicy", p.addressResolutionPolicy, j, AddressResolutionPolicy_t::arpIpv6ThenIpv4);
6024 JSON_SERIALIZED_CLASS(Aec)
6036 IMPLEMENT_JSON_SERIALIZATION()
6037 IMPLEMENT_JSON_DOCUMENTATION(
Aec)
6092 static void to_json(nlohmann::json& j,
const Aec& p)
6095 TOJSON_IMPL(enabled),
6097 TOJSON_IMPL(speakerTailMs),
6101 static void from_json(
const nlohmann::json& j, Aec& p)
6104 FROMJSON_IMPL(enabled,
bool,
false);
6105 FROMJSON_IMPL(mode, Aec::Mode_t, Aec::Mode_t::aecmDefault);
6106 FROMJSON_IMPL(speakerTailMs,
int, 60);
6107 FROMJSON_IMPL(cng,
bool,
true);
6111 JSON_SERIALIZED_CLASS(Vad)
6123 IMPLEMENT_JSON_SERIALIZATION()
6124 IMPLEMENT_JSON_DOCUMENTATION(
Vad)
6144 vamVeryAggressive = 3
6165 static void to_json(nlohmann::json& j,
const Vad& p)
6168 TOJSON_IMPL(enabled),
6172 static void from_json(
const nlohmann::json& j, Vad& p)
6175 FROMJSON_IMPL(enabled,
bool,
false);
6176 FROMJSON_IMPL(mode, Vad::Mode_t, Vad::Mode_t::vamDefault);
6180 JSON_SERIALIZED_CLASS(Bridge)
6192 IMPLEMENT_JSON_SERIALIZATION()
6193 IMPLEMENT_JSON_DOCUMENTATION(
Bridge)
6224 static void to_json(nlohmann::json& j,
const Bridge& p)
6229 TOJSON_IMPL(groups),
6230 TOJSON_IMPL(enabled)
6233 static void from_json(
const nlohmann::json& j, Bridge& p)
6236 FROMJSON_IMPL(
id, std::string, EMPTY_STRING);
6237 FROMJSON_IMPL(name, std::string, EMPTY_STRING);
6238 getOptional<std::vector<std::string>>(
"groups", p.groups, j);
6239 FROMJSON_IMPL(enabled,
bool,
true);
6243 JSON_SERIALIZED_CLASS(AndroidAudio)
6255 IMPLEMENT_JSON_SERIALIZATION()
6259 constexpr static int INVALID_SESSION_ID = -9999;
6320 performanceMode = 12;
6324 sessionId = AndroidAudio::INVALID_SESSION_ID;
6329 static void to_json(nlohmann::json& j,
const AndroidAudio& p)
6333 TOJSON_IMPL(sharingMode),
6334 TOJSON_IMPL(performanceMode),
6336 TOJSON_IMPL(contentType),
6337 TOJSON_IMPL(inputPreset),
6338 TOJSON_IMPL(sessionId),
6339 TOJSON_IMPL(engineMode)
6342 static void from_json(
const nlohmann::json& j, AndroidAudio& p)
6345 FROMJSON_IMPL(api,
int, 0);
6346 FROMJSON_IMPL(sharingMode,
int, 0);
6347 FROMJSON_IMPL(performanceMode,
int, 12);
6348 FROMJSON_IMPL(usage,
int, 2);
6349 FROMJSON_IMPL(contentType,
int, 1);
6350 FROMJSON_IMPL(inputPreset,
int, 7);
6351 FROMJSON_IMPL(sessionId,
int, AndroidAudio::INVALID_SESSION_ID);
6352 FROMJSON_IMPL(engineMode,
int, 0);
6356 JSON_SERIALIZED_CLASS(EnginePolicyAudio)
6368 IMPLEMENT_JSON_SERIALIZATION()
6426 hardwareEnabled =
true;
6427 internalRate = 16000;
6428 internalChannels = 2;
6435 denoiseInput =
false;
6436 denoiseOutput =
false;
6437 saveInputPcm =
false;
6438 saveOutputPcm =
false;
6443 static void to_json(nlohmann::json& j,
const EnginePolicyAudio& p)
6446 TOJSON_IMPL(enabled),
6447 TOJSON_IMPL(hardwareEnabled),
6448 TOJSON_IMPL(internalRate),
6449 TOJSON_IMPL(internalChannels),
6450 TOJSON_IMPL(muteTxOnTx),
6453 TOJSON_IMPL(android),
6454 TOJSON_IMPL(inputAgc),
6455 TOJSON_IMPL(outputAgc),
6456 TOJSON_IMPL(denoiseInput),
6457 TOJSON_IMPL(denoiseOutput),
6458 TOJSON_IMPL(saveInputPcm),
6459 TOJSON_IMPL(saveOutputPcm),
6460 TOJSON_IMPL(registry)
6463 static void from_json(
const nlohmann::json& j, EnginePolicyAudio& p)
6466 getOptional<bool>(
"enabled", p.enabled, j,
true);
6467 getOptional<bool>(
"hardwareEnabled", p.hardwareEnabled, j,
true);
6468 FROMJSON_IMPL(internalRate,
int, 16000);
6469 FROMJSON_IMPL(internalChannels,
int, 2);
6471 FROMJSON_IMPL(muteTxOnTx,
bool,
false);
6472 getOptional<Aec>(
"aec", p.aec, j);
6473 getOptional<Vad>(
"vad", p.vad, j);
6474 getOptional<AndroidAudio>(
"android", p.android, j);
6475 getOptional<Agc>(
"inputAgc", p.inputAgc, j);
6476 getOptional<Agc>(
"outputAgc", p.outputAgc, j);
6477 FROMJSON_IMPL(denoiseInput,
bool,
false);
6478 FROMJSON_IMPL(denoiseOutput,
bool,
false);
6479 FROMJSON_IMPL(saveInputPcm,
bool,
false);
6480 FROMJSON_IMPL(saveOutputPcm,
bool,
false);
6481 getOptional<AudioRegistry>(
"registry", p.registry, j);
6485 JSON_SERIALIZED_CLASS(SecurityCertificate)
6497 IMPLEMENT_JSON_SERIALIZATION()
6519 certificate.clear();
6524 static void to_json(nlohmann::json& j,
const SecurityCertificate& p)
6527 TOJSON_IMPL(certificate),
6531 static void from_json(
const nlohmann::json& j, SecurityCertificate& p)
6534 FROMJSON_IMPL(certificate, std::string, EMPTY_STRING);
6535 FROMJSON_IMPL(key, std::string, EMPTY_STRING);
6540 JSON_SERIALIZED_CLASS(EnginePolicySecurity)
6553 IMPLEMENT_JSON_SERIALIZATION()
6586 certificate.clear();
6587 caCertificates.clear();
6591 static void to_json(nlohmann::json& j,
const EnginePolicySecurity& p)
6594 TOJSON_IMPL(certificate),
6595 TOJSON_IMPL(caCertificates)
6598 static void from_json(
const nlohmann::json& j, EnginePolicySecurity& p)
6601 getOptional(
"certificate", p.certificate, j);
6602 getOptional<std::vector<std::string>>(
"caCertificates", p.caCertificates, j);
6606 JSON_SERIALIZED_CLASS(EnginePolicyLogging)
6618 IMPLEMENT_JSON_SERIALIZATION()
6651 enableSyslog =
false;
6655 static void to_json(nlohmann::json& j,
const EnginePolicyLogging& p)
6658 TOJSON_IMPL(maxLevel),
6659 TOJSON_IMPL(enableSyslog)
6662 static void from_json(
const nlohmann::json& j, EnginePolicyLogging& p)
6665 getOptional(
"maxLevel", p.maxLevel, j, 4);
6666 getOptional(
"enableSyslog", p.enableSyslog, j);
6671 JSON_SERIALIZED_CLASS(EnginePolicyDatabase)
6674 IMPLEMENT_JSON_SERIALIZATION()
6685 DatabaseType_t type;
6686 std::string fixedFileName;
6687 bool forceMaintenance;
6697 type = DatabaseType_t::dbtFixedMemory;
6698 fixedFileName.clear();
6699 forceMaintenance =
false;
6700 reclaimSpace =
false;
6708 TOJSON_IMPL(fixedFileName),
6709 TOJSON_IMPL(forceMaintenance),
6710 TOJSON_IMPL(reclaimSpace)
6713 static void from_json(
const nlohmann::json& j, EnginePolicyDatabase& p)
6716 FROMJSON_IMPL(type, EnginePolicyDatabase::DatabaseType_t, EnginePolicyDatabase::DatabaseType_t::dbtFixedMemory);
6717 FROMJSON_IMPL(fixedFileName, std::string, EMPTY_STRING);
6718 FROMJSON_IMPL(forceMaintenance,
bool,
false);
6719 FROMJSON_IMPL(reclaimSpace,
bool,
false);
6724 JSON_SERIALIZED_CLASS(SecureSignature)
6734 IMPLEMENT_JSON_SERIALIZATION()
6755 certificate.clear();
6761 static void to_json(nlohmann::json& j,
const SecureSignature& p)
6764 TOJSON_IMPL(certificate),
6766 TOJSON_IMPL(signature)
6769 static void from_json(
const nlohmann::json& j, SecureSignature& p)
6772 FROMJSON_IMPL(certificate, std::string, EMPTY_STRING);
6774 FROMJSON_IMPL(signature, std::string, EMPTY_STRING);
6778 JSON_SERIALIZED_CLASS(NamedAudioDevice)
6781 IMPLEMENT_JSON_SERIALIZATION()
6786 std::string manufacturer;
6789 std::string serialNumber;
6802 manufacturer.clear();
6805 serialNumber.clear();
6816 TOJSON_IMPL(manufacturer),
6819 TOJSON_IMPL(serialNumber),
6822 TOJSON_IMPL(isDefault),
6825 static void from_json(
const nlohmann::json& j, NamedAudioDevice& p)
6828 getOptional<std::string>(
"name", p.name, j, EMPTY_STRING);
6829 getOptional<std::string>(
"manufacturer", p.manufacturer, j, EMPTY_STRING);
6830 getOptional<std::string>(
"model", p.model, j, EMPTY_STRING);
6831 getOptional<std::string>(
"id", p.id, j, EMPTY_STRING);
6832 getOptional<std::string>(
"serialNumber", p.serialNumber, j, EMPTY_STRING);
6833 getOptional<std::string>(
"type", p.type, j, EMPTY_STRING);
6834 getOptional<std::string>(
"extra", p.extra, j, EMPTY_STRING);
6835 getOptional<bool>(
"isDefault", p.isDefault, j,
false);
6840 JSON_SERIALIZED_CLASS(EnginePolicyNamedAudioDevices)
6843 IMPLEMENT_JSON_SERIALIZATION()
6847 std::vector<NamedAudioDevice> inputs;
6848 std::vector<NamedAudioDevice> outputs;
6865 TOJSON_IMPL(inputs),
6866 TOJSON_IMPL(outputs)
6869 static void from_json(
const nlohmann::json& j, EnginePolicyNamedAudioDevices& p)
6872 getOptional<std::vector<NamedAudioDevice>>(
"inputs", p.inputs, j);
6873 getOptional<std::vector<NamedAudioDevice>>(
"outputs", p.outputs, j);
6877 JSON_SERIALIZED_CLASS(Licensing)
6891 IMPLEMENT_JSON_SERIALIZATION()
6918 entitlement.clear();
6920 activationCode.clear();
6922 manufacturerId.clear();
6926 static void to_json(nlohmann::json& j,
const Licensing& p)
6929 TOJSON_IMPL(entitlement),
6931 TOJSON_IMPL(activationCode),
6932 TOJSON_IMPL(deviceId),
6933 TOJSON_IMPL(manufacturerId)
6936 static void from_json(
const nlohmann::json& j, Licensing& p)
6939 FROMJSON_IMPL(entitlement, std::string, EMPTY_STRING);
6940 FROMJSON_IMPL(key, std::string, EMPTY_STRING);
6941 FROMJSON_IMPL(activationCode, std::string, EMPTY_STRING);
6942 FROMJSON_IMPL(deviceId, std::string, EMPTY_STRING);
6943 FROMJSON_IMPL(manufacturerId, std::string, EMPTY_STRING);
6947 JSON_SERIALIZED_CLASS(DiscoveryMagellan)
6959 IMPLEMENT_JSON_SERIALIZATION()
6984 interfaceName.clear();
6990 static void to_json(nlohmann::json& j,
const DiscoveryMagellan& p)
6993 TOJSON_IMPL(enabled),
6994 TOJSON_IMPL(interfaceName),
6995 TOJSON_IMPL(security),
6999 static void from_json(
const nlohmann::json& j, DiscoveryMagellan& p)
7002 getOptional(
"enabled", p.enabled, j,
false);
7003 getOptional<Tls>(
"tls", p.tls, j);
7004 getOptional<SecurityCertificate>(
"security", p.security, j);
7005 FROMJSON_IMPL(interfaceName, std::string, EMPTY_STRING);
7009 JSON_SERIALIZED_CLASS(DiscoverySsdp)
7021 IMPLEMENT_JSON_SERIALIZATION()
7052 interfaceName.clear();
7054 searchTerms.clear();
7055 ageTimeoutMs = 30000;
7056 advertising.clear();
7060 static void to_json(nlohmann::json& j,
const DiscoverySsdp& p)
7063 TOJSON_IMPL(enabled),
7064 TOJSON_IMPL(interfaceName),
7065 TOJSON_IMPL(address),
7066 TOJSON_IMPL(searchTerms),
7067 TOJSON_IMPL(ageTimeoutMs),
7068 TOJSON_IMPL(advertising)
7071 static void from_json(
const nlohmann::json& j, DiscoverySsdp& p)
7074 getOptional(
"enabled", p.enabled, j,
false);
7075 getOptional<std::string>(
"interfaceName", p.interfaceName, j);
7077 getOptional<NetworkAddress>(
"address", p.address, j);
7078 if(p.address.address.empty())
7080 p.address.address =
"255.255.255.255";
7082 if(p.address.port <= 0)
7084 p.address.port = 1900;
7087 getOptional<std::vector<std::string>>(
"searchTerms", p.searchTerms, j);
7088 getOptional<int>(
"ageTimeoutMs", p.ageTimeoutMs, j, 30000);
7089 getOptional<Advertising>(
"advertising", p.advertising, j);
7093 JSON_SERIALIZED_CLASS(DiscoverySap)
7105 IMPLEMENT_JSON_SERIALIZATION()
7132 interfaceName.clear();
7134 ageTimeoutMs = 30000;
7135 advertising.clear();
7139 static void to_json(nlohmann::json& j,
const DiscoverySap& p)
7142 TOJSON_IMPL(enabled),
7143 TOJSON_IMPL(interfaceName),
7144 TOJSON_IMPL(address),
7145 TOJSON_IMPL(ageTimeoutMs),
7146 TOJSON_IMPL(advertising)
7149 static void from_json(
const nlohmann::json& j, DiscoverySap& p)
7152 getOptional(
"enabled", p.enabled, j,
false);
7153 getOptional<std::string>(
"interfaceName", p.interfaceName, j);
7154 getOptional<NetworkAddress>(
"address", p.address, j);
7155 if(p.address.address.empty())
7157 p.address.address =
"224.2.127.254";
7159 if(p.address.port <= 0)
7161 p.address.port = 9875;
7164 getOptional<int>(
"ageTimeoutMs", p.ageTimeoutMs, j, 30000);
7165 getOptional<Advertising>(
"advertising", p.advertising, j);
7169 JSON_SERIALIZED_CLASS(DiscoveryCistech)
7183 IMPLEMENT_JSON_SERIALIZATION()
7188 std::string interfaceName;
7200 interfaceName.clear();
7202 ageTimeoutMs = 30000;
7209 TOJSON_IMPL(enabled),
7210 TOJSON_IMPL(interfaceName),
7211 TOJSON_IMPL(address),
7212 TOJSON_IMPL(ageTimeoutMs)
7215 static void from_json(
const nlohmann::json& j, DiscoveryCistech& p)
7218 getOptional(
"enabled", p.enabled, j,
false);
7219 getOptional<std::string>(
"interfaceName", p.interfaceName, j);
7220 getOptional<NetworkAddress>(
"address", p.address, j);
7221 getOptional<int>(
"ageTimeoutMs", p.ageTimeoutMs, j, 30000);
7226 JSON_SERIALIZED_CLASS(DiscoveryTrellisware)
7238 IMPLEMENT_JSON_SERIALIZATION()
7261 static void to_json(nlohmann::json& j,
const DiscoveryTrellisware& p)
7264 TOJSON_IMPL(enabled),
7265 TOJSON_IMPL(security)
7268 static void from_json(
const nlohmann::json& j, DiscoveryTrellisware& p)
7271 getOptional(
"enabled", p.enabled, j,
false);
7272 getOptional<SecurityCertificate>(
"security", p.security, j);
7276 JSON_SERIALIZED_CLASS(DiscoveryConfiguration)
7288 IMPLEMENT_JSON_SERIALIZATION()
7321 static void to_json(nlohmann::json& j,
const DiscoveryConfiguration& p)
7324 TOJSON_IMPL(magellan),
7327 TOJSON_IMPL(cistech),
7328 TOJSON_IMPL(trellisware)
7331 static void from_json(
const nlohmann::json& j, DiscoveryConfiguration& p)
7334 getOptional<DiscoveryMagellan>(
"magellan", p.magellan, j);
7335 getOptional<DiscoverySsdp>(
"ssdp", p.ssdp, j);
7336 getOptional<DiscoverySap>(
"sap", p.sap, j);
7337 getOptional<DiscoveryCistech>(
"cistech", p.cistech, j);
7338 getOptional<DiscoveryTrellisware>(
"trellisware", p.trellisware, j);
7343 JSON_SERIALIZED_CLASS(EnginePolicyInternals)
7357 IMPLEMENT_JSON_SERIALIZATION()
7372 int logTaskQueueStatsIntervalMs;
7374 bool enableLazySpeakerClosure;
7411 housekeeperIntervalMs = 1000;
7412 logTaskQueueStatsIntervalMs = 0;
7415 enableLazySpeakerClosure =
false;
7416 rpClusterStrategy = RallypointCluster::ConnectionStrategy_t::csRoundRobin;
7417 rpClusterRolloverSecs = 10;
7418 rtpExpirationCheckIntervalMs = 250;
7419 rpConnectionTimeoutSecs = 0;
7420 rpTransactionTimeoutMs = 0;
7421 stickyTidHangSecs = 10;
7422 uriStreamingIntervalMs = 60;
7423 delayedMicrophoneClosureSecs = 15;
7428 static void to_json(nlohmann::json& j,
const EnginePolicyInternals& p)
7431 TOJSON_IMPL(watchdog),
7432 TOJSON_IMPL(housekeeperIntervalMs),
7433 TOJSON_IMPL(logTaskQueueStatsIntervalMs),
7434 TOJSON_IMPL(maxTxSecs),
7435 TOJSON_IMPL(maxRxSecs),
7436 TOJSON_IMPL(enableLazySpeakerClosure),
7437 TOJSON_IMPL(rpClusterStrategy),
7438 TOJSON_IMPL(rpClusterRolloverSecs),
7439 TOJSON_IMPL(rtpExpirationCheckIntervalMs),
7440 TOJSON_IMPL(rpConnectionTimeoutSecs),
7441 TOJSON_IMPL(rpTransactionTimeoutMs),
7442 TOJSON_IMPL(stickyTidHangSecs),
7443 TOJSON_IMPL(uriStreamingIntervalMs),
7444 TOJSON_IMPL(delayedMicrophoneClosureSecs),
7448 static void from_json(
const nlohmann::json& j, EnginePolicyInternals& p)
7451 getOptional<WatchdogSettings>(
"watchdog", p.watchdog, j);
7452 getOptional<int>(
"housekeeperIntervalMs", p.housekeeperIntervalMs, j, 1000);
7453 getOptional<int>(
"logTaskQueueStatsIntervalMs", p.logTaskQueueStatsIntervalMs, j, 0);
7454 getOptional<int>(
"maxTxSecs", p.maxTxSecs, j, 30);
7455 getOptional<int>(
"maxRxSecs", p.maxRxSecs, j, 0);
7456 getOptional<bool>(
"enableLazySpeakerClosure", p.enableLazySpeakerClosure, j,
false);
7457 getOptional<RallypointCluster::ConnectionStrategy_t>(
"rpClusterStrategy", p.rpClusterStrategy, j, RallypointCluster::ConnectionStrategy_t::csRoundRobin);
7458 getOptional<int>(
"rpClusterRolloverSecs", p.rpClusterRolloverSecs, j, 10);
7459 getOptional<int>(
"rtpExpirationCheckIntervalMs", p.rtpExpirationCheckIntervalMs, j, 250);
7460 getOptional<int>(
"rpConnectionTimeoutSecs", p.rpConnectionTimeoutSecs, j, 0);
7461 getOptional<int>(
"rpTransactionTimeoutMs", p.rpTransactionTimeoutMs, j, 0);
7462 getOptional<int>(
"stickyTidHangSecs", p.stickyTidHangSecs, j, 10);
7463 getOptional<int>(
"uriStreamingIntervalMs", p.uriStreamingIntervalMs, j, 60);
7464 getOptional<int>(
"delayedMicrophoneClosureSecs", p.delayedMicrophoneClosureSecs, j, 15);
7465 getOptional<TuningSettings>(
"tuning", p.tuning, j);
7469 JSON_SERIALIZED_CLASS(EnginePolicyTimelines)
7483 IMPLEMENT_JSON_SERIALIZATION()
7545 storageRoot.clear();
7546 maxStorageMb = 1024;
7547 maxMemMb = maxStorageMb;
7548 maxAudioEventMemMb = maxMemMb;
7549 maxDiskMb = maxStorageMb;
7550 maxEventAgeSecs = (86400 * 30);
7551 groomingIntervalSecs = (60 * 30);
7553 autosaveIntervalSecs = 5;
7555 disableSigningAndVerification =
false;
7560 static void to_json(nlohmann::json& j,
const EnginePolicyTimelines& p)
7563 TOJSON_IMPL(enabled),
7564 TOJSON_IMPL(storageRoot),
7565 TOJSON_IMPL(maxMemMb),
7566 TOJSON_IMPL(maxAudioEventMemMb),
7567 TOJSON_IMPL(maxDiskMb),
7568 TOJSON_IMPL(maxEventAgeSecs),
7569 TOJSON_IMPL(maxEvents),
7570 TOJSON_IMPL(groomingIntervalSecs),
7571 TOJSON_IMPL(autosaveIntervalSecs),
7572 TOJSON_IMPL(security),
7573 TOJSON_IMPL(disableSigningAndVerification),
7574 TOJSON_IMPL(ephemeral)
7577 static void from_json(
const nlohmann::json& j, EnginePolicyTimelines& p)
7580 getOptional<bool>(
"enabled", p.enabled, j,
true);
7581 getOptional<std::string>(
"storageRoot", p.storageRoot, j, EMPTY_STRING);
7583 getOptional<int>(
"maxStorageMb", p.maxStorageMb, j, 1024);
7584 getOptional<int>(
"maxMemMb", p.maxMemMb, j, p.maxStorageMb);
7585 getOptional<int>(
"maxAudioEventMemMb", p.maxAudioEventMemMb, j, p.maxMemMb);
7586 getOptional<int>(
"maxDiskMb", p.maxDiskMb, j, p.maxStorageMb);
7587 getOptional<long>(
"maxEventAgeSecs", p.maxEventAgeSecs, j, (86400 * 30));
7588 getOptional<long>(
"groomingIntervalSecs", p.groomingIntervalSecs, j, (60 * 30));
7589 getOptional<long>(
"autosaveIntervalSecs", p.autosaveIntervalSecs, j, 5);
7590 getOptional<int>(
"maxEvents", p.maxEvents, j, 1000);
7591 getOptional<SecurityCertificate>(
"security", p.security, j);
7592 getOptional<bool>(
"disableSigningAndVerification", p.disableSigningAndVerification, j,
false);
7593 getOptional<bool>(
"ephemeral", p.ephemeral, j,
false);
7598 JSON_SERIALIZED_CLASS(RtpMapEntry)
7610 IMPLEMENT_JSON_SERIALIZATION()
7632 rtpPayloadType = -1;
7636 static void to_json(nlohmann::json& j,
const RtpMapEntry& p)
7640 TOJSON_IMPL(engageType),
7641 TOJSON_IMPL(rtpPayloadType)
7644 static void from_json(
const nlohmann::json& j, RtpMapEntry& p)
7647 getOptional<std::string>(
"name", p.name, j, EMPTY_STRING);
7648 getOptional<int>(
"engageType", p.engageType, j, -1);
7649 getOptional<int>(
"rtpPayloadType", p.rtpPayloadType, j, -1);
7653 JSON_SERIALIZED_CLASS(ExternalModule)
7665 IMPLEMENT_JSON_SERIALIZATION()
7687 configuration.clear();
7691 static void to_json(nlohmann::json& j,
const ExternalModule& p)
7698 if(!p.configuration.empty())
7700 j[
"configuration"] = p.configuration;
7703 static void from_json(
const nlohmann::json& j, ExternalModule& p)
7706 getOptional<std::string>(
"name", p.name, j, EMPTY_STRING);
7707 getOptional<std::string>(
"file", p.file, j, EMPTY_STRING);
7711 p.configuration = j.at(
"configuration");
7715 p.configuration.clear();
7721 JSON_SERIALIZED_CLASS(ExternalCodecDescriptor)
7733 IMPLEMENT_JSON_SERIALIZATION()
7756 rtpPayloadType = -1;
7759 rtpTsMultiplier = 0;
7763 static void to_json(nlohmann::json& j,
const ExternalCodecDescriptor& p)
7766 TOJSON_IMPL(rtpPayloadType),
7767 TOJSON_IMPL(samplingRate),
7768 TOJSON_IMPL(channels),
7769 TOJSON_IMPL(rtpTsMultiplier)
7772 static void from_json(
const nlohmann::json& j, ExternalCodecDescriptor& p)
7776 getOptional<int>(
"rtpPayloadType", p.rtpPayloadType, j, -1);
7777 getOptional<int>(
"samplingRate", p.samplingRate, j, -1);
7778 getOptional<int>(
"channels", p.channels, j, -1);
7779 getOptional<int>(
"rtpTsMultiplier", p.rtpTsMultiplier, j, -1);
7783 JSON_SERIALIZED_CLASS(EngineStatusReportConfiguration)
7795 IMPLEMENT_JSON_SERIALIZATION()
7827 includeMemoryDetail =
false;
7828 includeTaskQueueDetail =
false;
7833 static void to_json(nlohmann::json& j,
const EngineStatusReportConfiguration& p)
7836 TOJSON_IMPL(fileName),
7837 TOJSON_IMPL(intervalSecs),
7838 TOJSON_IMPL(enabled),
7839 TOJSON_IMPL(includeMemoryDetail),
7840 TOJSON_IMPL(includeTaskQueueDetail),
7844 static void from_json(
const nlohmann::json& j, EngineStatusReportConfiguration& p)
7847 getOptional<std::string>(
"fileName", p.fileName, j);
7848 getOptional<int>(
"intervalSecs", p.intervalSecs, j, 60);
7849 getOptional<bool>(
"enabled", p.enabled, j,
false);
7850 getOptional<std::string>(
"runCmd", p.runCmd, j);
7851 getOptional<bool>(
"includeMemoryDetail", p.includeMemoryDetail, j,
false);
7852 getOptional<bool>(
"includeTaskQueueDetail", p.includeTaskQueueDetail, j,
false);
7856 JSON_SERIALIZED_CLASS(EnginePolicy)
7870 IMPLEMENT_JSON_SERIALIZATION()
7927 dataDirectory.clear();
7938 namedAudioDevices.clear();
7939 externalCodecs.clear();
7941 statusReport.clear();
7945 static void to_json(nlohmann::json& j,
const EnginePolicy& p)
7948 TOJSON_IMPL(dataDirectory),
7949 TOJSON_IMPL(licensing),
7950 TOJSON_IMPL(security),
7951 TOJSON_IMPL(networking),
7953 TOJSON_IMPL(discovery),
7954 TOJSON_IMPL(logging),
7955 TOJSON_IMPL(internals),
7956 TOJSON_IMPL(timelines),
7957 TOJSON_IMPL(database),
7958 TOJSON_IMPL(featureset),
7959 TOJSON_IMPL(namedAudioDevices),
7960 TOJSON_IMPL(externalCodecs),
7961 TOJSON_IMPL(rtpMap),
7962 TOJSON_IMPL(statusReport)
7965 static void from_json(
const nlohmann::json& j, EnginePolicy& p)
7968 FROMJSON_IMPL_SIMPLE(dataDirectory);
7969 FROMJSON_IMPL_SIMPLE(licensing);
7970 FROMJSON_IMPL_SIMPLE(security);
7971 FROMJSON_IMPL_SIMPLE(networking);
7972 FROMJSON_IMPL_SIMPLE(audio);
7973 FROMJSON_IMPL_SIMPLE(discovery);
7974 FROMJSON_IMPL_SIMPLE(logging);
7975 FROMJSON_IMPL_SIMPLE(internals);
7976 FROMJSON_IMPL_SIMPLE(timelines);
7977 FROMJSON_IMPL_SIMPLE(database);
7978 FROMJSON_IMPL_SIMPLE(featureset);
7979 FROMJSON_IMPL_SIMPLE(namedAudioDevices);
7980 FROMJSON_IMPL_SIMPLE(externalCodecs);
7981 FROMJSON_IMPL_SIMPLE(rtpMap);
7982 FROMJSON_IMPL_SIMPLE(statusReport);
7987 JSON_SERIALIZED_CLASS(TalkgroupAsset)
7999 IMPLEMENT_JSON_SERIALIZATION()
8022 static void to_json(nlohmann::json& j,
const TalkgroupAsset& p)
8025 TOJSON_IMPL(nodeId),
8029 static void from_json(
const nlohmann::json& j, TalkgroupAsset& p)
8032 getOptional<std::string>(
"nodeId", p.nodeId, j);
8033 getOptional<Group>(
"group", p.group, j);
8037 JSON_SERIALIZED_CLASS(EngageDiscoveredGroup)
8047 IMPLEMENT_JSON_SERIALIZATION()
8077 static void to_json(nlohmann::json& j,
const EngageDiscoveredGroup& p)
8086 static void from_json(
const nlohmann::json& j, EngageDiscoveredGroup& p)
8089 getOptional<std::string>(
"id", p.id, j);
8090 getOptional<int>(
"type", p.type, j, 0);
8091 getOptional<NetworkAddress>(
"rx", p.rx, j);
8092 getOptional<NetworkAddress>(
"tx", p.tx, j);
8096 JSON_SERIALIZED_CLASS(RallypointPeer)
8108 IMPLEMENT_JSON_SERIALIZATION()
8115 olpUseRpConfiguration = 0,
8122 } OutboundLeafPolicy_t;
8127 olpUseRpWebSocketTlsConfiguration = 0,
8130 olpUseTlsForWebSocket = 1,
8133 olpDoNotUseTlsForWebSocket = 2
8134 } OutboundWebSocketTlsPolicy_t;
8178 certificate.clear();
8179 connectionTimeoutSecs = 0;
8180 forceIsMeshLeaf =
false;
8181 outboundLeafPolicy = OutboundLeafPolicy_t::olpUseRpConfiguration;
8182 protocol = Rallypoint::RpProtocol_t::rppTlsTcp;
8184 additionalProtocols.clear();
8185 outboundWebSocketTlsPolicy = OutboundWebSocketTlsPolicy_t::olpUseRpWebSocketTlsConfiguration;
8189 static void to_json(nlohmann::json& j,
const RallypointPeer& p)
8193 TOJSON_IMPL(enabled),
8195 TOJSON_IMPL(certificate),
8196 TOJSON_IMPL(connectionTimeoutSecs),
8197 TOJSON_IMPL(forceIsMeshLeaf),
8198 TOJSON_IMPL(outboundLeafPolicy),
8199 TOJSON_IMPL(protocol),
8201 TOJSON_IMPL(additionalProtocols),
8202 TOJSON_IMPL(outboundWebSocketTlsPolicy)
8205 static void from_json(
const nlohmann::json& j, RallypointPeer& p)
8208 j.at(
"id").get_to(p.id);
8209 getOptional<bool>(
"enabled", p.enabled, j,
true);
8210 getOptional<NetworkAddress>(
"host", p.host, j);
8211 getOptional<SecurityCertificate>(
"certificate", p.certificate, j);
8212 getOptional<int>(
"connectionTimeoutSecs", p.connectionTimeoutSecs, j, 0);
8213 getOptional<bool>(
"forceIsMeshLeaf", p.forceIsMeshLeaf, j,
false);
8214 getOptional<RallypointPeer::OutboundLeafPolicy_t>(
"outboundLeafPolicy", p.outboundLeafPolicy, j, RallypointPeer::OutboundLeafPolicy_t::olpUseRpConfiguration);
8215 getOptional<Rallypoint::RpProtocol_t>(
"protocol", p.protocol, j, Rallypoint::RpProtocol_t::rppTlsTcp);
8216 getOptional<std::string>(
"path", p.path, j);
8217 getOptional<std::string>(
"additionalProtocols", p.additionalProtocols, j);
8218 getOptional<RallypointPeer::OutboundWebSocketTlsPolicy_t>(
"outboundWebSocketTlsPolicy", p.outboundWebSocketTlsPolicy, j, RallypointPeer::OutboundWebSocketTlsPolicy_t::olpUseRpWebSocketTlsConfiguration);
8222 JSON_SERIALIZED_CLASS(RallypointServerLimits)
8234 IMPLEMENT_JSON_SERIALIZATION()
8292 maxMulticastReflectors = 0;
8293 maxRegisteredStreams = 0;
8295 maxRxPacketsPerSec = 0;
8296 maxTxPacketsPerSec = 0;
8297 maxRxBytesPerSec = 0;
8298 maxTxBytesPerSec = 0;
8300 maxInboundBacklog = 64;
8301 lowPriorityQueueThreshold = 64;
8302 normalPriorityQueueThreshold = 256;
8303 denyNewConnectionCpuThreshold = 75;
8304 warnAtCpuThreshold = 65;
8308 static void to_json(nlohmann::json& j,
const RallypointServerLimits& p)
8311 TOJSON_IMPL(maxClients),
8312 TOJSON_IMPL(maxPeers),
8313 TOJSON_IMPL(maxMulticastReflectors),
8314 TOJSON_IMPL(maxRegisteredStreams),
8315 TOJSON_IMPL(maxStreamPaths),
8316 TOJSON_IMPL(maxRxPacketsPerSec),
8317 TOJSON_IMPL(maxTxPacketsPerSec),
8318 TOJSON_IMPL(maxRxBytesPerSec),
8319 TOJSON_IMPL(maxTxBytesPerSec),
8320 TOJSON_IMPL(maxQOpsPerSec),
8321 TOJSON_IMPL(maxInboundBacklog),
8322 TOJSON_IMPL(lowPriorityQueueThreshold),
8323 TOJSON_IMPL(normalPriorityQueueThreshold),
8324 TOJSON_IMPL(denyNewConnectionCpuThreshold),
8325 TOJSON_IMPL(warnAtCpuThreshold)
8328 static void from_json(
const nlohmann::json& j, RallypointServerLimits& p)
8331 getOptional<uint32_t>(
"maxClients", p.maxClients, j, 0);
8332 getOptional<uint32_t>(
"maxPeers", p.maxPeers, j, 0);
8333 getOptional<uint32_t>(
"maxMulticastReflectors", p.maxMulticastReflectors, j, 0);
8334 getOptional<uint32_t>(
"maxRegisteredStreams", p.maxRegisteredStreams, j, 0);
8335 getOptional<uint32_t>(
"maxStreamPaths", p.maxStreamPaths, j, 0);
8336 getOptional<uint32_t>(
"maxRxPacketsPerSec", p.maxRxPacketsPerSec, j, 0);
8337 getOptional<uint32_t>(
"maxTxPacketsPerSec", p.maxTxPacketsPerSec, j, 0);
8338 getOptional<uint32_t>(
"maxRxBytesPerSec", p.maxRxBytesPerSec, j, 0);
8339 getOptional<uint32_t>(
"maxTxBytesPerSec", p.maxTxBytesPerSec, j, 0);
8340 getOptional<uint32_t>(
"maxQOpsPerSec", p.maxQOpsPerSec, j, 0);
8341 getOptional<uint32_t>(
"maxInboundBacklog", p.maxInboundBacklog, j, 64);
8342 getOptional<uint32_t>(
"lowPriorityQueueThreshold", p.lowPriorityQueueThreshold, j, 64);
8343 getOptional<uint32_t>(
"normalPriorityQueueThreshold", p.normalPriorityQueueThreshold, j, 256);
8344 getOptional<uint32_t>(
"denyNewConnectionCpuThreshold", p.denyNewConnectionCpuThreshold, j, 75);
8345 getOptional<uint32_t>(
"warnAtCpuThreshold", p.warnAtCpuThreshold, j, 65);
8349 JSON_SERIALIZED_CLASS(RallypointServerStatusReportConfiguration)
8361 IMPLEMENT_JSON_SERIALIZATION()
8396 includeLinks =
false;
8397 includePeerLinkDetails =
false;
8398 includeClientLinkDetails =
false;
8403 static void to_json(nlohmann::json& j,
const RallypointServerStatusReportConfiguration& p)
8406 TOJSON_IMPL(fileName),
8407 TOJSON_IMPL(intervalSecs),
8408 TOJSON_IMPL(enabled),
8409 TOJSON_IMPL(includeLinks),
8410 TOJSON_IMPL(includePeerLinkDetails),
8411 TOJSON_IMPL(includeClientLinkDetails),
8415 static void from_json(
const nlohmann::json& j, RallypointServerStatusReportConfiguration& p)
8418 getOptional<std::string>(
"fileName", p.fileName, j);
8419 getOptional<int>(
"intervalSecs", p.intervalSecs, j, 60);
8420 getOptional<bool>(
"enabled", p.enabled, j,
false);
8421 getOptional<bool>(
"includeLinks", p.includeLinks, j,
false);
8422 getOptional<bool>(
"includePeerLinkDetails", p.includePeerLinkDetails, j,
false);
8423 getOptional<bool>(
"includeClientLinkDetails", p.includeClientLinkDetails, j,
false);
8424 getOptional<std::string>(
"runCmd", p.runCmd, j);
8428 JSON_SERIALIZED_CLASS(RallypointServerLinkGraph)
8431 IMPLEMENT_JSON_SERIALIZATION()
8474 includeDigraphEnclosure =
true;
8475 includeClients =
false;
8476 coreRpStyling =
"[shape=hexagon color=firebrick style=filled]";
8477 leafRpStyling =
"[shape=box color=gray style=filled]";
8478 clientStyling.clear();
8483 static void to_json(nlohmann::json& j,
const RallypointServerLinkGraph& p)
8486 TOJSON_IMPL(fileName),
8487 TOJSON_IMPL(minRefreshSecs),
8488 TOJSON_IMPL(enabled),
8489 TOJSON_IMPL(includeDigraphEnclosure),
8490 TOJSON_IMPL(includeClients),
8491 TOJSON_IMPL(coreRpStyling),
8492 TOJSON_IMPL(leafRpStyling),
8493 TOJSON_IMPL(clientStyling),
8497 static void from_json(
const nlohmann::json& j, RallypointServerLinkGraph& p)
8500 getOptional<std::string>(
"fileName", p.fileName, j);
8501 getOptional<int>(
"minRefreshSecs", p.minRefreshSecs, j, 5);
8502 getOptional<bool>(
"enabled", p.enabled, j,
false);
8503 getOptional<bool>(
"includeDigraphEnclosure", p.includeDigraphEnclosure, j,
true);
8504 getOptional<bool>(
"includeClients", p.includeClients, j,
false);
8505 getOptional<std::string>(
"coreRpStyling", p.coreRpStyling, j,
"[shape=hexagon color=firebrick style=filled]");
8506 getOptional<std::string>(
"leafRpStyling", p.leafRpStyling, j,
"[shape=box color=gray style=filled]");
8507 getOptional<std::string>(
"clientStyling", p.clientStyling, j);
8508 getOptional<std::string>(
"runCmd", p.runCmd, j);
8513 JSON_SERIALIZED_CLASS(RallypointServerStreamStatsExport)
8523 IMPLEMENT_JSON_SERIALIZATION()
8566 resetCountersAfterExport =
false;
8572 static void to_json(nlohmann::json& j,
const RallypointServerStreamStatsExport& p)
8575 TOJSON_IMPL(fileName),
8576 TOJSON_IMPL(intervalSecs),
8577 TOJSON_IMPL(enabled),
8578 TOJSON_IMPL(resetCountersAfterExport),
8579 TOJSON_IMPL(runCmd),
8583 static void from_json(
const nlohmann::json& j, RallypointServerStreamStatsExport& p)
8586 getOptional<std::string>(
"fileName", p.fileName, j);
8587 getOptional<int>(
"intervalSecs", p.intervalSecs, j, 60);
8588 getOptional<bool>(
"enabled", p.enabled, j,
false);
8589 getOptional<bool>(
"resetCountersAfterExport", p.resetCountersAfterExport, j,
false);
8590 getOptional<std::string>(
"runCmd", p.runCmd, j);
8591 getOptional<RallypointServerStreamStatsExport::ExportFormat_t>(
"format", p.format, j, RallypointServerStreamStatsExport::ExportFormat_t::fmtCsv);
8595 JSON_SERIALIZED_CLASS(RallypointServerRouteMap)
8598 IMPLEMENT_JSON_SERIALIZATION()
8627 static void to_json(nlohmann::json& j,
const RallypointServerRouteMap& p)
8630 TOJSON_IMPL(fileName),
8631 TOJSON_IMPL(minRefreshSecs),
8632 TOJSON_IMPL(enabled),
8636 static void from_json(
const nlohmann::json& j, RallypointServerRouteMap& p)
8639 getOptional<std::string>(
"fileName", p.fileName, j);
8640 getOptional<int>(
"minRefreshSecs", p.minRefreshSecs, j, 5);
8641 getOptional<bool>(
"enabled", p.enabled, j,
false);
8642 getOptional<std::string>(
"runCmd", p.runCmd, j);
8647 JSON_SERIALIZED_CLASS(ExternalHealthCheckResponder)
8659 IMPLEMENT_JSON_SERIALIZATION()
8678 immediateClose =
true;
8682 static void to_json(nlohmann::json& j,
const ExternalHealthCheckResponder& p)
8685 TOJSON_IMPL(listenPort),
8686 TOJSON_IMPL(immediateClose)
8689 static void from_json(
const nlohmann::json& j, ExternalHealthCheckResponder& p)
8692 getOptional<int>(
"listenPort", p.listenPort, j, 0);
8693 getOptional<bool>(
"immediateClose", p.immediateClose, j,
true);
8698 JSON_SERIALIZED_CLASS(PeeringConfiguration)
8708 IMPLEMENT_JSON_SERIALIZATION()
8738 static void to_json(nlohmann::json& j,
const PeeringConfiguration& p)
8742 TOJSON_IMPL(version),
8743 TOJSON_IMPL(comments),
8747 static void from_json(
const nlohmann::json& j, PeeringConfiguration& p)
8750 getOptional<std::string>(
"id", p.id, j);
8751 getOptional<int>(
"version", p.version, j, 0);
8752 getOptional<std::string>(
"comments", p.comments, j);
8753 getOptional<std::vector<RallypointPeer>>(
"peers", p.peers, j);
8757 JSON_SERIALIZED_CLASS(IgmpSnooping)
8767 IMPLEMENT_JSON_SERIALIZATION()
8790 queryIntervalMs = 125000;
8791 subscriptionTimeoutMs = 0;
8795 static void to_json(nlohmann::json& j,
const IgmpSnooping& p)
8798 TOJSON_IMPL(enabled),
8799 TOJSON_IMPL(queryIntervalMs),
8800 TOJSON_IMPL(subscriptionTimeoutMs)
8803 static void from_json(
const nlohmann::json& j, IgmpSnooping& p)
8806 getOptional<bool>(
"enabled", p.enabled, j);
8807 getOptional<int>(
"queryIntervalMs", p.queryIntervalMs, j, 125000);
8808 getOptional<int>(
"subscriptionTimeoutMs", p.subscriptionTimeoutMs, j, 0);
8813 JSON_SERIALIZED_CLASS(RallypointReflector)
8822 IMPLEMENT_JSON_SERIALIZATION()
8837 } DirectionRestriction_t;
8869 multicastInterfaceName.clear();
8870 additionalTx.clear();
8871 directionRestriction = drNone;
8875 static void to_json(nlohmann::json& j,
const RallypointReflector& p)
8881 TOJSON_IMPL(multicastInterfaceName),
8882 TOJSON_IMPL(additionalTx),
8883 TOJSON_IMPL(directionRestriction)
8886 static void from_json(
const nlohmann::json& j, RallypointReflector& p)
8889 j.at(
"id").get_to(p.id);
8890 j.at(
"rx").get_to(p.rx);
8891 j.at(
"tx").get_to(p.tx);
8892 getOptional<std::string>(
"multicastInterfaceName", p.multicastInterfaceName, j);
8893 getOptional<std::vector<NetworkAddress>>(
"additionalTx", p.additionalTx, j);
8894 getOptional<RallypointReflector::DirectionRestriction_t>(
"directionRestriction", p.directionRestriction, j, RallypointReflector::DirectionRestriction_t::drNone);
8899 JSON_SERIALIZED_CLASS(RallypointUdpStreamingIpvX)
8908 IMPLEMENT_JSON_SERIALIZATION()
8930 static void to_json(nlohmann::json& j,
const RallypointUdpStreamingIpvX& p)
8933 TOJSON_IMPL(enabled),
8934 TOJSON_IMPL(external)
8937 static void from_json(
const nlohmann::json& j, RallypointUdpStreamingIpvX& p)
8940 getOptional<bool>(
"enabled", p.enabled, j,
true);
8941 getOptional<NetworkAddress>(
"external", p.external, j);
8945 JSON_SERIALIZED_CLASS(RallypointUdpStreaming)
8954 IMPLEMENT_JSON_SERIALIZATION()
8965 ctSharedKeyAes256FullIv = 1,
8968 ctSharedKeyAes256IdxIv = 2,
8971 ctSharedKeyChaCha20FullIv = 3,
8974 ctSharedKeyChaCha20IdxIv = 4
9010 cryptoType = CryptoType_t::ctSharedKeyAes256FullIv;
9014 keepaliveIntervalSecs = 15;
9015 priority = TxPriority_t::priVoice;
9020 static void to_json(nlohmann::json& j,
const RallypointUdpStreaming& p)
9023 TOJSON_IMPL(enabled),
9024 TOJSON_IMPL(cryptoType),
9025 TOJSON_IMPL(listenPort),
9026 TOJSON_IMPL(keepaliveIntervalSecs),
9029 TOJSON_IMPL(priority),
9033 static void from_json(
const nlohmann::json& j, RallypointUdpStreaming& p)
9036 getOptional<bool>(
"enabled", p.enabled, j,
true);
9037 getOptional<RallypointUdpStreaming::CryptoType_t>(
"cryptoType", p.cryptoType, j, RallypointUdpStreaming::CryptoType_t::ctSharedKeyAes256FullIv);
9038 getOptional<int>(
"listenPort", p.listenPort, j, 7444);
9039 getOptional<int>(
"keepaliveIntervalSecs", p.keepaliveIntervalSecs, j, 15);
9040 getOptional<RallypointUdpStreamingIpvX>(
"ipv4", p.ipv4, j);
9041 getOptional<RallypointUdpStreamingIpvX>(
"ipv6", p.ipv6, j);
9042 getOptional<TxPriority_t>(
"priority", p.priority, j, TxPriority_t::priVoice);
9043 getOptional<int>(
"ttl", p.ttl, j, 64);
9047 JSON_SERIALIZED_CLASS(RallypointRpRtTimingBehavior)
9056 IMPLEMENT_JSON_SERIALIZATION()
9101 static void to_json(nlohmann::json& j,
const RallypointRpRtTimingBehavior& p)
9104 TOJSON_IMPL(behavior),
9105 TOJSON_IMPL(atOrAboveMs),
9109 static void from_json(
const nlohmann::json& j, RallypointRpRtTimingBehavior& p)
9112 getOptional<RallypointRpRtTimingBehavior::BehaviorType_t>(
"behavior", p.behavior, j, RallypointRpRtTimingBehavior::BehaviorType_t::btNone);
9113 getOptional<uint32_t>(
"atOrAboveMs", p.atOrAboveMs, j, 0);
9114 getOptional<std::string>(
"runCmd", p.runCmd, j);
9119 JSON_SERIALIZED_CLASS(RallypointWebsocketSettings)
9128 IMPLEMENT_JSON_SERIALIZATION()
9156 certificate.clear();
9157 requireClientCertificate =
false;
9162 static void to_json(nlohmann::json& j,
const RallypointWebsocketSettings& p)
9165 TOJSON_IMPL(enabled),
9166 TOJSON_IMPL(listenPort),
9167 TOJSON_IMPL(certificate),
9168 TOJSON_IMPL(requireClientCertificate),
9169 TOJSON_IMPL(requireTls)
9172 static void from_json(
const nlohmann::json& j, RallypointWebsocketSettings& p)
9175 getOptional<bool>(
"enabled", p.enabled, j,
false);
9176 getOptional<int>(
"listenPort", p.listenPort, j, 8443);
9177 getOptional<SecurityCertificate>(
"certificate", p.certificate, j);
9178 getOptional<bool>(
"requireClientCertificate", p.requireClientCertificate, j,
false);
9179 getOptional<bool>(
"requireTls", p.requireTls, j,
true);
9185 JSON_SERIALIZED_CLASS(RallypointAdvertisingSettings)
9194 IMPLEMENT_JSON_SERIALIZATION()
9225 serviceName =
"_rallypoint._tcp.local.";
9226 interfaceName.clear();
9232 static void to_json(nlohmann::json& j,
const RallypointAdvertisingSettings& p)
9235 TOJSON_IMPL(enabled),
9236 TOJSON_IMPL(hostName),
9237 TOJSON_IMPL(serviceName),
9238 TOJSON_IMPL(interfaceName),
9243 static void from_json(
const nlohmann::json& j, RallypointAdvertisingSettings& p)
9246 getOptional<bool>(
"enabled", p.enabled, j,
false);
9247 getOptional<std::string>(
"hostName", p.hostName, j);
9248 getOptional<std::string>(
"serviceName", p.serviceName, j,
"_rallypoint._tcp.local.");
9249 getOptional<std::string>(
"interfaceName", p.interfaceName, j);
9251 getOptional<int>(
"port", p.port, j, 0);
9252 getOptional<int>(
"ttl", p.ttl, j, 60);
9259 JSON_SERIALIZED_CLASS(NamedIdentity)
9268 IMPLEMENT_JSON_SERIALIZATION()
9286 certificate.clear();
9290 static void to_json(nlohmann::json& j,
const NamedIdentity& p)
9294 TOJSON_IMPL(certificate)
9297 static void from_json(
const nlohmann::json& j, NamedIdentity& p)
9300 getOptional<std::string>(
"name", p.name, j);
9301 getOptional<SecurityCertificate>(
"certificate", p.certificate, j);
9305 JSON_SERIALIZED_CLASS(RallypointExtendedGroupRestriction)
9314 IMPLEMENT_JSON_SERIALIZATION()
9332 restrictions.clear();
9336 static void to_json(nlohmann::json& j,
const RallypointExtendedGroupRestriction& p)
9340 TOJSON_IMPL(restrictions)
9343 static void from_json(
const nlohmann::json& j, RallypointExtendedGroupRestriction& p)
9346 getOptional<std::string>(
"id", p.id, j);
9347 getOptional<std::vector<StringRestrictionList>>(
"restrictions", p.restrictions, j);
9352 JSON_SERIALIZED_CLASS(RallypointServer)
9363 IMPLEMENT_JSON_SERIALIZATION()
9371 sptCertPublicKey = 2,
9374 sptCertFingerprint = 5,
9388 } StreamIdPrivacyType_t;
9588 interfaceName.clear();
9589 certificate.clear();
9590 allowMulticastForwarding =
false;
9591 peeringConfiguration.clear();
9592 peeringConfigurationFileName.clear();
9593 peeringConfigurationFileCommand.clear();
9594 peeringConfigurationFileCheckSecs = 60;
9596 statusReport.clear();
9599 externalHealthCheckResponder.clear();
9600 allowPeerForwarding =
false;
9601 multicastInterfaceName.clear();
9604 forwardDiscoveredGroups =
false;
9605 forwardMulticastAddressing =
false;
9607 disableMessageSigning =
false;
9608 multicastRestrictions.clear();
9609 igmpSnooping.clear();
9610 staticReflectors.clear();
9611 tcpTxOptions.clear();
9612 multicastTxOptions.clear();
9613 certStoreFileName.clear();
9614 certStorePasswordHex.clear();
9615 groupRestrictions.clear();
9616 configurationCheckSignalName =
"rts.7b392d1.${id}";
9619 udpStreaming.clear();
9621 normalTaskQueueBias = 0;
9622 enableLeafReflectionReverseSubscription =
false;
9623 disableLoopDetection =
false;
9624 maxSecurityLevel = 0;
9626 streamStatsExport.clear();
9627 maxOutboundPeerConnectionIntervalDeltaSecs = 15;
9628 peerRtTestIntervalMs = 60000;
9629 peerRtBehaviors.clear();
9632 advertising.clear();
9633 extendedGroupRestrictions.clear();
9634 groupRestrictionAccessPolicyType = GroupRestrictionAccessPolicyType_t::graptPermissive;
9635 ipFamily = IpFamilyType_t::ifIp4;
9639 allowedDomains.clear();
9640 blockedDomains.clear();
9641 extraDomains.clear();
9643 additionalIdentities.clear();
9644 streamIdPrivacyType = StreamIdPrivacyType_t::sptDefault;
9648 static void to_json(nlohmann::json& j,
const RallypointServer& p)
9651 TOJSON_IMPL(fipsCrypto),
9652 TOJSON_IMPL(watchdog),
9655 TOJSON_IMPL(listenPort),
9656 TOJSON_IMPL(interfaceName),
9657 TOJSON_IMPL(certificate),
9658 TOJSON_IMPL(allowMulticastForwarding),
9660 TOJSON_IMPL(peeringConfigurationFileName),
9661 TOJSON_IMPL(peeringConfigurationFileCommand),
9662 TOJSON_IMPL(peeringConfigurationFileCheckSecs),
9663 TOJSON_IMPL(ioPools),
9664 TOJSON_IMPL(statusReport),
9665 TOJSON_IMPL(limits),
9666 TOJSON_IMPL(linkGraph),
9667 TOJSON_IMPL(externalHealthCheckResponder),
9668 TOJSON_IMPL(allowPeerForwarding),
9669 TOJSON_IMPL(multicastInterfaceName),
9671 TOJSON_IMPL(discovery),
9672 TOJSON_IMPL(forwardDiscoveredGroups),
9673 TOJSON_IMPL(forwardMulticastAddressing),
9674 TOJSON_IMPL(isMeshLeaf),
9675 TOJSON_IMPL(disableMessageSigning),
9676 TOJSON_IMPL(multicastRestrictions),
9677 TOJSON_IMPL(igmpSnooping),
9678 TOJSON_IMPL(staticReflectors),
9679 TOJSON_IMPL(tcpTxOptions),
9680 TOJSON_IMPL(multicastTxOptions),
9681 TOJSON_IMPL(certStoreFileName),
9682 TOJSON_IMPL(certStorePasswordHex),
9683 TOJSON_IMPL(groupRestrictions),
9684 TOJSON_IMPL(configurationCheckSignalName),
9685 TOJSON_IMPL(featureset),
9686 TOJSON_IMPL(licensing),
9687 TOJSON_IMPL(udpStreaming),
9688 TOJSON_IMPL(sysFlags),
9689 TOJSON_IMPL(normalTaskQueueBias),
9690 TOJSON_IMPL(enableLeafReflectionReverseSubscription),
9691 TOJSON_IMPL(disableLoopDetection),
9692 TOJSON_IMPL(maxSecurityLevel),
9693 TOJSON_IMPL(routeMap),
9694 TOJSON_IMPL(streamStatsExport),
9695 TOJSON_IMPL(maxOutboundPeerConnectionIntervalDeltaSecs),
9696 TOJSON_IMPL(peerRtTestIntervalMs),
9697 TOJSON_IMPL(peerRtBehaviors),
9698 TOJSON_IMPL(websocket),
9700 TOJSON_IMPL(advertising),
9701 TOJSON_IMPL(extendedGroupRestrictions),
9702 TOJSON_IMPL(groupRestrictionAccessPolicyType),
9703 TOJSON_IMPL(ipFamily),
9704 TOJSON_IMPL(rxCapture),
9705 TOJSON_IMPL(txCapture),
9706 TOJSON_IMPL(domainName),
9707 TOJSON_IMPL(allowedDomains),
9708 TOJSON_IMPL(blockedDomains),
9709 TOJSON_IMPL(extraDomains),
9710 TOJSON_IMPL(tuning),
9711 TOJSON_IMPL(additionalIdentities),
9712 TOJSON_IMPL(streamIdPrivacyType)
9715 static void from_json(
const nlohmann::json& j, RallypointServer& p)
9718 getOptional<FipsCryptoSettings>(
"fipsCrypto", p.fipsCrypto, j);
9719 getOptional<WatchdogSettings>(
"watchdog", p.watchdog, j);
9720 getOptional<std::string>(
"id", p.id, j);
9721 getOptional<std::string>(
"name", p.name, j);
9722 getOptional<SecurityCertificate>(
"certificate", p.certificate, j);
9723 getOptional<std::string>(
"interfaceName", p.interfaceName, j);
9724 getOptional<int>(
"listenPort", p.listenPort, j, 7443);
9725 getOptional<bool>(
"allowMulticastForwarding", p.allowMulticastForwarding, j,
false);
9727 getOptional<std::string>(
"peeringConfigurationFileName", p.peeringConfigurationFileName, j);
9728 getOptional<std::string>(
"peeringConfigurationFileCommand", p.peeringConfigurationFileCommand, j);
9729 getOptional<int>(
"peeringConfigurationFileCheckSecs", p.peeringConfigurationFileCheckSecs, j, 60);
9730 getOptional<int>(
"ioPools", p.ioPools, j, -1);
9731 getOptional<RallypointServerStatusReportConfiguration>(
"statusReport", p.statusReport, j);
9732 getOptional<RallypointServerLimits>(
"limits", p.limits, j);
9733 getOptional<RallypointServerLinkGraph>(
"linkGraph", p.linkGraph, j);
9734 getOptional<ExternalHealthCheckResponder>(
"externalHealthCheckResponder", p.externalHealthCheckResponder, j);
9735 getOptional<bool>(
"allowPeerForwarding", p.allowPeerForwarding, j,
false);
9736 getOptional<std::string>(
"multicastInterfaceName", p.multicastInterfaceName, j);
9737 getOptional<Tls>(
"tls", p.tls, j);
9738 getOptional<DiscoveryConfiguration>(
"discovery", p.discovery, j);
9739 getOptional<bool>(
"forwardDiscoveredGroups", p.forwardDiscoveredGroups, j,
false);
9740 getOptional<bool>(
"forwardMulticastAddressing", p.forwardMulticastAddressing, j,
false);
9741 getOptional<bool>(
"isMeshLeaf", p.isMeshLeaf, j,
false);
9742 getOptional<bool>(
"disableMessageSigning", p.disableMessageSigning, j,
false);
9743 getOptional<NetworkAddressRestrictionList>(
"multicastRestrictions", p.multicastRestrictions, j);
9744 getOptional<IgmpSnooping>(
"igmpSnooping", p.igmpSnooping, j);
9745 getOptional<std::vector<RallypointReflector>>(
"staticReflectors", p.staticReflectors, j);
9746 getOptional<TcpNetworkTxOptions>(
"tcpTxOptions", p.tcpTxOptions, j);
9747 getOptional<NetworkTxOptions>(
"multicastTxOptions", p.multicastTxOptions, j);
9748 getOptional<std::string>(
"certStoreFileName", p.certStoreFileName, j);
9749 getOptional<std::string>(
"certStorePasswordHex", p.certStorePasswordHex, j);
9750 getOptional<StringRestrictionList>(
"groupRestrictions", p.groupRestrictions, j);
9751 getOptional<std::string>(
"configurationCheckSignalName", p.configurationCheckSignalName, j,
"rts.7b392d1.${id}");
9752 getOptional<Licensing>(
"licensing", p.licensing, j);
9753 getOptional<Featureset>(
"featureset", p.featureset, j);
9754 getOptional<RallypointUdpStreaming>(
"udpStreaming", p.udpStreaming, j);
9755 getOptional<uint32_t>(
"sysFlags", p.sysFlags, j, 0);
9756 getOptional<uint32_t>(
"normalTaskQueueBias", p.normalTaskQueueBias, j, 0);
9757 getOptional<bool>(
"enableLeafReflectionReverseSubscription", p.enableLeafReflectionReverseSubscription, j,
false);
9758 getOptional<bool>(
"disableLoopDetection", p.disableLoopDetection, j,
false);
9759 getOptional<uint32_t>(
"maxSecurityLevel", p.maxSecurityLevel, j, 0);
9760 getOptional<RallypointServerRouteMap>(
"routeMap", p.routeMap, j);
9761 getOptional<RallypointServerStreamStatsExport>(
"streamStatsExport", p.streamStatsExport, j);
9762 getOptional<uint32_t>(
"maxOutboundPeerConnectionIntervalDeltaSecs", p.maxOutboundPeerConnectionIntervalDeltaSecs, j, 15);
9763 getOptional<int>(
"peerRtTestIntervalMs", p.peerRtTestIntervalMs, j, 60000);
9764 getOptional<std::vector<RallypointRpRtTimingBehavior>>(
"peerRtBehaviors", p.peerRtBehaviors, j);
9765 getOptional<RallypointWebsocketSettings>(
"websocket", p.websocket, j);
9766 getOptional<NsmConfiguration>(
"nsm", p.nsm, j);
9767 getOptional<RallypointAdvertisingSettings>(
"advertising", p.advertising, j);
9768 getOptional<std::vector<RallypointExtendedGroupRestriction>>(
"extendedGroupRestrictions", p.extendedGroupRestrictions, j);
9769 getOptional<GroupRestrictionAccessPolicyType_t>(
"groupRestrictionAccessPolicyType", p.groupRestrictionAccessPolicyType, j, GroupRestrictionAccessPolicyType_t::graptPermissive);
9770 getOptional<IpFamilyType_t>(
"ipFamily", p.ipFamily, j, IpFamilyType_t::ifIp4);
9771 getOptional<PacketCapturer>(
"rxCapture", p.rxCapture, j);
9772 getOptional<PacketCapturer>(
"txCapture", p.txCapture, j);
9773 getOptional<std::string>(
"domainName", p.domainName, j);
9774 getOptional<std::vector<std::string>>(
"allowedDomains", p.allowedDomains, j);
9775 getOptional<std::vector<std::string>>(
"blockedDomains", p.blockedDomains, j);
9776 getOptional<std::vector<std::string>>(
"extraDomains", p.extraDomains, j);
9777 getOptional<TuningSettings>(
"tuning", p.tuning, j);
9778 getOptional<std::vector<NamedIdentity>>(
"additionalIdentities", p.additionalIdentities, j);
9779 getOptional<RallypointServer::StreamIdPrivacyType_t>(
"streamIdPrivacyType", p.streamIdPrivacyType, j, RallypointServer::StreamIdPrivacyType_t::sptDefault);
9783 JSON_SERIALIZED_CLASS(PlatformDiscoveredService)
9795 IMPLEMENT_JSON_SERIALIZATION()
9830 configurationVersion = 0;
9834 static void to_json(nlohmann::json& j,
const PlatformDiscoveredService& p)
9840 TOJSON_IMPL(address),
9842 TOJSON_IMPL(configurationVersion)
9845 static void from_json(
const nlohmann::json& j, PlatformDiscoveredService& p)
9848 getOptional<std::string>(
"id", p.id, j);
9849 getOptional<std::string>(
"type", p.type, j);
9850 getOptional<std::string>(
"name", p.name, j);
9851 getOptional<NetworkAddress>(
"address", p.address, j);
9852 getOptional<std::string>(
"uri", p.uri, j);
9853 getOptional<uint32_t>(
"configurationVersion", p.configurationVersion, j, 0);
9893 IMPLEMENT_JSON_SERIALIZATION()
9939 mostRecentFirst =
true;
9940 startedOnOrAfter = 0;
9941 endedOnOrBefore = 0;
9944 onlyCommitted =
true;
9952 static void to_json(nlohmann::json& j,
const TimelineQueryParameters& p)
9955 TOJSON_IMPL(maxCount),
9956 TOJSON_IMPL(mostRecentFirst),
9957 TOJSON_IMPL(startedOnOrAfter),
9958 TOJSON_IMPL(endedOnOrBefore),
9959 TOJSON_IMPL(onlyDirection),
9960 TOJSON_IMPL(onlyType),
9961 TOJSON_IMPL(onlyCommitted),
9962 TOJSON_IMPL(onlyAlias),
9963 TOJSON_IMPL(onlyNodeId),
9964 TOJSON_IMPL(onlyTxId),
9968 static void from_json(
const nlohmann::json& j, TimelineQueryParameters& p)
9971 getOptional<long>(
"maxCount", p.maxCount, j, 50);
9972 getOptional<bool>(
"mostRecentFirst", p.mostRecentFirst, j,
false);
9973 getOptional<uint64_t>(
"startedOnOrAfter", p.startedOnOrAfter, j, 0);
9974 getOptional<uint64_t>(
"endedOnOrBefore", p.endedOnOrBefore, j, 0);
9975 getOptional<int>(
"onlyDirection", p.onlyDirection, j, 0);
9976 getOptional<int>(
"onlyType", p.onlyType, j, 0);
9977 getOptional<bool>(
"onlyCommitted", p.onlyCommitted, j,
true);
9978 getOptional<std::string>(
"onlyAlias", p.onlyAlias, j, EMPTY_STRING);
9979 getOptional<std::string>(
"onlyNodeId", p.onlyNodeId, j, EMPTY_STRING);
9980 getOptional<int>(
"onlyTxId", p.onlyTxId, j, 0);
9981 getOptional<std::string>(
"sql", p.sql, j, EMPTY_STRING);
9985 JSON_SERIALIZED_CLASS(CertStoreCertificate)
9994 IMPLEMENT_JSON_SERIALIZATION()
10021 certificatePem.clear();
10022 privateKeyPem.clear();
10023 internalData =
nullptr;
10028 static void to_json(nlohmann::json& j,
const CertStoreCertificate& p)
10030 j = nlohmann::json{
10032 TOJSON_IMPL(certificatePem),
10033 TOJSON_IMPL(privateKeyPem),
10037 static void from_json(
const nlohmann::json& j, CertStoreCertificate& p)
10040 j.at(
"id").get_to(p.id);
10041 j.at(
"certificatePem").get_to(p.certificatePem);
10042 getOptional<std::string>(
"privateKeyPem", p.privateKeyPem, j, EMPTY_STRING);
10043 getOptional<std::string>(
"tags", p.tags, j, EMPTY_STRING);
10047 JSON_SERIALIZED_CLASS(CertStore)
10056 IMPLEMENT_JSON_SERIALIZATION()
10057 IMPLEMENT_JSON_DOCUMENTATION(
CertStore)
10077 certificates.clear();
10082 static void to_json(nlohmann::json& j,
const CertStore& p)
10084 j = nlohmann::json{
10086 TOJSON_IMPL(certificates),
10090 static void from_json(
const nlohmann::json& j, CertStore& p)
10093 getOptional<std::string>(
"id", p.id, j, EMPTY_STRING);
10094 getOptional<std::vector<CertStoreCertificate>>(
"certificates", p.certificates, j);
10095 getOptional<std::vector<KvPair>>(
"kvp", p.kvp, j);
10099 JSON_SERIALIZED_CLASS(CertStoreCertificateElement)
10108 IMPLEMENT_JSON_SERIALIZATION()
10132 hasPrivateKey =
false;
10137 static void to_json(nlohmann::json& j,
const CertStoreCertificateElement& p)
10139 j = nlohmann::json{
10141 TOJSON_IMPL(hasPrivateKey),
10145 if(!p.certificatePem.empty())
10147 j[
"certificatePem"] = p.certificatePem;
10150 static void from_json(
const nlohmann::json& j, CertStoreCertificateElement& p)
10153 getOptional<std::string>(
"id", p.id, j, EMPTY_STRING);
10154 getOptional<bool>(
"hasPrivateKey", p.hasPrivateKey, j,
false);
10155 getOptional<std::string>(
"certificatePem", p.certificatePem, j, EMPTY_STRING);
10156 getOptional<std::string>(
"tags", p.tags, j, EMPTY_STRING);
10160 JSON_SERIALIZED_CLASS(CertStoreDescriptor)
10169 IMPLEMENT_JSON_SERIALIZATION()
10202 certificates.clear();
10207 static void to_json(nlohmann::json& j,
const CertStoreDescriptor& p)
10209 j = nlohmann::json{
10211 TOJSON_IMPL(fileName),
10212 TOJSON_IMPL(version),
10213 TOJSON_IMPL(flags),
10214 TOJSON_IMPL(certificates),
10218 static void from_json(
const nlohmann::json& j, CertStoreDescriptor& p)
10221 getOptional<std::string>(
"id", p.id, j, EMPTY_STRING);
10222 getOptional<std::string>(
"fileName", p.fileName, j, EMPTY_STRING);
10223 getOptional<int>(
"version", p.version, j, 0);
10224 getOptional<int>(
"flags", p.flags, j, 0);
10225 getOptional<std::vector<CertStoreCertificateElement>>(
"certificates", p.certificates, j);
10226 getOptional<std::vector<KvPair>>(
"kvp", p.kvp, j);
10230 JSON_SERIALIZED_CLASS(CertificateSubjectElement)
10239 IMPLEMENT_JSON_SERIALIZATION()
10261 static void to_json(nlohmann::json& j,
const CertificateSubjectElement& p)
10263 j = nlohmann::json{
10268 static void from_json(
const nlohmann::json& j, CertificateSubjectElement& p)
10271 getOptional<std::string>(
"name", p.name, j, EMPTY_STRING);
10272 getOptional<std::string>(
"value", p.value, j, EMPTY_STRING);
10277 JSON_SERIALIZED_CLASS(CertificateDescriptor)
10286 IMPLEMENT_JSON_SERIALIZATION()
10335 selfSigned =
false;
10340 fingerprint.clear();
10341 subjectElements.clear();
10342 issuerElements.clear();
10343 certificatePem.clear();
10344 publicKeyPem.clear();
10348 static void to_json(nlohmann::json& j,
const CertificateDescriptor& p)
10350 j = nlohmann::json{
10351 TOJSON_IMPL(subject),
10352 TOJSON_IMPL(issuer),
10353 TOJSON_IMPL(selfSigned),
10354 TOJSON_IMPL(version),
10355 TOJSON_IMPL(notBefore),
10356 TOJSON_IMPL(notAfter),
10357 TOJSON_IMPL(serial),
10358 TOJSON_IMPL(fingerprint),
10359 TOJSON_IMPL(subjectElements),
10360 TOJSON_IMPL(issuerElements),
10361 TOJSON_IMPL(certificatePem),
10362 TOJSON_IMPL(publicKeyPem)
10365 static void from_json(
const nlohmann::json& j, CertificateDescriptor& p)
10368 getOptional<std::string>(
"subject", p.subject, j, EMPTY_STRING);
10369 getOptional<std::string>(
"issuer", p.issuer, j, EMPTY_STRING);
10370 getOptional<bool>(
"selfSigned", p.selfSigned, j,
false);
10371 getOptional<int>(
"version", p.version, j, 0);
10372 getOptional<std::string>(
"notBefore", p.notBefore, j, EMPTY_STRING);
10373 getOptional<std::string>(
"notAfter", p.notAfter, j, EMPTY_STRING);
10374 getOptional<std::string>(
"serial", p.serial, j, EMPTY_STRING);
10375 getOptional<std::string>(
"fingerprint", p.fingerprint, j, EMPTY_STRING);
10376 getOptional<std::string>(
"certificatePem", p.certificatePem, j, EMPTY_STRING);
10377 getOptional<std::string>(
"publicKeyPem", p.publicKeyPem, j, EMPTY_STRING);
10378 getOptional<std::vector<CertificateSubjectElement>>(
"subjectElements", p.subjectElements, j);
10379 getOptional<std::vector<CertificateSubjectElement>>(
"issuerElements", p.issuerElements, j);
10384 JSON_SERIALIZED_CLASS(RiffDescriptor)
10396 IMPLEMENT_JSON_SERIALIZATION()
10437 certDescriptor.clear();
10442 static void to_json(nlohmann::json& j,
const RiffDescriptor& p)
10444 j = nlohmann::json{
10446 TOJSON_IMPL(verified),
10447 TOJSON_IMPL(channels),
10448 TOJSON_IMPL(sampleCount),
10450 TOJSON_IMPL(certPem),
10451 TOJSON_IMPL(certDescriptor),
10452 TOJSON_IMPL(signature)
10456 static void from_json(
const nlohmann::json& j, RiffDescriptor& p)
10459 FROMJSON_IMPL(file, std::string, EMPTY_STRING);
10460 FROMJSON_IMPL(verified,
bool,
false);
10461 FROMJSON_IMPL(channels,
int, 0);
10462 FROMJSON_IMPL(sampleCount,
int, 0);
10463 FROMJSON_IMPL(meta, std::string, EMPTY_STRING);
10464 FROMJSON_IMPL(certPem, std::string, EMPTY_STRING);
10465 getOptional<CertificateDescriptor>(
"certDescriptor", p.certDescriptor, j);
10466 FROMJSON_IMPL(signature, std::string, EMPTY_STRING);
10471 JSON_SERIALIZED_CLASS(BridgeCreationDetail)
10480 IMPLEMENT_JSON_SERIALIZATION()
10498 csAlreadyExists = -3,
10501 csInvalidConfiguration = -4,
10504 csInvalidJson = -5,
10507 csInsufficientGroups = -6,
10510 csTooManyGroups = -7,
10513 csDuplicateGroup = -8,
10516 csLocalLoopDetected = -9,
10517 } CreationStatus_t;
10533 status = csUndefined;
10537 static void to_json(nlohmann::json& j,
const BridgeCreationDetail& p)
10539 j = nlohmann::json{
10541 TOJSON_IMPL(status)
10544 static void from_json(
const nlohmann::json& j, BridgeCreationDetail& p)
10547 getOptional<std::string>(
"id", p.id, j, EMPTY_STRING);
10548 getOptional<BridgeCreationDetail::CreationStatus_t>(
"status", p.status, j, BridgeCreationDetail::CreationStatus_t::csUndefined);
10551 JSON_SERIALIZED_CLASS(GroupConnectionDetail)
10560 IMPLEMENT_JSON_SERIALIZATION()
10572 ctDirectDatagram = 1,
10576 } ConnectionType_t;
10601 connectionType = ctUndefined;
10603 asFailover =
false;
10608 static void to_json(nlohmann::json& j,
const GroupConnectionDetail& p)
10610 j = nlohmann::json{
10612 TOJSON_IMPL(connectionType),
10614 TOJSON_IMPL(asFailover),
10615 TOJSON_IMPL(reason)
10620 j[
"asFailover"] = p.asFailover;
10623 static void from_json(
const nlohmann::json& j, GroupConnectionDetail& p)
10626 getOptional<std::string>(
"id", p.id, j, EMPTY_STRING);
10627 getOptional<GroupConnectionDetail::ConnectionType_t>(
"connectionType", p.connectionType, j, GroupConnectionDetail::ConnectionType_t::ctUndefined);
10628 getOptional<std::string>(
"peer", p.peer, j, EMPTY_STRING);
10629 getOptional<bool>(
"asFailover", p.asFailover, j,
false);
10630 getOptional<std::string>(
"reason", p.reason, j, EMPTY_STRING);
10634 JSON_SERIALIZED_CLASS(GroupTxDetail)
10643 IMPLEMENT_JSON_SERIALIZATION()
10661 txsNotAnAudioGroup = -1,
10667 txsNotConnected = -3,
10670 txsAlreadyTransmitting = -4,
10673 txsInvalidParams = -5,
10676 txsPriorityTooLow = -6,
10679 txsRxActiveOnNonFdx = -7,
10682 txsCannotSubscribeToInput = -8,
10688 txsTxEndedWithFailure = -10,
10691 txsBridgedButNotMultistream = -11,
10694 txsAutoEndedDueToNonMultistreamBridge = -12,
10697 txsReBeginWithoutPriorBegin = -13
10726 status = txsUndefined;
10728 remotePriority = 0;
10729 nonFdxMsHangRemaining = 0;
10734 static void to_json(nlohmann::json& j,
const GroupTxDetail& p)
10736 j = nlohmann::json{
10738 TOJSON_IMPL(status),
10739 TOJSON_IMPL(localPriority),
10744 if(p.status == GroupTxDetail::TxStatus_t::txsPriorityTooLow)
10746 j[
"remotePriority"] = p.remotePriority;
10748 else if(p.status == GroupTxDetail::TxStatus_t::txsRxActiveOnNonFdx)
10750 j[
"nonFdxMsHangRemaining"] = p.nonFdxMsHangRemaining;
10753 static void from_json(
const nlohmann::json& j, GroupTxDetail& p)
10756 getOptional<std::string>(
"id", p.id, j, EMPTY_STRING);
10757 getOptional<GroupTxDetail::TxStatus_t>(
"status", p.status, j, GroupTxDetail::TxStatus_t::txsUndefined);
10758 getOptional<int>(
"localPriority", p.localPriority, j, 0);
10759 getOptional<int>(
"remotePriority", p.remotePriority, j, 0);
10760 getOptional<long>(
"nonFdxMsHangRemaining", p.nonFdxMsHangRemaining, j, 0);
10761 getOptional<uint32_t>(
"txId", p.txId, j, 0);
10765 JSON_SERIALIZED_CLASS(GroupCreationDetail)
10774 IMPLEMENT_JSON_SERIALIZATION()
10792 csConflictingRpListAndCluster = -2,
10795 csAlreadyExists = -3,
10798 csInvalidConfiguration = -4,
10801 csInvalidJson = -5,
10804 csCryptoFailure = -6,
10807 csAudioInputFailure = -7,
10810 csAudioOutputFailure = -8,
10813 csUnsupportedAudioEncoder = -9,
10819 csInvalidTransport = -11,
10822 csAudioInputDeviceNotFound = -12,
10825 csAudioOutputDeviceNotFound = -13
10826 } CreationStatus_t;
10842 status = csUndefined;
10846 static void to_json(nlohmann::json& j,
const GroupCreationDetail& p)
10848 j = nlohmann::json{
10850 TOJSON_IMPL(status)
10853 static void from_json(
const nlohmann::json& j, GroupCreationDetail& p)
10856 getOptional<std::string>(
"id", p.id, j, EMPTY_STRING);
10857 getOptional<GroupCreationDetail::CreationStatus_t>(
"status", p.status, j, GroupCreationDetail::CreationStatus_t::csUndefined);
10862 JSON_SERIALIZED_CLASS(GroupReconfigurationDetail)
10871 IMPLEMENT_JSON_SERIALIZATION()
10889 rsInvalidConfiguration = -2,
10892 rsInvalidJson = -3,
10895 rsAudioInputFailure = -4,
10898 rsAudioOutputFailure = -5,
10901 rsDoesNotExist = -6,
10904 rsAudioInputInUse = -7,
10907 rsAudioDisabledForGroup = -8,
10910 rsGroupIsNotAudio = -9
10911 } ReconfigurationStatus_t;
10927 status = rsUndefined;
10931 static void to_json(nlohmann::json& j,
const GroupReconfigurationDetail& p)
10933 j = nlohmann::json{
10935 TOJSON_IMPL(status)
10938 static void from_json(
const nlohmann::json& j, GroupReconfigurationDetail& p)
10941 getOptional<std::string>(
"id", p.id, j, EMPTY_STRING);
10942 getOptional<GroupReconfigurationDetail::ReconfigurationStatus_t>(
"status", p.status, j, GroupReconfigurationDetail::ReconfigurationStatus_t::rsUndefined);
10947 JSON_SERIALIZED_CLASS(GroupHealthReport)
10956 IMPLEMENT_JSON_SERIALIZATION()
10962 uint64_t lastErrorTs;
10963 uint64_t decryptionErrors;
10964 uint64_t encryptionErrors;
10965 uint64_t unsupportDecoderErrors;
10966 uint64_t decoderFailures;
10967 uint64_t decoderStartFailures;
10968 uint64_t inboundRtpPacketAllocationFailures;
10969 uint64_t inboundRtpPacketLoadFailures;
10970 uint64_t latePacketsDiscarded;
10971 uint64_t jitterBufferInsertionFailures;
10972 uint64_t presenceDeserializationFailures;
10973 uint64_t notRtpErrors;
10974 uint64_t generalErrors;
10975 uint64_t inboundRtpProcessorAllocationFailures;
10986 decryptionErrors = 0;
10987 encryptionErrors = 0;
10988 unsupportDecoderErrors = 0;
10989 decoderFailures = 0;
10990 decoderStartFailures = 0;
10991 inboundRtpPacketAllocationFailures = 0;
10992 inboundRtpPacketLoadFailures = 0;
10993 latePacketsDiscarded = 0;
10994 jitterBufferInsertionFailures = 0;
10995 presenceDeserializationFailures = 0;
10998 inboundRtpProcessorAllocationFailures = 0;
11004 j = nlohmann::json{
11006 TOJSON_IMPL(lastErrorTs),
11007 TOJSON_IMPL(decryptionErrors),
11008 TOJSON_IMPL(encryptionErrors),
11009 TOJSON_IMPL(unsupportDecoderErrors),
11010 TOJSON_IMPL(decoderFailures),
11011 TOJSON_IMPL(decoderStartFailures),
11012 TOJSON_IMPL(inboundRtpPacketAllocationFailures),
11013 TOJSON_IMPL(inboundRtpPacketLoadFailures),
11014 TOJSON_IMPL(latePacketsDiscarded),
11015 TOJSON_IMPL(jitterBufferInsertionFailures),
11016 TOJSON_IMPL(presenceDeserializationFailures),
11017 TOJSON_IMPL(notRtpErrors),
11018 TOJSON_IMPL(generalErrors),
11019 TOJSON_IMPL(inboundRtpProcessorAllocationFailures)
11022 static void from_json(
const nlohmann::json& j, GroupHealthReport& p)
11025 getOptional<std::string>(
"id", p.id, j, EMPTY_STRING);
11026 getOptional<uint64_t>(
"lastErrorTs", p.lastErrorTs, j, 0);
11027 getOptional<uint64_t>(
"decryptionErrors", p.decryptionErrors, j, 0);
11028 getOptional<uint64_t>(
"encryptionErrors", p.encryptionErrors, j, 0);
11029 getOptional<uint64_t>(
"unsupportDecoderErrors", p.unsupportDecoderErrors, j, 0);
11030 getOptional<uint64_t>(
"decoderFailures", p.decoderFailures, j, 0);
11031 getOptional<uint64_t>(
"decoderStartFailures", p.decoderStartFailures, j, 0);
11032 getOptional<uint64_t>(
"inboundRtpPacketAllocationFailures", p.inboundRtpPacketAllocationFailures, j, 0);
11033 getOptional<uint64_t>(
"inboundRtpPacketLoadFailures", p.inboundRtpPacketLoadFailures, j, 0);
11034 getOptional<uint64_t>(
"latePacketsDiscarded", p.latePacketsDiscarded, j, 0);
11035 getOptional<uint64_t>(
"jitterBufferInsertionFailures", p.jitterBufferInsertionFailures, j, 0);
11036 getOptional<uint64_t>(
"presenceDeserializationFailures", p.presenceDeserializationFailures, j, 0);
11037 getOptional<uint64_t>(
"notRtpErrors", p.notRtpErrors, j, 0);
11038 getOptional<uint64_t>(
"generalErrors", p.generalErrors, j, 0);
11039 getOptional<uint64_t>(
"inboundRtpProcessorAllocationFailures", p.inboundRtpProcessorAllocationFailures, j, 0);
11043 JSON_SERIALIZED_CLASS(InboundProcessorStats)
11052 IMPLEMENT_JSON_SERIALIZATION()
11059 uint64_t minRtpSamplesInQueue;
11060 uint64_t maxRtpSamplesInQueue;
11061 uint64_t totalSamplesTrimmed;
11062 uint64_t underruns;
11064 uint64_t samplesInQueue;
11065 uint64_t totalPacketsReceived;
11066 uint64_t totalPacketsLost;
11067 uint64_t totalPacketsDiscarded;
11078 minRtpSamplesInQueue = 0;
11079 maxRtpSamplesInQueue = 0;
11080 totalSamplesTrimmed = 0;
11083 samplesInQueue = 0;
11084 totalPacketsReceived = 0;
11085 totalPacketsLost = 0;
11086 totalPacketsDiscarded = 0;
11092 j = nlohmann::json{
11094 TOJSON_IMPL(jitter),
11095 TOJSON_IMPL(minRtpSamplesInQueue),
11096 TOJSON_IMPL(maxRtpSamplesInQueue),
11097 TOJSON_IMPL(totalSamplesTrimmed),
11098 TOJSON_IMPL(underruns),
11099 TOJSON_IMPL(overruns),
11100 TOJSON_IMPL(samplesInQueue),
11101 TOJSON_IMPL(totalPacketsReceived),
11102 TOJSON_IMPL(totalPacketsLost),
11103 TOJSON_IMPL(totalPacketsDiscarded)
11106 static void from_json(
const nlohmann::json& j, InboundProcessorStats& p)
11109 getOptional<uint32_t>(
"ssrc", p.ssrc, j, 0);
11110 getOptional<double>(
"jitter", p.jitter, j, 0.0);
11111 getOptional<uint64_t>(
"minRtpSamplesInQueue", p.minRtpSamplesInQueue, j, 0);
11112 getOptional<uint64_t>(
"maxRtpSamplesInQueue", p.maxRtpSamplesInQueue, j, 0);
11113 getOptional<uint64_t>(
"totalSamplesTrimmed", p.totalSamplesTrimmed, j, 0);
11114 getOptional<uint64_t>(
"underruns", p.underruns, j, 0);
11115 getOptional<uint64_t>(
"overruns", p.overruns, j, 0);
11116 getOptional<uint64_t>(
"samplesInQueue", p.samplesInQueue, j, 0);
11117 getOptional<uint64_t>(
"totalPacketsReceived", p.totalPacketsReceived, j, 0);
11118 getOptional<uint64_t>(
"totalPacketsLost", p.totalPacketsLost, j, 0);
11119 getOptional<uint64_t>(
"totalPacketsDiscarded", p.totalPacketsDiscarded, j, 0);
11123 JSON_SERIALIZED_CLASS(TrafficCounter)
11132 IMPLEMENT_JSON_SERIALIZATION()
11156 j = nlohmann::json{
11157 TOJSON_IMPL(packets),
11158 TOJSON_IMPL(bytes),
11159 TOJSON_IMPL(errors)
11162 static void from_json(
const nlohmann::json& j, TrafficCounter& p)
11165 getOptional<uint64_t>(
"packets", p.packets, j, 0);
11166 getOptional<uint64_t>(
"bytes", p.bytes, j, 0);
11167 getOptional<uint64_t>(
"errors", p.errors, j, 0);
11171 JSON_SERIALIZED_CLASS(GroupStats)
11180 IMPLEMENT_JSON_SERIALIZATION()
11181 IMPLEMENT_WRAPPED_JSON_SERIALIZATION(
GroupStats)
11204 static void to_json(nlohmann::json& j,
const GroupStats& p)
11206 j = nlohmann::json{
11209 TOJSON_IMPL(rxTraffic),
11210 TOJSON_IMPL(txTraffic)
11213 static void from_json(
const nlohmann::json& j, GroupStats& p)
11216 getOptional<std::string>(
"id", p.id, j, EMPTY_STRING);
11218 getOptional<TrafficCounter>(
"rxTraffic", p.rxTraffic, j);
11219 getOptional<TrafficCounter>(
"txTraffic", p.txTraffic, j);
11223 JSON_SERIALIZED_CLASS(RallypointConnectionDetail)
11232 IMPLEMENT_JSON_SERIALIZATION()
11259 internalId.clear();
11262 msToNextConnectionAttempt = 0;
11263 serverProcessingMs = -1.0f;
11267 static void to_json(nlohmann::json& j,
const RallypointConnectionDetail& p)
11269 j = nlohmann::json{
11270 TOJSON_IMPL(internalId),
11275 if(p.msToNextConnectionAttempt > 0)
11277 j[
"msToNextConnectionAttempt"] = p.msToNextConnectionAttempt;
11280 if(p.serverProcessingMs >= 0.0)
11282 j[
"serverProcessingMs"] = p.serverProcessingMs;
11285 static void from_json(
const nlohmann::json& j, RallypointConnectionDetail& p)
11288 getOptional<std::string>(
"internalId", p.internalId, j, EMPTY_STRING);
11289 getOptional<std::string>(
"host", p.host, j, EMPTY_STRING);
11290 getOptional<int>(
"port", p.port, j, 0);
11291 getOptional<uint64_t>(
"msToNextConnectionAttempt", p.msToNextConnectionAttempt, j, 0);
11292 getOptional<float>(
"serverProcessingMs", p.serverProcessingMs, j, -1.0);
11296 JSON_SERIALIZED_CLASS(TranslationSession)
11308 IMPLEMENT_JSON_SERIALIZATION()
11338 static void to_json(nlohmann::json& j,
const TranslationSession& p)
11340 j = nlohmann::json{
11343 TOJSON_IMPL(groups),
11344 TOJSON_IMPL(enabled)
11347 static void from_json(
const nlohmann::json& j, TranslationSession& p)
11350 FROMJSON_IMPL(
id, std::string, EMPTY_STRING);
11351 FROMJSON_IMPL(name, std::string, EMPTY_STRING);
11352 getOptional<std::vector<std::string>>(
"groups", p.groups, j);
11353 FROMJSON_IMPL(enabled,
bool,
true);
11357 JSON_SERIALIZED_CLASS(TranslationConfiguration)
11369 IMPLEMENT_JSON_SERIALIZATION()
11391 static void to_json(nlohmann::json& j,
const TranslationConfiguration& p)
11393 j = nlohmann::json{
11394 TOJSON_IMPL(sessions),
11395 TOJSON_IMPL(groups)
11398 static void from_json(
const nlohmann::json& j, TranslationConfiguration& p)
11401 getOptional<std::vector<TranslationSession>>(
"sessions", p.sessions, j);
11402 getOptional<std::vector<Group>>(
"groups", p.groups, j);
11406 JSON_SERIALIZED_CLASS(LingoServerStatusReportConfiguration)
11418 IMPLEMENT_JSON_SERIALIZATION()
11453 includeGroupDetail =
false;
11454 includeSessionDetail =
false;
11455 includeSessionGroupDetail =
false;
11460 static void to_json(nlohmann::json& j,
const LingoServerStatusReportConfiguration& p)
11462 j = nlohmann::json{
11463 TOJSON_IMPL(fileName),
11464 TOJSON_IMPL(intervalSecs),
11465 TOJSON_IMPL(enabled),
11466 TOJSON_IMPL(includeGroupDetail),
11467 TOJSON_IMPL(includeSessionDetail),
11468 TOJSON_IMPL(includeSessionGroupDetail),
11469 TOJSON_IMPL(runCmd)
11472 static void from_json(
const nlohmann::json& j, LingoServerStatusReportConfiguration& p)
11475 getOptional<std::string>(
"fileName", p.fileName, j);
11476 getOptional<int>(
"intervalSecs", p.intervalSecs, j, 60);
11477 getOptional<bool>(
"enabled", p.enabled, j,
false);
11478 getOptional<std::string>(
"runCmd", p.runCmd, j);
11479 getOptional<bool>(
"includeGroupDetail", p.includeGroupDetail, j,
false);
11480 getOptional<bool>(
"includeSessionDetail", p.includeSessionDetail, j,
false);
11481 getOptional<bool>(
"includeSessionGroupDetail", p.includeSessionGroupDetail, j,
false);
11485 JSON_SERIALIZED_CLASS(LingoServerInternals)
11499 IMPLEMENT_JSON_SERIALIZATION()
11521 housekeeperIntervalMs = 1000;
11525 static void to_json(nlohmann::json& j,
const LingoServerInternals& p)
11527 j = nlohmann::json{
11528 TOJSON_IMPL(watchdog),
11529 TOJSON_IMPL(housekeeperIntervalMs),
11530 TOJSON_IMPL(tuning)
11533 static void from_json(
const nlohmann::json& j, LingoServerInternals& p)
11536 getOptional<WatchdogSettings>(
"watchdog", p.watchdog, j);
11537 getOptional<int>(
"housekeeperIntervalMs", p.housekeeperIntervalMs, j, 1000);
11538 getOptional<TuningSettings>(
"tuning", p.tuning, j);
11542 JSON_SERIALIZED_CLASS(LingoServerConfiguration)
11553 IMPLEMENT_JSON_SERIALIZATION()
11610 serviceConfigurationFileCheckSecs = 60;
11611 lingoConfigurationFileName.clear();
11612 lingoConfigurationFileCommand.clear();
11613 lingoConfigurationFileCheckSecs = 60;
11614 statusReport.clear();
11615 externalHealthCheckResponder.clear();
11617 certStoreFileName.clear();
11618 certStorePasswordHex.clear();
11619 enginePolicy.clear();
11620 configurationCheckSignalName =
"rts.22f4ec3.${id}";
11621 fipsCrypto.clear();
11627 static void to_json(nlohmann::json& j,
const LingoServerConfiguration& p)
11629 j = nlohmann::json{
11631 TOJSON_IMPL(serviceConfigurationFileCheckSecs),
11632 TOJSON_IMPL(lingoConfigurationFileName),
11633 TOJSON_IMPL(lingoConfigurationFileCommand),
11634 TOJSON_IMPL(lingoConfigurationFileCheckSecs),
11635 TOJSON_IMPL(statusReport),
11636 TOJSON_IMPL(externalHealthCheckResponder),
11637 TOJSON_IMPL(internals),
11638 TOJSON_IMPL(certStoreFileName),
11639 TOJSON_IMPL(certStorePasswordHex),
11640 TOJSON_IMPL(enginePolicy),
11641 TOJSON_IMPL(configurationCheckSignalName),
11642 TOJSON_IMPL(fipsCrypto),
11643 TOJSON_IMPL(proxy),
11647 static void from_json(
const nlohmann::json& j, LingoServerConfiguration& p)
11650 getOptional<std::string>(
"id", p.id, j);
11651 getOptional<int>(
"serviceConfigurationFileCheckSecs", p.serviceConfigurationFileCheckSecs, j, 60);
11652 getOptional<std::string>(
"lingoConfigurationFileName", p.lingoConfigurationFileName, j);
11653 getOptional<std::string>(
"lingoConfigurationFileCommand", p.lingoConfigurationFileCommand, j);
11654 getOptional<int>(
"lingoConfigurationFileCheckSecs", p.lingoConfigurationFileCheckSecs, j, 60);
11655 getOptional<LingoServerStatusReportConfiguration>(
"statusReport", p.statusReport, j);
11656 getOptional<ExternalHealthCheckResponder>(
"externalHealthCheckResponder", p.externalHealthCheckResponder, j);
11657 getOptional<LingoServerInternals>(
"internals", p.internals, j);
11658 getOptional<std::string>(
"certStoreFileName", p.certStoreFileName, j);
11659 getOptional<std::string>(
"certStorePasswordHex", p.certStorePasswordHex, j);
11660 j.at(
"enginePolicy").get_to(p.enginePolicy);
11661 getOptional<std::string>(
"configurationCheckSignalName", p.configurationCheckSignalName, j,
"rts.22f4ec3.${id}");
11662 getOptional<FipsCryptoSettings>(
"fipsCrypo", p.fipsCrypto, j);
11663 getOptional<NetworkAddress>(
"proxy", p.proxy, j);
11664 getOptional<NsmConfiguration>(
"nsm", p.nsm, j);
11669 JSON_SERIALIZED_CLASS(VoiceToVoiceSession)
11681 IMPLEMENT_JSON_SERIALIZATION()
11711 static void to_json(nlohmann::json& j,
const VoiceToVoiceSession& p)
11713 j = nlohmann::json{
11716 TOJSON_IMPL(groups),
11717 TOJSON_IMPL(enabled)
11720 static void from_json(
const nlohmann::json& j, VoiceToVoiceSession& p)
11723 FROMJSON_IMPL(
id, std::string, EMPTY_STRING);
11724 FROMJSON_IMPL(name, std::string, EMPTY_STRING);
11725 getOptional<std::vector<std::string>>(
"groups", p.groups, j);
11726 FROMJSON_IMPL(enabled,
bool,
true);
11730 JSON_SERIALIZED_CLASS(LingoConfiguration)
11742 IMPLEMENT_JSON_SERIALIZATION()
11759 voiceToVoiceSessions.clear();
11764 static void to_json(nlohmann::json& j,
const LingoConfiguration& p)
11766 j = nlohmann::json{
11767 TOJSON_IMPL(voiceToVoiceSessions),
11768 TOJSON_IMPL(groups)
11771 static void from_json(
const nlohmann::json& j, LingoConfiguration& p)
11774 getOptional<std::vector<VoiceToVoiceSession>>(
"voiceToVoiceSessions", p.voiceToVoiceSessions, j);
11775 getOptional<std::vector<Group>>(
"groups", p.groups, j);
11779 JSON_SERIALIZED_CLASS(BridgingConfiguration)
11791 IMPLEMENT_JSON_SERIALIZATION()
11813 static void to_json(nlohmann::json& j,
const BridgingConfiguration& p)
11815 j = nlohmann::json{
11816 TOJSON_IMPL(bridges),
11817 TOJSON_IMPL(groups)
11820 static void from_json(
const nlohmann::json& j, BridgingConfiguration& p)
11823 getOptional<std::vector<Bridge>>(
"bridges", p.bridges, j);
11824 getOptional<std::vector<Group>>(
"groups", p.groups, j);
11828 JSON_SERIALIZED_CLASS(BridgingServerStatusReportConfiguration)
11840 IMPLEMENT_JSON_SERIALIZATION()
11875 includeGroupDetail =
false;
11876 includeBridgeDetail =
false;
11877 includeBridgeGroupDetail =
false;
11882 static void to_json(nlohmann::json& j,
const BridgingServerStatusReportConfiguration& p)
11884 j = nlohmann::json{
11885 TOJSON_IMPL(fileName),
11886 TOJSON_IMPL(intervalSecs),
11887 TOJSON_IMPL(enabled),
11888 TOJSON_IMPL(includeGroupDetail),
11889 TOJSON_IMPL(includeBridgeDetail),
11890 TOJSON_IMPL(includeBridgeGroupDetail),
11891 TOJSON_IMPL(runCmd)
11894 static void from_json(
const nlohmann::json& j, BridgingServerStatusReportConfiguration& p)
11897 getOptional<std::string>(
"fileName", p.fileName, j);
11898 getOptional<int>(
"intervalSecs", p.intervalSecs, j, 60);
11899 getOptional<bool>(
"enabled", p.enabled, j,
false);
11900 getOptional<std::string>(
"runCmd", p.runCmd, j);
11901 getOptional<bool>(
"includeGroupDetail", p.includeGroupDetail, j,
false);
11902 getOptional<bool>(
"includeBridgeDetail", p.includeBridgeDetail, j,
false);
11903 getOptional<bool>(
"includeBridgeGroupDetail", p.includeBridgeGroupDetail, j,
false);
11907 JSON_SERIALIZED_CLASS(BridgingServerInternals)
11921 IMPLEMENT_JSON_SERIALIZATION()
11943 housekeeperIntervalMs = 1000;
11947 static void to_json(nlohmann::json& j,
const BridgingServerInternals& p)
11949 j = nlohmann::json{
11950 TOJSON_IMPL(watchdog),
11951 TOJSON_IMPL(housekeeperIntervalMs),
11952 TOJSON_IMPL(tuning)
11955 static void from_json(
const nlohmann::json& j, BridgingServerInternals& p)
11958 getOptional<WatchdogSettings>(
"watchdog", p.watchdog, j);
11959 getOptional<int>(
"housekeeperIntervalMs", p.housekeeperIntervalMs, j, 1000);
11960 getOptional<TuningSettings>(
"tuning", p.tuning, j);
11964 JSON_SERIALIZED_CLASS(BridgingServerConfiguration)
11975 IMPLEMENT_JSON_SERIALIZATION()
11999 omADictatedByGroup = 3,
12056 serviceConfigurationFileCheckSecs = 60;
12057 bridgingConfigurationFileName.clear();
12058 bridgingConfigurationFileCommand.clear();
12059 bridgingConfigurationFileCheckSecs = 60;
12060 statusReport.clear();
12061 externalHealthCheckResponder.clear();
12063 certStoreFileName.clear();
12064 certStorePasswordHex.clear();
12065 enginePolicy.clear();
12066 configurationCheckSignalName =
"rts.6cc0651.${id}";
12067 fipsCrypto.clear();
12072 static void to_json(nlohmann::json& j,
const BridgingServerConfiguration& p)
12074 j = nlohmann::json{
12077 TOJSON_IMPL(serviceConfigurationFileCheckSecs),
12078 TOJSON_IMPL(bridgingConfigurationFileName),
12079 TOJSON_IMPL(bridgingConfigurationFileCommand),
12080 TOJSON_IMPL(bridgingConfigurationFileCheckSecs),
12081 TOJSON_IMPL(statusReport),
12082 TOJSON_IMPL(externalHealthCheckResponder),
12083 TOJSON_IMPL(internals),
12084 TOJSON_IMPL(certStoreFileName),
12085 TOJSON_IMPL(certStorePasswordHex),
12086 TOJSON_IMPL(enginePolicy),
12087 TOJSON_IMPL(configurationCheckSignalName),
12088 TOJSON_IMPL(fipsCrypto),
12092 static void from_json(
const nlohmann::json& j, BridgingServerConfiguration& p)
12095 getOptional<std::string>(
"id", p.id, j);
12096 getOptional<BridgingServerConfiguration::OpMode_t>(
"mode", p.mode, j, BridgingServerConfiguration::OpMode_t::omRaw);
12097 getOptional<int>(
"serviceConfigurationFileCheckSecs", p.serviceConfigurationFileCheckSecs, j, 60);
12098 getOptional<std::string>(
"bridgingConfigurationFileName", p.bridgingConfigurationFileName, j);
12099 getOptional<std::string>(
"bridgingConfigurationFileCommand", p.bridgingConfigurationFileCommand, j);
12100 getOptional<int>(
"bridgingConfigurationFileCheckSecs", p.bridgingConfigurationFileCheckSecs, j, 60);
12101 getOptional<BridgingServerStatusReportConfiguration>(
"statusReport", p.statusReport, j);
12102 getOptional<ExternalHealthCheckResponder>(
"externalHealthCheckResponder", p.externalHealthCheckResponder, j);
12103 getOptional<BridgingServerInternals>(
"internals", p.internals, j);
12104 getOptional<std::string>(
"certStoreFileName", p.certStoreFileName, j);
12105 getOptional<std::string>(
"certStorePasswordHex", p.certStorePasswordHex, j);
12106 j.at(
"enginePolicy").get_to(p.enginePolicy);
12107 getOptional<std::string>(
"configurationCheckSignalName", p.configurationCheckSignalName, j,
"rts.6cc0651.${id}");
12108 getOptional<FipsCryptoSettings>(
"fipsCrypto", p.fipsCrypto, j);
12109 getOptional<NsmConfiguration>(
"nsm", p.nsm, j);
12114 JSON_SERIALIZED_CLASS(EarGroupsConfiguration)
12126 IMPLEMENT_JSON_SERIALIZATION()
12144 static void to_json(nlohmann::json& j,
const EarGroupsConfiguration& p)
12146 j = nlohmann::json{
12147 TOJSON_IMPL(groups)
12150 static void from_json(
const nlohmann::json& j, EarGroupsConfiguration& p)
12153 getOptional<std::vector<Group>>(
"groups", p.groups, j);
12157 JSON_SERIALIZED_CLASS(EarServerStatusReportConfiguration)
12169 IMPLEMENT_JSON_SERIALIZATION()
12198 includeGroupDetail =
false;
12203 static void to_json(nlohmann::json& j,
const EarServerStatusReportConfiguration& p)
12205 j = nlohmann::json{
12206 TOJSON_IMPL(fileName),
12207 TOJSON_IMPL(intervalSecs),
12208 TOJSON_IMPL(enabled),
12209 TOJSON_IMPL(includeGroupDetail),
12210 TOJSON_IMPL(runCmd)
12213 static void from_json(
const nlohmann::json& j, EarServerStatusReportConfiguration& p)
12216 getOptional<std::string>(
"fileName", p.fileName, j);
12217 getOptional<int>(
"intervalSecs", p.intervalSecs, j, 60);
12218 getOptional<bool>(
"enabled", p.enabled, j,
false);
12219 getOptional<std::string>(
"runCmd", p.runCmd, j);
12220 getOptional<bool>(
"includeGroupDetail", p.includeGroupDetail, j,
false);
12224 JSON_SERIALIZED_CLASS(EarServerInternals)
12238 IMPLEMENT_JSON_SERIALIZATION()
12260 housekeeperIntervalMs = 1000;
12264 static void to_json(nlohmann::json& j,
const EarServerInternals& p)
12266 j = nlohmann::json{
12267 TOJSON_IMPL(watchdog),
12268 TOJSON_IMPL(housekeeperIntervalMs),
12269 TOJSON_IMPL(tuning)
12272 static void from_json(
const nlohmann::json& j, EarServerInternals& p)
12275 getOptional<WatchdogSettings>(
"watchdog", p.watchdog, j);
12276 getOptional<int>(
"housekeeperIntervalMs", p.housekeeperIntervalMs, j, 1000);
12277 getOptional<TuningSettings>(
"tuning", p.tuning, j);
12281 JSON_SERIALIZED_CLASS(EarServerConfiguration)
12292 IMPLEMENT_JSON_SERIALIZATION()
12347 serviceConfigurationFileCheckSecs = 60;
12348 groupsConfigurationFileName.clear();
12349 groupsConfigurationFileCommand.clear();
12350 groupsConfigurationFileCheckSecs = 60;
12351 statusReport.clear();
12352 externalHealthCheckResponder.clear();
12354 certStoreFileName.clear();
12355 certStorePasswordHex.clear();
12356 enginePolicy.clear();
12357 configurationCheckSignalName =
"rts.9a164fa.${id}";
12358 fipsCrypto.clear();
12363 static void to_json(nlohmann::json& j,
const EarServerConfiguration& p)
12365 j = nlohmann::json{
12367 TOJSON_IMPL(serviceConfigurationFileCheckSecs),
12368 TOJSON_IMPL(groupsConfigurationFileName),
12369 TOJSON_IMPL(groupsConfigurationFileCommand),
12370 TOJSON_IMPL(groupsConfigurationFileCheckSecs),
12371 TOJSON_IMPL(statusReport),
12372 TOJSON_IMPL(externalHealthCheckResponder),
12373 TOJSON_IMPL(internals),
12374 TOJSON_IMPL(certStoreFileName),
12375 TOJSON_IMPL(certStorePasswordHex),
12376 TOJSON_IMPL(enginePolicy),
12377 TOJSON_IMPL(configurationCheckSignalName),
12378 TOJSON_IMPL(fipsCrypto),
12382 static void from_json(
const nlohmann::json& j, EarServerConfiguration& p)
12385 getOptional<std::string>(
"id", p.id, j);
12386 getOptional<int>(
"serviceConfigurationFileCheckSecs", p.serviceConfigurationFileCheckSecs, j, 60);
12387 getOptional<std::string>(
"groupsConfigurationFileName", p.groupsConfigurationFileName, j);
12388 getOptional<std::string>(
"groupsConfigurationFileCommand", p.groupsConfigurationFileCommand, j);
12389 getOptional<int>(
"groupsConfigurationFileCheckSecs", p.groupsConfigurationFileCheckSecs, j, 60);
12390 getOptional<EarServerStatusReportConfiguration>(
"statusReport", p.statusReport, j);
12391 getOptional<ExternalHealthCheckResponder>(
"externalHealthCheckResponder", p.externalHealthCheckResponder, j);
12392 getOptional<EarServerInternals>(
"internals", p.internals, j);
12393 getOptional<std::string>(
"certStoreFileName", p.certStoreFileName, j);
12394 getOptional<std::string>(
"certStorePasswordHex", p.certStorePasswordHex, j);
12395 j.at(
"enginePolicy").get_to(p.enginePolicy);
12396 getOptional<std::string>(
"configurationCheckSignalName", p.configurationCheckSignalName, j,
"rts.9a164fa.${id}");
12397 getOptional<FipsCryptoSettings>(
"fipsCrypto", p.fipsCrypto, j);
12398 getOptional<NsmConfiguration>(
"nsm", p.nsm, j);
12402 JSON_SERIALIZED_CLASS(EngageSemGroupsConfiguration)
12414 IMPLEMENT_JSON_SERIALIZATION()
12432 static void to_json(nlohmann::json& j,
const EngageSemGroupsConfiguration& p)
12434 j = nlohmann::json{
12435 TOJSON_IMPL(groups)
12438 static void from_json(
const nlohmann::json& j, EngageSemGroupsConfiguration& p)
12441 getOptional<std::vector<Group>>(
"groups", p.groups, j);
12445 JSON_SERIALIZED_CLASS(EngageSemServerStatusReportConfiguration)
12457 IMPLEMENT_JSON_SERIALIZATION()
12486 includeGroupDetail =
false;
12491 static void to_json(nlohmann::json& j,
const EngageSemServerStatusReportConfiguration& p)
12493 j = nlohmann::json{
12494 TOJSON_IMPL(fileName),
12495 TOJSON_IMPL(intervalSecs),
12496 TOJSON_IMPL(enabled),
12497 TOJSON_IMPL(includeGroupDetail),
12498 TOJSON_IMPL(runCmd)
12501 static void from_json(
const nlohmann::json& j, EngageSemServerStatusReportConfiguration& p)
12504 getOptional<std::string>(
"fileName", p.fileName, j);
12505 getOptional<int>(
"intervalSecs", p.intervalSecs, j, 60);
12506 getOptional<bool>(
"enabled", p.enabled, j,
false);
12507 getOptional<std::string>(
"runCmd", p.runCmd, j);
12508 getOptional<bool>(
"includeGroupDetail", p.includeGroupDetail, j,
false);
12512 JSON_SERIALIZED_CLASS(EngageSemServerInternals)
12526 IMPLEMENT_JSON_SERIALIZATION()
12548 housekeeperIntervalMs = 1000;
12552 static void to_json(nlohmann::json& j,
const EngageSemServerInternals& p)
12554 j = nlohmann::json{
12555 TOJSON_IMPL(watchdog),
12556 TOJSON_IMPL(housekeeperIntervalMs),
12557 TOJSON_IMPL(tuning)
12560 static void from_json(
const nlohmann::json& j, EngageSemServerInternals& p)
12563 getOptional<WatchdogSettings>(
"watchdog", p.watchdog, j);
12564 getOptional<int>(
"housekeeperIntervalMs", p.housekeeperIntervalMs, j, 1000);
12565 getOptional<TuningSettings>(
"tuning", p.tuning, j);
12569 JSON_SERIALIZED_CLASS(EngageSemServerConfiguration)
12580 IMPLEMENT_JSON_SERIALIZATION()
12641 serviceConfigurationFileCheckSecs = 60;
12642 groupsConfigurationFileName.clear();
12643 groupsConfigurationFileCommand.clear();
12644 groupsConfigurationFileCheckSecs = 60;
12645 statusReport.clear();
12646 externalHealthCheckResponder.clear();
12648 certStoreFileName.clear();
12649 certStorePasswordHex.clear();
12650 enginePolicy.clear();
12651 configurationCheckSignalName =
"rts.9a164fa.${id}";
12652 fipsCrypto.clear();
12657 maxQueuingMs = 15000;
12663 static void to_json(nlohmann::json& j,
const EngageSemServerConfiguration& p)
12665 j = nlohmann::json{
12667 TOJSON_IMPL(serviceConfigurationFileCheckSecs),
12668 TOJSON_IMPL(groupsConfigurationFileName),
12669 TOJSON_IMPL(groupsConfigurationFileCommand),
12670 TOJSON_IMPL(groupsConfigurationFileCheckSecs),
12671 TOJSON_IMPL(statusReport),
12672 TOJSON_IMPL(externalHealthCheckResponder),
12673 TOJSON_IMPL(internals),
12674 TOJSON_IMPL(certStoreFileName),
12675 TOJSON_IMPL(certStorePasswordHex),
12676 TOJSON_IMPL(enginePolicy),
12677 TOJSON_IMPL(configurationCheckSignalName),
12678 TOJSON_IMPL(fipsCrypto),
12680 TOJSON_IMPL(maxQueueLen),
12681 TOJSON_IMPL(minQueuingMs),
12682 TOJSON_IMPL(maxQueuingMs),
12683 TOJSON_IMPL(minPriority),
12684 TOJSON_IMPL(maxPriority)
12687 static void from_json(
const nlohmann::json& j, EngageSemServerConfiguration& p)
12690 getOptional<std::string>(
"id", p.id, j);
12691 getOptional<int>(
"serviceConfigurationFileCheckSecs", p.serviceConfigurationFileCheckSecs, j, 60);
12692 getOptional<std::string>(
"groupsConfigurationFileName", p.groupsConfigurationFileName, j);
12693 getOptional<std::string>(
"groupsConfigurationFileCommand", p.groupsConfigurationFileCommand, j);
12694 getOptional<int>(
"groupsConfigurationFileCheckSecs", p.groupsConfigurationFileCheckSecs, j, 60);
12695 getOptional<EngageSemServerStatusReportConfiguration>(
"statusReport", p.statusReport, j);
12696 getOptional<ExternalHealthCheckResponder>(
"externalHealthCheckResponder", p.externalHealthCheckResponder, j);
12697 getOptional<EngageSemServerInternals>(
"internals", p.internals, j);
12698 getOptional<std::string>(
"certStoreFileName", p.certStoreFileName, j);
12699 getOptional<std::string>(
"certStorePasswordHex", p.certStorePasswordHex, j);
12700 j.at(
"enginePolicy").get_to(p.enginePolicy);
12701 getOptional<std::string>(
"configurationCheckSignalName", p.configurationCheckSignalName, j,
"rts.9a164fa.${id}");
12702 getOptional<FipsCryptoSettings>(
"fipsCrypto", p.fipsCrypto, j);
12703 getOptional<NsmConfiguration>(
"nsm", p.nsm, j);
12704 getOptional<int>(
"maxQueueLen", p.maxQueueLen, j, 64);
12705 getOptional<int>(
"minQueuingMs", p.minQueuingMs, j, 0);
12706 getOptional<int>(
"maxQueuingMs", p.maxQueuingMs, j, 15000);
12707 getOptional<int>(
"minPriority", p.minPriority, j, 0);
12708 getOptional<int>(
"maxPriority", p.maxPriority, j, 255);
12712 JSON_SERIALIZED_CLASS(EngateGroup)
12724 IMPLEMENT_JSON_SERIALIZATION()
12729 uint32_t inputHangMs;
12730 uint32_t inputActivationPowerThreshold;
12731 uint32_t inputDeactivationPowerThreshold;
12743 inputActivationPowerThreshold = 700;
12744 inputDeactivationPowerThreshold = 125;
12748 static void to_json(nlohmann::json& j,
const EngateGroup& p)
12751 to_json(g,
static_cast<const Group&
>(p));
12753 j = nlohmann::json{
12754 TOJSON_IMPL(useVad),
12755 TOJSON_IMPL(inputHangMs),
12756 TOJSON_IMPL(inputActivationPowerThreshold),
12757 TOJSON_IMPL(inputDeactivationPowerThreshold)
12760 static void from_json(
const nlohmann::json& j, EngateGroup& p)
12763 from_json(j,
static_cast<Group&
>(p));
12764 getOptional<uint32_t>(
"inputHangMs", p.inputHangMs, j, 750);
12765 getOptional<uint32_t>(
"inputActivationPowerThreshold", p.inputActivationPowerThreshold, j, 700);
12766 getOptional<uint32_t>(
"inputDeactivationPowerThreshold", p.inputDeactivationPowerThreshold, j, 125);
12770 JSON_SERIALIZED_CLASS(EngateGroupsConfiguration)
12782 IMPLEMENT_JSON_SERIALIZATION()
12800 static void to_json(nlohmann::json& j,
const EngateGroupsConfiguration& p)
12802 j = nlohmann::json{
12803 TOJSON_IMPL(groups)
12806 static void from_json(
const nlohmann::json& j, EngateGroupsConfiguration& p)
12809 getOptional<std::vector<EngateGroup>>(
"groups", p.groups, j);
12813 JSON_SERIALIZED_CLASS(EngateServerStatusReportConfiguration)
12825 IMPLEMENT_JSON_SERIALIZATION()
12854 includeGroupDetail =
false;
12859 static void to_json(nlohmann::json& j,
const EngateServerStatusReportConfiguration& p)
12861 j = nlohmann::json{
12862 TOJSON_IMPL(fileName),
12863 TOJSON_IMPL(intervalSecs),
12864 TOJSON_IMPL(enabled),
12865 TOJSON_IMPL(includeGroupDetail),
12866 TOJSON_IMPL(runCmd)
12869 static void from_json(
const nlohmann::json& j, EngateServerStatusReportConfiguration& p)
12872 getOptional<std::string>(
"fileName", p.fileName, j);
12873 getOptional<int>(
"intervalSecs", p.intervalSecs, j, 60);
12874 getOptional<bool>(
"enabled", p.enabled, j,
false);
12875 getOptional<std::string>(
"runCmd", p.runCmd, j);
12876 getOptional<bool>(
"includeGroupDetail", p.includeGroupDetail, j,
false);
12880 JSON_SERIALIZED_CLASS(EngateServerInternals)
12894 IMPLEMENT_JSON_SERIALIZATION()
12916 housekeeperIntervalMs = 1000;
12920 static void to_json(nlohmann::json& j,
const EngateServerInternals& p)
12922 j = nlohmann::json{
12923 TOJSON_IMPL(watchdog),
12924 TOJSON_IMPL(housekeeperIntervalMs),
12925 TOJSON_IMPL(tuning)
12928 static void from_json(
const nlohmann::json& j, EngateServerInternals& p)
12931 getOptional<WatchdogSettings>(
"watchdog", p.watchdog, j);
12932 getOptional<int>(
"housekeeperIntervalMs", p.housekeeperIntervalMs, j, 1000);
12933 getOptional<TuningSettings>(
"tuning", p.tuning, j);
12937 JSON_SERIALIZED_CLASS(EngateServerConfiguration)
12948 IMPLEMENT_JSON_SERIALIZATION()
13003 serviceConfigurationFileCheckSecs = 60;
13004 groupsConfigurationFileName.clear();
13005 groupsConfigurationFileCommand.clear();
13006 groupsConfigurationFileCheckSecs = 60;
13007 statusReport.clear();
13008 externalHealthCheckResponder.clear();
13010 certStoreFileName.clear();
13011 certStorePasswordHex.clear();
13012 enginePolicy.clear();
13013 configurationCheckSignalName =
"rts.9a164fa.${id}";
13014 fipsCrypto.clear();
13019 static void to_json(nlohmann::json& j,
const EngateServerConfiguration& p)
13021 j = nlohmann::json{
13023 TOJSON_IMPL(serviceConfigurationFileCheckSecs),
13024 TOJSON_IMPL(groupsConfigurationFileName),
13025 TOJSON_IMPL(groupsConfigurationFileCommand),
13026 TOJSON_IMPL(groupsConfigurationFileCheckSecs),
13027 TOJSON_IMPL(statusReport),
13028 TOJSON_IMPL(externalHealthCheckResponder),
13029 TOJSON_IMPL(internals),
13030 TOJSON_IMPL(certStoreFileName),
13031 TOJSON_IMPL(certStorePasswordHex),
13032 TOJSON_IMPL(enginePolicy),
13033 TOJSON_IMPL(configurationCheckSignalName),
13034 TOJSON_IMPL(fipsCrypto),
13038 static void from_json(
const nlohmann::json& j, EngateServerConfiguration& p)
13041 getOptional<std::string>(
"id", p.id, j);
13042 getOptional<int>(
"serviceConfigurationFileCheckSecs", p.serviceConfigurationFileCheckSecs, j, 60);
13043 getOptional<std::string>(
"groupsConfigurationFileName", p.groupsConfigurationFileName, j);
13044 getOptional<std::string>(
"groupsConfigurationFileCommand", p.groupsConfigurationFileCommand, j);
13045 getOptional<int>(
"groupsConfigurationFileCheckSecs", p.groupsConfigurationFileCheckSecs, j, 60);
13046 getOptional<EngateServerStatusReportConfiguration>(
"statusReport", p.statusReport, j);
13047 getOptional<ExternalHealthCheckResponder>(
"externalHealthCheckResponder", p.externalHealthCheckResponder, j);
13048 getOptional<EngateServerInternals>(
"internals", p.internals, j);
13049 getOptional<std::string>(
"certStoreFileName", p.certStoreFileName, j);
13050 getOptional<std::string>(
"certStorePasswordHex", p.certStorePasswordHex, j);
13051 j.at(
"enginePolicy").get_to(p.enginePolicy);
13052 getOptional<std::string>(
"configurationCheckSignalName", p.configurationCheckSignalName, j,
"rts.9a164fa.${id}");
13053 getOptional<FipsCryptoSettings>(
"fipsCrypto", p.fipsCrypto, j);
13054 getOptional<NsmConfiguration>(
"nsm", p.nsm, j);
13058 static inline void dumpExampleConfigurations(
const char *path)
13060 WatchdogSettings::document();
13061 FileRecordingRequest::document();
13062 Feature::document();
13063 Featureset::document();
13065 RtpPayloadTypeTranslation::document();
13066 NetworkInterfaceDevice::document();
13067 ListOfNetworkInterfaceDevice::document();
13068 RtpHeader::document();
13069 BlobInfo::document();
13070 TxAudioUri::document();
13071 AdvancedTxParams::document();
13072 Identity::document();
13073 Location::document();
13075 Connectivity::document();
13076 PresenceDescriptorGroupItem::document();
13077 PresenceDescriptor::document();
13078 NetworkTxOptions::document();
13079 TcpNetworkTxOptions::document();
13080 NetworkAddress::document();
13081 NetworkAddressRxTx::document();
13082 NetworkAddressRestrictionList::document();
13083 StringRestrictionList::document();
13084 Rallypoint::document();
13085 RallypointCluster::document();
13086 NetworkDeviceDescriptor::document();
13087 TxAudio::document();
13088 AudioDeviceDescriptor::document();
13089 ListOfAudioDeviceDescriptor::document();
13091 TalkerInformation::document();
13092 GroupTalkers::document();
13093 Presence::document();
13094 Advertising::document();
13095 GroupPriorityTranslation::document();
13096 GroupTimeline::document();
13097 GroupAppTransport::document();
13098 RtpProfile::document();
13100 Mission::document();
13101 LicenseDescriptor::document();
13102 EngineNetworkingRpUdpStreaming::document();
13103 EnginePolicyNetworking::document();
13106 Bridge::document();
13107 AndroidAudio::document();
13108 EnginePolicyAudio::document();
13109 SecurityCertificate::document();
13110 EnginePolicySecurity::document();
13111 EnginePolicyLogging::document();
13112 EnginePolicyDatabase::document();
13113 NamedAudioDevice::document();
13114 EnginePolicyNamedAudioDevices::document();
13115 Licensing::document();
13116 DiscoveryMagellan::document();
13117 DiscoverySsdp::document();
13118 DiscoverySap::document();
13119 DiscoveryCistech::document();
13120 DiscoveryTrellisware::document();
13121 DiscoveryConfiguration::document();
13122 EnginePolicyInternals::document();
13123 EnginePolicyTimelines::document();
13124 RtpMapEntry::document();
13125 ExternalModule::document();
13126 ExternalCodecDescriptor::document();
13127 EnginePolicy::document();
13128 TalkgroupAsset::document();
13129 EngageDiscoveredGroup::document();
13130 RallypointPeer::document();
13131 RallypointServerLimits::document();
13132 RallypointServerStatusReportConfiguration::document();
13133 RallypointServerLinkGraph::document();
13134 ExternalHealthCheckResponder::document();
13136 PeeringConfiguration::document();
13137 IgmpSnooping::document();
13138 RallypointReflector::document();
13139 RallypointUdpStreaming::document();
13140 RallypointServer::document();
13141 PlatformDiscoveredService::document();
13142 TimelineQueryParameters::document();
13143 CertStoreCertificate::document();
13144 CertStore::document();
13145 CertStoreCertificateElement::document();
13146 CertStoreDescriptor::document();
13147 CertificateDescriptor::document();
13148 BridgeCreationDetail::document();
13149 GroupConnectionDetail::document();
13150 GroupTxDetail::document();
13151 GroupCreationDetail::document();
13152 GroupReconfigurationDetail::document();
13153 GroupHealthReport::document();
13154 InboundProcessorStats::document();
13155 TrafficCounter::document();
13156 GroupStats::document();
13157 RallypointConnectionDetail::document();
13158 BridgingConfiguration::document();
13159 BridgingServerStatusReportConfiguration::document();
13160 BridgingServerInternals::document();
13161 BridgingServerConfiguration::document();
13162 EarGroupsConfiguration::document();
13163 EarServerStatusReportConfiguration::document();
13164 EarServerInternals::document();
13165 EarServerConfiguration::document();
13166 RangerPackets::document();
13167 TransportImpairment::document();
13169 EngageSemGroupsConfiguration::document();
13170 EngageSemServerStatusReportConfiguration::document();
13171 EngageSemServerInternals::document();
13172 EngageSemServerConfiguration::document();
13177 #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.
uint8_t tx
[Optional] The default audio priority
uint8_t rx
[Optional] The default audio RX priority
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).
GroupDefaultAudioPriority defaultAudioPriority
Default audio priority for the group (see GroupDefaultAudioPriority).
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 activationHmac
The HMAC to be used for activation purposes.
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.
OutboundWebSocketTlsPolicy_t
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.
OutboundWebSocketTlsPolicy_t outboundWebSocketTlsPolicy
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
std::string name
A human-readable name for the Rallypoint.
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...
RFC4733 event information.
bool end
Indicates whether this is the end of the event.
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.
HeaderExtensionType_t hdrExtType
[Optional, Default: hetEngageStandard] The header extension type to use. See HeaderExtensionType_t fo...
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....
HeaderExtensionType_t
Header extension types.
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.