soap/laravel-ami

Asterisk Manager Interface integration Laravel package

v0.0.2 2023-04-28 08:11 UTC

This package is auto-updated.

Last update: 2024-10-28 12:39:21 UTC


README

Latest Stable Version Latest Unstable Version run-tests Check & fix styling Total Downloads

Laravel-Ami provides Asterisk interface for laravel via Asterisk Manager Interface. I develop this package to use in my virtual PBX and contact center applications. So all use cases come from my application requirements. Any discussion on features are welcome.

Installation

You can install the package via composer:

composer require soap/laravel-ami

You can publish the config file with:

php artisan vendor:publish --tag="ami-config"

Optionally, you can publish the views using

This is the contents of the published config file:

return [
    'connections' => [
        'default' => [
            'uri' => 'user:secret@host:port',
        ]
    ]
];

Usage

Atisan Command

php artisan ami:cli "pjsip show aors"

Above cli command use default uri provided in app/config/ami.php. You can override it with --uri user:secret@host:port.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.