The receive-side handlers (handleMsgTrunkTalkerStart, handleMsgTrunkAudio, etc.) used isSharedTG() which only checks the remote peer's prefix. This caused non-cluster TGs to be silently dropped on the receiving reflector — e.g. a client on reflector-a talking on TG 40001 (owned by reflector-b) would never reach reflector-b because reflector-b checked the TG against reflector-a's prefix instead of its own. Add isOwnedTG() that accepts TGs matching either the local or remote prefix, and use it in all four receive handlers. The send-side still uses isSharedTG() (remote prefix only) which is correct. Also add a Docker-based integration test suite (tests/) with 11 automated tests covering handshake, routing, cross-reflector audio delivery, cluster TGs, heartbeat, disconnect cleanup, and trunk-to-trunk isolation. An interactive mode lets users test arbitrary TG numbers with routing verified via reflector logs. Topology is defined once in tests/topology.py. Fix Dockerfile to copy built shared libraries to the runtime image.
40 lines
455 B
Plaintext
40 lines
455 B
Plaintext
# Build output
|
|
build/
|
|
|
|
# Compiled object files and binaries
|
|
*.o
|
|
*.a
|
|
*.so
|
|
*.so.*
|
|
*.dylib
|
|
*.out
|
|
*.elf
|
|
|
|
# CMake generated files
|
|
CMakeCache.txt
|
|
CMakeFiles/
|
|
cmake_install.cmake
|
|
install_manifest.txt
|
|
CTestTestfile.cmake
|
|
_deps/
|
|
|
|
# Claude
|
|
.claude/
|
|
CLAUDE.md
|
|
|
|
# Test generated files (regenerated by tests/generate_configs.py)
|
|
tests/configs/
|
|
tests/docker-compose.test.yml
|
|
tests/__pycache__/
|
|
|
|
# Editor and IDE
|
|
.vscode/
|
|
.idea/
|
|
*.swp
|
|
*.swo
|
|
*~
|
|
|
|
# OS
|
|
.DS_Store
|
|
Thumbs.db
|