You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ADN-DMR-Peer-Server/plugins/example
Rodrigo Pérez 0c5f1413e6
feat(plugins): add drop-in plugin framework for voice and unit-data
1 week ago
..
plugin feat(plugins): add drop-in plugin framework for voice and unit-data 1 week ago
tests feat(plugins): add drop-in plugin framework for voice and unit-data 1 week ago
README.md feat(plugins): add drop-in plugin framework for voice and unit-data 1 week ago
config.yaml feat(plugins): add drop-in plugin framework for voice and unit-data 1 week ago

README.md

Example plugin

Minimal reference skeleton for adn-server drop-in plugins. Disabled by default.

What it does

  • On every bus event: DEBUG log line (EXAMPLE) ….
  • On VoiceCallEnd / UnitDataEnd: writes one JSON file under example-events/ with call metadata, duration, and frame/packet counts.

No HTTP, no filters, no secrets — study or copy this tree when authoring your own plugin.

Enable locally

# Edit plugins/example/config.yaml → enabled: true
systemctl reload adn-server   # or SIGHUP

After a voice or unit-data session, check example-events/<stream_id>.json under the server project root.

Tests

cd plugins/example
python3 -m pytest tests/ -q

See also the Plugins user guide.

Powered by TurnKey Linux.