Hi,
This may not be the appropiate list, but I have found the following. This may be fixed in a development version. If so please tell me where to put it.
I am running Freepbx 2.1beta2 (Suse linux 10.0, php 5.04)
I have found after some debugging that the reason the compare calls and such under reports did not work, is that the session variables where not being set properly.
in the code their are still quite a few HTTP_SESSION_VARS being used. The AMP_SQL variable was not being set, this caused the sql to have NeverReturnAnything added to the end. This meant that other than the Call logs under reports none of them worked. I changed
call-comp.php:$AMP_CLAUSE = $HTTP_SESSION_VARS[‘AMP_SQL’];
To
call-comp.php:$AMP_CLAUSE = $_SESSION[‘AMP_SQL’];
And that fixed it.
There are also some path issues
/srv/www/htdocs/admin/cdr/images/corner-br.png
should be
/srv/www/htdocs/admin/cdr/css/images/corner-br.png
The list below would also be affected.
aps-hst1:/var/www/htdocs/admin/cdr # grep AMP_SQL *
call-comp.php:$AMP_CLAUSE = $HTTP_SESSION_VARS[‘AMP_SQL’];
call-daily-load.php:$AMP_CLAUSE = $HTTP_SESSION_VARS[‘AMP_SQL’];
call-last-month.php:$AMP_CLAUSE = $HTTP_SESSION_VARS[‘AMP_SQL’];
graph_hourdetail.php:$AMP_CLAUSE = $HTTP_SESSION_VARS[‘AMP_SQL’];
graph_pie.php: $AMP_CLAUSE = $HTTP_SESSION_VARS[‘AMP_SQL’];
graph_stat.php:$AMP_CLAUSE = $HTTP_SESSION_VARS[‘AMP_SQL’];
graph_statbar.php:$AMP_CLAUSE = $HTTP_SESSION_VARS[‘AMP_SQL’];
Harm
:shock: