Closed alepolidori closed 6 years ago
test
in 7.4.1708/nethesis-testing
:
in 7.4.1708/nethesis-upgrades
:
in 7.4.1708/nethesis-upgrades
:
nethserver-nethvoice14-14.1.13-1.ns7.noarch.rpm patch FreePBX framework and now is possible to include /etc/freepbx.conf in programs launched with PHP 5.4 without errors. This temporary solve this bug.
How to test: nethserver-nethvoice14-14.1.13-1.ns7.noarch.rpm patch the framework to avoid the error. By itself it is enough to temporary fix the issue, but also with it isn't easy to understand if correct version of PHP is used. So, for testing, revert the patch with following command, answering 'y' when it ask to reverse:
# /usr/bin/patch -p0 /var/www/html/freepbx/admin/libraries/Composer/vendor/symfony/translation/Translator.php < /usr/src/nethvoice/5406.patch
patching file /var/www/html/freepbx/admin/libraries/Composer/vendor/symfony/translation/Translator.php
Reversed (or previously applied) patch detected! Assume -R? [n] y
now you can verify that loading /etc/freepbx.conf fails with php 5.4
# php /etc/freepbx.conf
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
install nethserver-freepbx that sets PHP 5.6 SCL path https://github.com/NethServer/dev/issues/5499
enable AGI debug with this command in asterisk console: agi set debug on
test AGI from nethserver-nethvoice14
[x] attendedtransfer-rec-restart.php
[x] inboundlookup.php - check name resolution in inbound calls
[x] nethcqr.php - check that nethcqr works
[x] offhour.php - check that CTI offhour works
[x] outboundlookup.php - check that name resolution for outbound calls works
[x] page.agi - check paging
[x] parkfetch.agi - check parkings
[x] returnontransfer_setContext.php - check return on transfer works
[x] user_login_out.agi
test AGI from neth-hotel
CTI Actions - fresh install NethCTI
test nethserver-phonebook-mysql scripts on NethVoice 11 and NethVoice14 update packages and wait for cron to execute phonebook sync (or change cron script time, but let cron launch the script to check environment)
in 7.4.1708/nethesis-testing
:
in 7.4.1708/nethesis-testing
:
in 7.4.1708/nethesis-testing
:
in 7.4.1708/nethesis-testing
:
Test: "check how to test" Pay attention to errors on debug and that AGI really works, because using PHP 5.6 instead of 5.4 could broke something
in 7.4.1708/nethesis-testing
:
in 7.4.1708/nethesis-testing
:
in 7.5.1804/nethesis-testing
:
in 7.5.1804/nethesis-testing
:
in 7.5.1804/nethesis-testing
:
in 7.5.1804/nethesis-testing
:
in 7.5.1804/nethesis-testing
:
in 7.5.1804/nethesis-testing
:
in 7.5.1804/nethesis-upgrades
:
in 7.5.1804/nethesis-upgrades
:
in 7.5.1804/nethesis-testing
:
in 7.5.1804/nethesis-upgrades
:
in 7.5.1804/nethesis-testing
:
in 7.5.1804/nethesis-testing
:
in 7.5.1804/nethesis-testing
:
in 7.5.1804/nethesis-testing
:
in 7.5.1804/nethesis-testing
:
in 7.5.1804/nethesis-upgrades
:
all ours php scripts and AGI load FreePBX environment (mainly for DB queries) by including /etc/freepbx.conf that isn't a configuration file but is a php that do stuff. All scripts and AGI uses system PHP (5.4) instead of SCL (5.6)
Steps to reproduce
scl enable rh-php56 -- fwconsole ma update framework
php /etc/freepbx.conf
Expected behavior
Actual behavior
All agi and scripts that include this file withouth calling proper php version has the same problem.
Components AGI has been fixed calling env php. asterisk env will have php scl path (see changes in nethserver-freepbx) AGI:
Actions:
Others: