wehup / asterisk-ami
Wehup Asterisk AMI
dev-master
2022-12-08 01:51 UTC
Requires
- php: >=5.3.3
- guzzle/http: 3.7.*
- symfony/event-dispatcher: ~2.7
This package is auto-updated.
Last update: 2024-10-08 05:42:04 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
- 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.