No-Admin User can´t see all CDR record

lemuelgv

Joined
Sep 9, 2008
Messages
73
Likes
0
Points
0
#1
Hi everybody


How I can see all CDR records in the elastix web page with user different that admin

I´m using elastix 1.3.2


Regards
 

jgutierrez

Joined
Feb 28, 2008
Messages
5,737
Likes
0
Points
0
#2
It is very simple:

0. Backup /var/www/html/libs/paloSantoCDR.class.php
1. Edit /var/www/html/libs/paloSantoCDR.class.php
2. Find the function obtenerCDRs
3. Find the following section:
Code:
if(!empty($calltype) && $calltype=="incoming") $strWhere .= " AND channel like '%zap%' ";
if(!empty($extension)) $strWhere .= " AND (src='$extension' OR dst='$extension') ";
4. Leave it like this:
Code:
if(!empty($calltype) && $calltype=="incoming") $strWhere .= " AND channel like '%zap%' ";
if(!empty($extension) && $extension!="503")
  $strWhere .= " AND (src='$extension' OR dst='$extension') ";
In this case, any user that has associated extension 503 will be able to see all CDR data
 

lemuelgv

Joined
Sep 9, 2008
Messages
73
Likes
0
Points
0
#3
thanks jgutierrez

Now I can see the all CDR
 

oldrags

Joined
Dec 3, 2010
Messages
13
Likes
0
Points
0
#4
thanks!
also worked on my Elastix 2.0
 

maikcat

Joined
Apr 24, 2009
Messages
38
Likes
0
Points
0
#5
in elastix 2.2 function exists but with no if statements.. :S


Michael.
 

Members online

No members online now.

Latest posts

Forum statistics

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