welltime / phpagi

PHPAGI is a PHP class for the Asterisk Gateway Interface. The package is available for use and distribution under the terms of the GNU Public License.
GNU Lesser General Public License v2.1
58 stars 93 forks source link

Fixed Asterisk 14+ event formatting issues #32

Open predator314 opened 1 year ago

predator314 commented 1 year ago

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.