asterisk-rs-agi 0.8.0

Async Rust FastAGI server for Asterisk Gateway Interface
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::channel::AgiChannel;
use crate::request::AgiRequest;

/// trait for handling incoming AGI connections
pub trait AgiHandler: Send + Sync + 'static {
    /// handle an AGI session
    fn handle(
        &self,
        request: AgiRequest,
        channel: AgiChannel,
    ) -> impl std::future::Future<Output = crate::error::Result<()>> + Send;
}