Skip to content

Latest commit

 

History

92 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

PHP 5.3 abstraction of Asterisk 1.6 AMI

Resources

Stars

1 star

Watchers

1 watching

Forks

Used by

Contributors

Languages