wehup/asterisk-ami

Wehup Asterisk AMI

dev-master 2022-12-08 01:51 UTC

This package is auto-updated.

Last update: 2024-12-08 06:02:59 UTC


README

PHP 5.3 abstraction of Asterisk 1.6 AMI

Installation

Add to your composer.json:

    {"require":{
        "wehup/asterisk-ami": "dev-master"
    }}

Run:

    composer install

Usage

    // Create the LoginRequest
    $loginRequest = new \Wehup\AMI\Request\LoginRequest('username', 'password');
    
    // Create the Manager
    $manager = new \Wehup\AMI\Manager('127.0.0.1', 8088, 'asterisk', $loginRequest);
    
    // Create the request
    $request = new \Wehup\AMI\Request\PingRequest();
    
    // Send request
    $response = $manager->send($request);

Supported commands

Are you missing support to an useful command? Open an issue, so we can add it.