rayansys / ami_listener
Event listener for Asterisk Manager Interface
1.3.1
2023-04-26 07:05 UTC
Requires
- php: >=5.4.0
- workerman/workerman: 4.0
README
Requires
PHP 5.4
Installation
composer require rayansys/AMIListener
Basic Usage
<?php use AMIListener\AMIListener; require_once __DIR__ . '/vendor/autoload.php'; $ami = new AMIListener("username","secret","127.0.0.1",5038); $ami->addListener(function($parameter){ print_r($parameter); }); $ami->start();
Available commands
php start.php start
php start.php start -d
php start.php status
php start.php status -d
php start.php connections
php start.php stop
php start.php stop -g
php start.php restart
php start.php reload
php start.php reload -g