Require matching trunk section names and cap audio debug at 500 frames

Trunk link matching now requires the peer's hello ID (section name) to
match the local [TRUNK_x] section name. Both sides of a trunk link must
use the same section name, agreed upon by both sysops. This replaces
the previous matching by secret+prefix only.

BREAKING CHANGE: existing deployments must rename their [TRUNK_x]
sections so both sides use the same name for each link.

Also cap TRUNK_DEBUG audio frame logging at 500 frames per trunk link
to prevent excessive log output during sustained transmissions.
This commit is contained in:
Audric committed 2026-04-05 18:22:04 +02:00
1 parent 638d3c527e
commit 05c4c88ff3
6 files changed
+59 -20

No files matched your search

+1 -1
View File
@@ -47,7 +47,7 @@ def generate_reflector_conf(name: str) -> str:
# Trunk sections for each peer reflector
for peer_name in sorted(peers):
peer = peers[peer_name]
section = T.trunk_section_name(peer_name)
section = T.trunk_section_name(name, peer_name)
secret = T.trunk_secret(name, peer_name)
lines += [
"",