mirror of
https://github.com/n0mjs710/HBlink4.git
synced 2026-11-08 12:26:31 +00:00
Major changes: - Replaced ambiguous 'talkgroups' list with slot1_talkgroups/slot2_talkgroups - Simplified routing: same lists control inbound and outbound (no separate rules) - No wildcards or rewriting (simplicity over flexibility) Configuration updates: - Updated config.json with real KS-DMR settings (TS1: TG2,8,9 / TS2: TG3120) - Updated config_sample.json with slot-specific examples - Created docs/routing.md with complete documentation Code changes: - Added _check_inbound_routing(): Verify repeater can send on TS/TGID - Added _check_outbound_routing(): Verify repeater should receive on TS/TGID - Added _is_slot_busy(): Contention detection with hang time support - Added _update_assumed_stream(): Track streams forwarded to targets - Updated _forward_stream(): Full Phase 3 implementation with routing + contention - Updated StreamState: Added is_assumed flag and end_time field Routing logic: - Inbound: Only accept traffic matching repeater's slot_N_talkgroups - Outbound: Only forward to repeaters with matching slot_N_talkgroups - Contention: Block busy slots, respect hang time after stream ends - Assumed streams: Track forwarded streams on target repeaters Ready for real-world testing with multiple repeaters!