Asterisk AGI are currently executed with php 5.4, but that is wrong because FreePBX uses 5.6 from SCL. Starting from FreePBX Framework 14.0.3.2, agi stop working with PHP 5.4 and gave this error:
PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/html/freepbx/admin/libraries/Composer/vendor/symfony/translation/Translator.php on line 90
Whoops\Exception\ErrorException: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in file /var/www/html/freepbx/admin/libraries/Composer/vendor/symfony/translation/Translator.php on line 90
Stack trace:
1. Whoops\Exception\ErrorException->() /var/www/html/freepbx/admin/libraries/Composer/vendor/symfony/translation/Translator.php:90
Steps to reproduce
enter asterisk console asterisk -rvvvvv
enable AGI debug agi set debug on
make a call that uses an agi (parking a call uses an AGI for instance)
Asterisk AGI are currently executed with php 5.4, but that is wrong because FreePBX uses 5.6 from SCL. Starting from FreePBX Framework 14.0.3.2, agi stop working with PHP 5.4 and gave this error:
Steps to reproduce
asterisk -rvvvvv
agi set debug on
Expected behavior
Actual behavior
Components
nethserver-freepbx-14.0.7-1.ns7.noarch
See also
https://github.com/nethesis/dev/issues/5406