Timeout on answer
Opened this issue · 0 comments
komilgulboev commented
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);