You must access the cdr through the asterisk management portal!

CDR does work, however, if you leave the web browser on the CDR page for a while (not sure of the exact time) and then simply hit “Search”, I get “YOU MUST ACCESS THE CDR THROUGH THE ASTERISK MANAGEMENT PORTAL!”. If I switch to a different page and come right back its fine.

Its been doing this since the day it was installed. Anyone have any idea where to even start?

-Ted-

What version of asterisk and FreePBX are you using?

Something must unset AMP_SQL.

This is $_SESSION when its working:

AMP_user|O:7:“ampuser”:6:{s:8:“username”;s:12:“asteriskuser”;s:9:"_password";b:0;s:15:"_extension_high";s:0:"";s:14:"_extension_low";s:0:"";s:9:"_deptname";s:0:"";s:9:"_sections";a:1:{i:0;s:1:"*";}}pr_sql_export|s:200:“SELECT calldate, channel, src, clid, dst, disposition, duration FROM cdr WHERE UNIX_TIMESTAMP(calldate) >= UNIX_TIMESTAMP(‘2009-03-01’) AND src = ‘NeverReturnAnything’ AND src = ‘NeverReturnAnything’”;calculated_max_calls|i:7;netstats|a:5:{s:15:"__tmp1290634252";a:2:{s:2:“tx”;a:1:{i:1237607927;s:1:“0”;}s:2:“rx”;a:1:{i:1237607927;s:1:“0”;}}s:4:“eth0”;a:2:{s:2:“tx”;a:1:{i:1237607927;s:9:“303161223”;}s:2:“rx”;a:1:{i:1237607927;s:9:“282702482”;}}s:4:“eth1”;a:2:{s:2:“tx”;a:1:{i:1237607927;s:10:“1660696718”;}s:2:“rx”;a:1:{i:1237607927;s:10:“1283702808”;}}s:5:“bond0”;a:2:{s:2:“tx”;a:1:{i:1237607927;s:10:“1963857941”;}s:2:“rx”;a:1:{i:1237607927;s:10:“1566405290”;}}s:6:“vlan20”;a:2:{s:2:“tx”;a:1:{i:1237607927;s:10:“1890437329”;}s:2:“rx”;a:1:{i:1237607927;s:10:“1417814322”;}}}AMP_SQL|s:0:"";

This is $_SESSION once it dies:

AMP_user|O:7:“ampuser”:6:{s:8:“username”;s:12:“asteriskuser”;s:9:"_password";b:0;s:15:"_extension_high";s:0:"";s:14:"_extension_low";s:0:"";s:9:"_deptname";s:0:"";s:9:"_sections";a:1:{i:0;s:1:"*";}}pr_sql_export|s:200:“SELECT calldate, channel, src, clid, dst, disposition, duration FROM cdr WHERE UNIX_TIMESTAMP(calldate) >= UNIX_TIMESTAMP(‘2009-03-01’) AND src = ‘NeverReturnAnything’ AND src = ‘NeverReturnAnything’”;

To start with its a Trixbox distro v2.6.2.2.

Asterisk 1.4.22-3 RPM by [email protected], Copyright © 1999 - 2008 Digium, Inc. and others.

FreePBX is 2.5 though 2.4 was having the same trouble.

I had the same problem, so I check apache logs

[error] [client xx.xx.xx.xx] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session)
[error] [client xx.xx.xx.xx] PHP Warning: Unknown: open(/var/lib/php/session/ , O_RDWR) failed: Permission denied

and permissions on that folder

ll /var/lib/php/session

drwxrwx— 2 root apache 4096 … session

I change the group for asterisk and works fine!

ll /var/lib/php/session

drwxrwx— 2 root asterisk 4096 … session

Well, in my case!! I set the user asterisk on apache configuration!!

Well, I don’t have those error messages, my directory permissions are already:

drwxrwx— 2 asterisk apache 4096 Nov 19 2008 session

And my httpd.conf already are:

User asterisk
Group asterisk

and I have always had this problem.

please mention login http://192.168.0.206/recordings/index.php default password
freePBX User Portal box open
login
password
use your Vaoicemail mailbox and password

verssion freePBX 2.5

please help me

You probably want to start a new topic for this.