Implement cluster TGs and /config HTTP endpoint

Cluster TGs (BrandMeister-style): talk groups broadcast to all trunk
peers regardless of prefix ownership. Configured via CLUSTER_TGS in
[GLOBAL]. Routing checks in TrunkLink now accept isSharedTG || isClusterTG
for all 8 inbound/outbound handlers. Validated at startup to not overlap
with any LOCAL_PREFIX or REMOTE_PREFIX.

New GET /config endpoint returns static configuration (local_prefix,
cluster_tgs, listen_port, http_port, trunk peers) for dashboard use.

Docs: cluster TG sections added to README, DEPLOYMENT_ITALY, and
Italian translation. Design doc for satellite reflectors and cluster
TGs added.
This commit is contained in:
Audric committed 2026-03-20 12:41:26 +01:00
1 parent e26b932223
commit 166e57f445
8 files changed
+647 -17

No files matched your search

+4
View File
@@ -36,6 +36,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include <sigc++/sigc++.h>
#include <sys/time.h>
#include <set>
#include <vector>
#include <string>
#include <json/json.h>
@@ -236,6 +237,8 @@ class Reflector : public sigc::trackable
Json::Value& clientStatus(const std::string& callsign);
bool isClusterTG(uint32_t tg) const { return m_cluster_tgs.count(tg) > 0; }
protected:
private:
@@ -281,6 +284,7 @@ class Reflector : public sigc::trackable
Json::Value m_status;
std::vector<TrunkLink*> m_trunk_links;
std::set<uint32_t> m_cluster_tgs;
Reflector(const Reflector&);
Reflector& operator=(const Reflector&);