Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Getting Started

Add asterisk-rs to your project:

[dependencies]
asterisk-rs = "0.2"

Or pick individual protocols:

[dependencies]
asterisk-rs = { version = "0.2", default-features = false, features = ["ami"] }

Or use crates directly:

[dependencies]
asterisk-rs-ami = "0.2"

Protocols

ProtocolPortTransportCrate
AMI5038TCPasterisk-rs-ami
AGI4573TCP (FastAGI)asterisk-rs-agi
ARI8088HTTP + WebSocketasterisk-rs-ari

Domain Types

Common Asterisk constants are available as typed enums in asterisk_rs_core::types: hangup causes, channel states, device states, dial statuses, and more. See Domain Types for the full list.

Requirements

  • Rust 1.83+ (for async fn in trait / RPITIT)
  • tokio runtime
  • A running Asterisk instance for integration