PHP 5.3 abstraction of Asterisk 1.6 AMI
Add to your composer.json
:
{"require":{
"wehup/asterisk-ami": "dev-master"
}}
Run:
composer install
// 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);
- Command
- DBDel
- DBDelTree
- DBGet
- DBPut
- Hangup
- ListCommands
- Login
- Ping
- QueueAdd
- QueueRemove
- QueueStatus
- QueuePause
- SIPpeers
- SIPshowpeer
- UserEvent
Are you missing support to an useful command? Open an issue, so we can add it.