Skip to content

PHP 5.3 abstraction of Asterisk 1.6 AMI

License

Notifications You must be signed in to change notification settings

wehup/asterisk-ami

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f36bef6 · Dec 8, 2022

History

92 Commits
Apr 30, 2022
Apr 30, 2022
Dec 3, 2013
Dec 3, 2013
Dec 8, 2022
May 8, 2021
Dec 23, 2013

Repository files navigation

Asterisk AMI

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.