enniel / ami Goto Github PK
View Code? Open in Web Editor NEWintegration asterisk manager interface (AMI) in laravel
License: MIT License
integration asterisk manager interface (AMI) in laravel
License: MIT License
Awesome work! Congrats!
Add examples like this in docs, it could save a lot of time!
Make a call to "SIP/1001" and send it to context "your-context"
php artisan ami:action Originate --arguments=Channel:SIP/1001 --arguments=Context:your-context --arguments=Exten:s --arguments=Priority:1 --arguments=CallerID:01010101 --arguments=Async:true
Tested on Asterisk 13.1 - Ubuntu 16.04 and works great!
Tks a lot!
hi i congratulate you for the ami package
But I found a little bug in it when i use Send ami action with this code it dont send action to asterisk
Artisan::call('ami:action', [
'action' => action,
'--arguments' => [
key => value
...
]
]);
but with this one it send as expected , mind the colon between key and the value
Artisan::call('ami:action', [
'action' => action,
'--arguments' => [
key : value
...
]
]);
Hi @enniel, I don't know if I'm doing something wrong or is just an issue.
I'm running the next code:
$algo = Artisan::call('ami:action', [
'action' => 'ConfbridgeList',
'--arguments' => [
'ActionID' => '1',
'Conference' => $extension
]
]);
dd($algo);
If the conference exist $algo equals 0 and if the conference don't exist the program never reach the dd($algo) statement.
Running the command version in the CLI I get the response succes if the conference exists, but when the conference don't exist I get nothing returned :(.
P.D: Sorry for my english, trying to improve ๐
Add support for using this package without Laravel
Add logging in the file, if command started not in the console.
Please provide full documentation so that user can understand about all actions and how to use it.
Hello. How use EventListener for ami.config file?
'events' => [
'AGIExec' => [
],
'AgentConnect' => [
],
'AgentComplete' => [
],
'Agentlogin' => [
],
I tried
'Agentlogin' => [
App\Listeners\Test::class
],
But not worked
I'm trying to install this pakage on a Laravel 5.6 and i'm encountering some warnings and errors :
[ErrorException] file_get_contents(/var/www/totem.fftp/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/vendor/jackkum/phppdu/PDU.php): failed to open stream: No such file or directory
Thank in advance
Integration with laravel notifications.
When the ami:listen command is running it stops if an ami action is run.
I have found the line $this->stop that follows the response inside the Client method in AmiAction.php
If I comment this line out my ami:listen command keeps running as I need it to. Is there any detrimental effect to doing this please? Is this a bug?
Many thanks
Remove packages illuminate/support, illuminate/config and mb_string or replace them.
Hi,
Fire method is not compatible anymore with Laravel 5.8.
You need to replace it with dispatch().
Regards.
Hi, do you have any snippets on how to send action thru this?
Thanks to author it is one of good solution I have seen.
During usage we faced to issue with time out.
We using from cli and it is working fine, but during usage from Laraverl controller we faced to timeout on response. We seen our request in Asterisk side (enabled debug in manager,conf)
== Manager 'komil' logged on from 10.154.30.20
<-- Examining AMI event: -->
Event: SuccessfulAuth
Privilege: security,all
SequenceNumber: 68
File: manager.c
Line: 1854
Func: manager_default_msg_cb
EventTV: 2019-03-20T22:45:31.819+0000
Severity: Informational
Service: AMI
EventVersion: 1
AccountID: komil
SessionID: 0x7f203c000960
LocalAddress: IPV4/TCP/0.0.0.0/5038
RemoteAddress: IPV4/TCP/10.154.30.20/51804
UsingPassword: 0
SessionTV: 2019-03-20T22:45:31.819+0000
Our code on controller:
$result = Artisan::call('ami:cli', [
'command' => 'queue show',
'--autoclose' => true,
]);
return response()->json($result);
Add base events: started, closed and etc.
have you planned to update this package for Laravel 6 compatibility ?
hi , thank for the package
i have some problems with how to display all events from a controller to my view
when i'm trying i get a Maximum execution time of 30 seconds exceeded error
PS: Sorry for my english
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.