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

Read timeout in ClientImpl.php on line 422 because of ResponseMessage being considered as a List #182

Open
kettenbach-it opened this issue Mar 26, 2019 · 2 comments

Comments

@kettenbach-it
Copy link

If you run:

$response = $pamiClient->send(new CommandAction('database show blacklist', ''));

you'll get a read timeout in ClientImpl.php on line 422.

The reason is that in PAMI\Message\Response\ResponseMessage.php in line 137 the response of asterisk to the "database show ...." contains the string "Message: Command output follows" and there is considered as a list while it's only some raw output.
The message is therefore not considered completed and "getRelated()" won't return anything and therefore send() will time out.

This seems to be a bug.
I thin it's to greedy to scan the message for the word "follow" since this could be in any kind of message.

dkgroot added a commit to chan-sccp/PAMI that referenced this issue Apr 25, 2019
Update Tests to Reflect new CommandResponse Handling

references (marcelog#182)
references (marcelog#88)
@alexpts
Copy link

alexpts commented Nov 6, 2019

+1
@marcelog can you fix it?

@vovizzz
Copy link

vovizzz commented May 11, 2020

+1

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

3 participants