logo       

Please confirm Fix? AMP-1.10.008 cdr viewing problem with Fedora 4 & PHP5: msg#00140

telephony.pbx.asterisk.amportal.user

Subject: Please confirm Fix? AMP-1.10.008 cdr viewing problem with Fedora 4 & PHP5

Hi,

I think this is the source of many peoples problems with Fedora Core 4 and
maybe some SUSE installations. It would be safer to say that the problem is
with PHP5 being installed on these systems.

When clicking on 'Reports' in the AMPortal, the CDRs should be displayed in
the middle to the bottom of the screen. If however, you get a message in red
stating that 'YOu MUST ACCESS THE CDR THROUGHT THE ASTERISK MANAGEMENT
PORTAL!' ; and,
PHP5 is installed, the current fix located at
http://sourceforge.net/tracker/?group_id=121515&atid=690572&func=detail&aid=1172758
is not so fantastic. (It didn't work for me on my test system on the laptop
running SUSE Professional 9.3 - and I wasn't game to test it on the
production FC4 system or the dev system running the same distro)

After scouring the web for permission problems relating to PHP and apache and
running as the user 'asterisk' I came across this page
http://www.php-bar.de/hilfen/manual/php/en/language.variables.predefined.php?phpbar=2c7e2ab7a27aa16ba96339d697ae6eed
which states that as of PHP-5.0.0, HTTP_*_VARS have been deprecated.
So for the line in {AMP_INSTALL_DIR}/cdr/cdr.php (approx line 8)
change
$AMP_CLAUSE=$HTTP_SESSION_VARS['AMP_SQL'];
to
$AMP_CLAUSE=$_SESSION['AMP_SQL']

save it,
restart apache, and viola.

It worked for me.

Could someone with more PHP experience than me and maintainer of the project
confirm these and update the docs at their earliest convenience.

Yours sincerely
CM

P.S. I'm also having a similar problem with the extensions.php page for
adding an extension and not being able to connect to the asterisk manager
with an error number of (13). I can put the same lines of PHP code into a
local file and run them from the prompt without any problems. Therefore, I
presume a similar PHP5 problem exists for the current version.

Contributors to this project: You've done an excellent job thus far, keep up
the good work.



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise