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

Fixed Asterisk 14+ event formatting issues #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

predator314
Copy link

Added limit to explode commands as any returned data containing additional : was being exploded to additional array elements and lost. ie. "Output: Something: Value" would only return "Something"

Removed conditions that only non-blank lines are returned in data. This was making returned data differ from what AGI actually returns and didn't match Asterisk 13- results.

Remove condition that data is only collected and returned if first Output: line is non-blank. This was causing any commands issued that returned a blank line on line 1 to return no data. ie.
"Action: Command
Command: parking show default"
would return no data since line 1 is always blank.

Added limit to explode commands as any returned data containing additional : was being exploded to additional array elements and lost.
ie. "Output: Something: Value" would only return "Something"

Removed conditions that only non-blank lines are returned in data. This was making returned data differ from what AGI actually returns and didn't match Asterisk 13- results.

Remove condition that data is only collected and returned if first Output: line is non-blank. This was causing any command issues that returned a blank line on line 1 to return no data.
ie.
"Action: Command
Command: parking show default"
would return no data since line 1 is always blank.
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

Successfully merging this pull request may close these issues.

1 participant