Skip to main content

Crate asterisk_rs_ari

Crate asterisk_rs_ari 

Source
Expand description

Async Rust client for the Asterisk REST Interface (ARI).

ARI provides full call control through a REST API combined with a WebSocket event stream for Stasis applications.

Re-exports§

pub use client::AriClient;
pub use config::AriConfig;
pub use config::TransportMode;
pub use error::AriError;
pub use event::AriEvent;
pub use event::AriMessage;
pub use pending::PendingBridge;
pub use pending::PendingChannel;
pub use pending::PendingPlayback;

Modules§

client
Main ARI client combining REST API and WebSocket events.
config
ARI client configuration and builder.
error
ARI-specific error types.
event
Typed ARI events deserialized from WebSocket JSON.
media
WebSocket media channel driver for exchanging audio with Asterisk.
pending
resources
ari resource operations.
server
ARI outbound WebSocket server — accepts incoming connections from Asterisk.
websocket
WebSocket event listener with automatic reconnection.