V. 1.6-12 Not showing Outgoing recordings again

agidi

Joined
Jan 13, 2008
Messages
152
Likes
0
Points
0
#1
Hello

I just found an issue on a recent install.

I have a Elastix 1.5.2-2 that's showing outgoing calls on the monitoring tab, with no issues :)

I just installed 2 Elastix 1.6-12 and enabled always recording, and they are not showing on the monitoring tab. :(

We have had this issue fixed, any tips to fixing it on Elastix 1.6-12?

thanks, please let me know.
 

agidi

Joined
Jan 13, 2008
Messages
152
Likes
0
Points
0
#2
I compared the var/.../asterisk/modules/monitoring/index.php from 1.5.2 and 1.6

There are a few differences, but the part that orders outgoing calls is identical

Where else could I look for the bug?
thanks
 

fricci

Joined
Jun 18, 2008
Messages
28
Likes
0
Points
0
#3
I noticed the same problem. What I was able to identify is this:

The records exist in the spool directory
The entries exist in the CDR DB

within the /var/www/html/modules/monitoring/index.php file I noticed this:

from my very basic PHP knowledge, they first find the files, but then they compare the files with the CDR records in the database. In my case I was missing all outgoing calls from the report or list, and specifically on that filter, the select statement includes the date, but it was format in the wrong format. Originaly it's like this:

Code:
            //OUT405-20080620-095526-1213973725.84.wav
            else if (!$llamada_outgoing && ereg("^OUT$extension\-([[:digit:]]+)\-([[:digit:]]+)\-([[:digit:]]+)\.([[:digit:]]+)\.[wav|WAV|gsm]",$archivo,$regs))
            {
                //formar la fecha y la hora
                $time = $regs[2];

                $fecha=substr($regs[1], 0, 4).'-'.substr($regs[1], 4, 2).'-'.substr($regs[1], 6, 2);
                $hora=substr($regs[2], 0, 2).':'.substr($regs[2], 2, 2).':'.substr($regs[2], 4, 2);

 $calldate = date("Y-m-d H:i:s", $time);
but the $calldate returns something completelly wrong so the file=cdr never matches. I noticed in other filters the $calldate is built differently so I change:

FROM:

Code:
 $calldate = date("Y-m-d H:i:s", $time);
TO:
Code:
$calldate="$fecha $hora";
Now I can get the outgoing recordings...but still missing a lot of entries...not sure what, or why.
 

damarist

Joined
Sep 2, 2008
Messages
10
Likes
0
Points
0
#4
Re: Re:V. 1.6-12 Not showing Outgoing recordings again

Hola.

Tuve este problema con el Elastix 1.6.2-2
Asi que este hilo me ayudó a resolverlo (gracias por el aporte :laugh: ), sin embargo tuve que agregar un par de lineas extra y ahora ya funciona.

El bloque quedo como sigue:
------------- /var/www/html/modules/monitoring/index.php ------------------

//OUT405-20080620-095526-1213973725.84.wav
else if (!$llamada_outgoing && ereg("^OUT$extension\-([[:digit:]]+)\-([[:digit:]]+)\-([[:digit:]]+)\.([[:digit:]]+)\.[wav|WAV|gsm]",$archivo,$regs))
{
//formar la fecha y la hora
$time = $regs[3];
// Lineas Agregadas ----------------------
$fecha=substr($regs[1], 0, 4).'-'.substr($regs[1], 4, 2).'-'.substr($regs[1], 6, 2);
$hora=substr($regs[2], 0, 2).':'.substr($regs[2], 2, 2).':'.substr($regs[2], 4, 2);
// Lineas Agregadas ----------------------
// Este es el cambio sugerido en el post -----------------------------
$calldate="$fecha $hora";
// Este es el cambio sugerido en el post -----------------------------
//busco por fecha y extension destino
//ya tengo el archivo, busco el correspondiente en el registro de llamadas - con el timestamp y la extension
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,886
Members
17,563
Latest member
dineshr
Top