sábado, 1 de diciembre de 2012

you must access the cdr through the asterisk management portal

Este tipo de error se da por diferentes motivos, aquí dejo algunas soluciones dependiendo de la situación que motivo el fallo:

1.- Hace unos días que actualice una central telefónica IP basada es Asterisk, luego de reiniciarla para que tome el nuevo kernel cuando quería visualizar el reporte de llamadas me daba el siguiente error:
YOU MUST ACCESS THE CDR THROUGH THE ASTERISK MANAGEMENT PORTAL!
Luego de buscar un rato encontré la solución en  un blog  que brindan soporte, el problema viene con los permisos de las sesiones php, las cuales deben ser propietarias del usuario asterisk, para cambiarlo hay que colocar el siguiente comando:
chown asterisk /var/lib/php/session
Eso es todo, al momento de volver a cargar los reportes, los mismos se ven normalmente.

2.- Otro Caso:
After doing a clean install, if you log on to TrixBox server web interface and try to view the call logs and you see:

YOU MUST ACCESS THE CDR THROUGH THE ASTERISK MANAGEMENT PORTAL!

Log on to you server using the command line and run the commands below.

service memcached start
chkconfig --add memcahced
chkconfig memcached on

The memcache module is not set to load during system startup. The above commands turns on the service and sets it to load during system startup.

3.- Otro Caso Mas:
Trixbox – PHP bug, mananagment portal error
I’ve got a clean Trixbox CE 2.8.0.4 and the Reports in FreePBX has an PHP Bug.
“YOU MUST ACCESS THE CDR THROUGH THE ASTERISK MANAGEMENT PORTAL!” is shown.
fix below…
I have found the resolution it seems that the memcache module that is used to hold the session information is not started at bootup
It can be started Manually by
/etc/init.d/memcached start
on my system
chkconfig --list | grep mem
shows
memcached 0:off 1:off 2:off 3:off 4:off 5:off 6:off
memcached needs to be running at runlevels 2,3,4 & 5
do issue the following command
chkconfig memcached on
chkconfig –list | grep mem
now shows
memcached 0:off 1:off 2:on 3:on 4:on 5:on 6:off
All good— CDR’s should work fine now
so you need to issue the following commands
/etc/init.d/memcached start
chkconfig –add memcached
chkconfig memcached on


4.- Otro caso mas:
This occurs when the php session save path is not writable by the httpd process.
1. Determine the save path:
grep save_path /etc/php.ini

should result in something like:
session.save_path = /var/lib/php/session

2. Fix ownership
For the identified directory, change the ownership of that to be asterisk:
chown asterisk /var/lib/php/session


Adicional para quienes estan conectando sus tarjetas primarias a algun proveedor les dejo el grafico con la pineria de un cable E1 Cross.



saludos 

Miguel


No hay comentarios.: