asterisk-rs-ami 0.7.2

Async Rust client for the Asterisk Manager Interface (AMI)
Documentation
//! Async Rust client for the Asterisk Manager Interface (AMI).
//!
//! AMI is a TCP-based protocol for monitoring and controlling Asterisk PBX.
//! This crate provides a fully async client with typed actions, events,
//! automatic reconnection, and MD5 challenge-response authentication.
//!
//! # Quick Start
//!
//! ```rust,no_run
//! use asterisk_rs_ami::AmiClient;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//!     let client = AmiClient::builder()
//!         .host("127.0.0.1")
//!         .port(5038)
//!         .credentials("admin", "secret")
//!         .build()
//!         .await?;
//!
//!     let response = client.ping().await?;
//!     println!("pong: {:?}", response);
//!     Ok(())
//! }
//! ```

pub mod action;
pub mod client;
pub mod codec;
pub(crate) mod connection;
pub mod error;
pub mod event;
pub mod response;
pub mod tracker;

pub use client::{AmiClient, AmiClientBuilder};
pub use codec::{AmiCodec, RawAmiMessage};
pub use error::AmiError;
pub use event::AmiEvent;
pub use response::{AmiResponse, EventListResponse, MAX_EVENT_LIST_EVENTS};
pub use tracker::{CallTracker, CompletedCall};