Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

event listen #14

Closed
scalpovich opened this issue Apr 30, 2017 · 4 comments
Closed

event listen #14

scalpovich opened this issue Apr 30, 2017 · 4 comments

Comments

@scalpovich
Copy link

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

@enniel
Copy link
Owner

enniel commented Apr 30, 2017

You can show your code?

@scalpovich
Copy link
Author

Route::get('/channels', function () {
$channels = Artisan::call('ami:cli', [
'command' => 'core show channels',
'--autoclose' => true,
]);
//dd(Artisan::output());
return dd(Artisan::output());
});

@enniel
Copy link
Owner

enniel commented May 2, 2017

You can't use this AMI command in http. The commands use async library and tcp protocol for connection with Asterisk AMI, use this in console commands, jobs or schedule commands.

@scalpovich
Copy link
Author

thank you for the help

@enniel enniel closed this as completed May 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants