AMI API reference
The public Rust API is documented in
asterisk_rs_ami. Rustdoc is the canonical
inventory of actions, events, builders, errors, and methods; this guide explains how those APIs fit
together without duplicating a generated symbol table.
Find the right API
AmiClientowns connection, authentication, subscriptions, action correlation, and shutdown.actioncontains typed AMI actions. Usesendfor one response andsend_collectingfor Asterisk actions that terminate with a completion event.AmiEventcontains modeled events and retains unknown events for forward-compatible handling.AmiResponseexposes parsed response fields and output fromResponse: Follows.
Start with connection and authentication, then use events for subscription and lag behavior. The crate examples show complete Tokio programs.