asterisk-rs-ari
Async Rust client for the Asterisk REST Interface (ARI). Build Stasis applications with full call control over REST + WebSocket.
Example
use ;
use AriEvent;
use ChannelHandle;
async
Capabilities
- REST client and WebSocket listener covering the full Asterisk 23 ARI surface
- Typed events with metadata (application, timestamp, asterisk_id) on every event
- Filtered subscriptions -- receive only events you care about
- Resource handles for channels, bridges, playbacks, recordings
- System management -- modules, logging, config, global variables
- URL-safe query encoding for user-provided values
- HTTP connect and request timeouts
- Automatic WebSocket reconnection
#[non_exhaustive]enums -- new variants won't break your code
Documentation
Part of asterisk-rs. MSRV 1.83. MIT/Apache-2.0.