All Projects → enniel → ami

enniel / ami

Licence: MIT license
integration asterisk manager interface (AMI) in laravel

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to ami

Astive
Media controller for Asterisk PBX (FastAGI Server)
Stars: ✭ 37 (+48%)
Mutual labels:  ami, asterisk
goami
Asterisk Manager Interface (AMI) client in Go
Stars: ✭ 36 (+44%)
Mutual labels:  ami, asterisk
ya-node-asterisk
node.js client library for Asterisk Manager Interface
Stars: ✭ 18 (-28%)
Mutual labels:  ami, asterisk
amiws queue
Asterisk Queues Dashboard with amiws
Stars: ✭ 40 (+60%)
Mutual labels:  ami, asterisk
callme
No description or website provided.
Stars: ✭ 45 (+80%)
Mutual labels:  ami, asterisk
Python Ami
Python AMI Client
Stars: ✭ 70 (+180%)
Mutual labels:  ami, asterisk
Pami
PHP Asterisk Manager Interface ( AMI ) supports synchronous command ( action )/ responses and asynchronous events using the pattern observer-listener. Supports commands with responses with multiple events. Very suitable for development of operator consoles and / or asterisk / channels / peers monitoring through SOA, etc
Stars: ✭ 351 (+1304%)
Mutual labels:  ami, asterisk
Starpy
Mirror of Python twisted library for AMI and FastAGI: No pull requests here please. Use Gerrit: https://gerrit.asterisk.org
Stars: ✭ 77 (+208%)
Mutual labels:  ami, asterisk
Nami
Asterisk manager interface (ami) client for nodejs
Stars: ✭ 94 (+276%)
Mutual labels:  ami, asterisk
amiws
Asterisk Management Interface (AMI) to Web-socket proxy
Stars: ✭ 60 (+140%)
Mutual labels:  ami, asterisk
PBXWebPhone
WebRTC based webphone for Vicidial
Stars: ✭ 28 (+12%)
Mutual labels:  asterisk
asterisk-ami-client
Asterisk AMI Client for NodeJS (ES2015)
Stars: ✭ 32 (+28%)
Mutual labels:  asterisk
Core
Free, easy to setup PBX for small business based on Asterisk 16 core
Stars: ✭ 190 (+660%)
Mutual labels:  asterisk
Katari
Katari - Python Session Initiated Protocol Framework
Stars: ✭ 29 (+16%)
Mutual labels:  asterisk
circleci-packer-example
Example: packer image builder on CircleCI
Stars: ✭ 20 (-20%)
Mutual labels:  ami
webcdr
☎️ CDR viewer for Asterisk with search, call recording player, bulk downloads, Excel export
Stars: ✭ 54 (+116%)
Mutual labels:  asterisk
asterisklint
Asterisk PBX configuration syntax checker
Stars: ✭ 45 (+80%)
Mutual labels:  asterisk
Astergazer
Combined dialplan and FastAGI services with a visual dialplan constructor for Asterisk PBX
Stars: ✭ 28 (+12%)
Mutual labels:  asterisk
ami-io
Use node.js or io.js to manage Asterisk through AMI
Stars: ✭ 28 (+12%)
Mutual labels:  ami
aws-utils
This repository provides utilities which are used at MiQ.
Stars: ✭ 20 (-20%)
Mutual labels:  ami

Build Status StyleCI

Enniel\Ami

Easy control via asterisk manager interface (AMI).

Installation and configuration

To install as a composer package to be used with Laravel 5, simply run:

composer require "enniel/ami"

Once it's installed, you can register the service provider in config/app.php in the providers array:

'providers' => [
  \Enniel\Ami\Providers\AmiServiceProvider::class,
]

Then publish assets with php artisan vendor:publish. This will add the file config/ami.php.

Usage

Connection options

You are can specify connection parameters for each command.

Option Description
--host Asterisk AMI server host
--port Asterisk AMI server port
--username Asterisk AMI server username
--secret Asterisk AMI server secret

Listen ami events

php artisan ami:listen
Artisan::call('ami:listen');

If would you like to see event log in the console use monitor option

php artisan ami:listen --monitor

Send ami action

php artisan ami:action <action> --arguments=<key>:<value> --arguments=<key>:<value> ...
Artisan::call('ami:action', [
    'action'      => <action>,
    '--arguments' => [
        <key> => <value>
        ...
    ]
]);

Send sms messages using chan dongle

php artisan ami:dongle:sms <phone> <message> <device?>
Artisan::call('ami:dongle:sms', [
    'phone'   => <phone>,
    'message' => <message>,
    'device'  => <device?>,
]);

For sending long messages use pdu mode.

php artisan ami:dongle:sms <phone> <message> <device?> --pdu
Artisan::call('ami:dongle:sms', [
    'phone'   => <phone>,
    'message' => <message>,
    'device'  => <device?>,
    '--pdu'   => true,
]);

Argument device is not required.

Send ussd commands using chan dongle

php artisan ami:dongle:ussd <device> <ussd>
Artisan::call('ami:dongle:ussd', [
    'device' => <device>,
    'ussd'   => <ussd>,
]);

Send ami commands

This command started cli interface for ami. Command attribute is optional.

php artisan ami:cli [command]

Close cli interface after sending command.

php artisan ami:cli [command] --autoclose
Artisan::call('ami:cli', [
    'command'     => [command],
    '--autoclose' => true,
]);

Without Laravel

php ./vendor/bin/ami ami:listen --host=127.0.0.1 --port=5038 --username=username --secret=secret --monitor
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].