asterisk-rs-ami
Async Rust client for the Asterisk Manager Interface (AMI).
AMI is a TCP protocol (default port 5038) for monitoring and controlling an Asterisk PBX. This crate provides a typed, async client built on tokio with:
- 116 typed actions covering Asterisk 23
- 161 typed events plus an
Unknownvariant for forward compatibility - MD5 challenge-response authentication
- Automatic reconnection
- Event bus with pub/sub subscriptions
- tokio-util codec for the AMI wire protocol
Install
Quick start
use AmiClient;
async
See also the ami_originate.rs and ami_events.rs examples.
Workspace
This crate is part of asterisk-rs.
MSRV
1.83
License
Licensed under either of Apache License, Version 2.0 or MIT License at your option.