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.
791 B
791 B
Example plugin
Minimal reference skeleton for adn-server drop-in plugins. Disabled by default.
What it does
- On every bus event:
DEBUGlog line(EXAMPLE) …. - On
VoiceCallEnd/UnitDataEnd: writes one JSON file underexample-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.