How trunkrecorder/trunk-recorder works
Trunk Recorder captures radio signals from SDRs, follows trunked control-channel assignments, and records decoded calls; it also supports conventional P25, DMR, and analog channels. The graph follows that workflow through source handling, system parsing, recorder processing, and call finalization, with plugin integrations shown as an extension. The README documents the product workflow and supported protocols; source-index references and excerpts support selected internal relationships. Several implementation files were not sampled, so some workflow links are marked unverified.
Main entry points: source.cc Radio source · call.h Call state · system_impl.h System state · plugin_manager.cc Plugin manager
Components 20
Signal capture
- Application startup
trunk-recorder/main.cc - Radio source
trunk-recorder/source.cc
System decoding
- System monitor
trunk-recorder/monitor_systems.cc - System state
trunk-recorder/systems/system_impl.h - P25 parser
trunk-recorder/systems/p25_parser.cc - SmartNet parser
trunk-recorder/systems/smartnet_parser.cc - DMR parser
trunk-recorder/systems/dmr_parser.cc
Call recording
- Call state
trunk-recorder/call.h - Voice recorders
trunk-recorder/recorders/p25_recorder_decode.cc - Analog recorder
trunk-recorder/recorders/analog_recorder.cc - Transmission sink
trunk-recorder/gr_blocks/transmission_sink.cc - Call finalization
trunk-recorder/call_concluder/call_concluder.cc - Audio and metadata files
trunk-recorder/call_concluder/call_concluder.cc
Extensions and sharing
- Plugin manager
trunk-recorder/plugin_manager/plugin_manager.cc - Upload plugins
plugins/openmhz_uploader/openmhz_uploader.cc - Streaming client
plugins/streamer/StreamerClient.cc - Status socket
plugins/stat_socket/stat_socket.cc
Other components
- Radio operator
- SDR hardware
- Sharing services
Connections 24
- Radio operator → Application startup: configures
- SDR hardware → Radio source: provides samples
- Application startup → Radio source: initializes
- Radio source → System monitor: supplies signal
- System monitor → System state: monitors
- System state → P25 parser: dispatches control
- System state → SmartNet parser: dispatches control
- System state → DMR parser: dispatches control
- P25 parser → Call state: reports grants
- SmartNet parser → Call state: reports grants
- DMR parser → Call state: reports activity
- Radio source → Voice recorders: hosts
- Radio source → Analog recorder: hosts
- Voice recorders → Transmission sink: sends samples
- Call state → Voice recorders: assigns recorder
- Call state → Call finalization: concludes
- Call finalization → Audio and metadata files: writes recordings
trunk-recorder/call_concluder/call_concluder.cc - Call finalization → Plugin manager: notifies
trunk-recorder/call_concluder/call_concluder.cc - Plugin manager → Upload plugins: dispatches hooks
- Plugin manager → Streaming client: dispatches hooks
- Plugin manager → Status socket: dispatches hooks
- Upload plugins → Sharing services: uploads calls
plugins/openmhz_uploader/openmhz_uploader.cc - Streaming client → Sharing services: streams events
- Audio and metadata files → Sharing services: supports playback