1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! 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
pub use ;
pub use ;
pub use ;
pub use AmiEvent;
pub use ;
pub use ;