CDR reports for users and group permissions

Joined
May 28, 2009
Messages
59
Points
0
Hi,

I am having problems with CDR reports for my Group. I have mangers who want to view the daily calls made. I have created a users in a management group to view CDR Report. The problem is they can only view their extensions call made on the date range they select. I want them to be able to view all call made that day on all extension.

If i put them in the admin group they can view all calls, But obviously I don't want them to have access to all the features of Elastix. Any help on this will be appreciated on enabling them to view all calls made.

Also I am wondering if it has to do with the latest Elastix update I am using Elastix 1.6-14.

Thanks.
 
Joined
Jul 27, 2010
Messages
2
Points
0
Hi Folks

Disaster, did you every find a solution for this problem?

I'm having the same problem on my side, created a management group, and only allowed for Monitoring in the group permissions.

The problem, as you described, is that adding users means that the new user is associated to 1 extension.

So when you login with that user, you're only able to see call logs for the associated extension.

Now i would like to allow this user to see all calls (not only the associated extension), is there a known work around?

BTW, i'm using Elastix 1.6-12
 
Joined
May 28, 2009
Messages
59
Points
0
I ended up using free pbx and gave them permissions to see only the reports.
 
Joined
Jul 27, 2010
Messages
2
Points
0
Thanks for the link jastele.

MrEmbedded solution didn't work for me, but it did point me in the right direction.

I've added the following lines to /var/www/html/modules/monitoring/index.php

85 if ($_SESSION['elastix_user'] == 'USERNAMEHERE')
86 $esAdministrador = TRUE;

It's a hack, essentially making the users a administrator for the monitoring module.
Which allows "USERNAMEHERE" access to all monitored call recordings.

- Stelio
 
Joined
Jul 16, 2010
Messages
12
Points
0
I'm also interested. I hope there will be special group of privileges for that.
I'm using Elastix 1.6
 
Joined
Jun 29, 2010
Messages
18
Points
0
Hey Stelio,

Thanks for that great workaround. I have put it into my Monitoring index page and can now see it finds all the recorded calls however it seems to have some problems displaying it all. Did you come across the same thing when you applied this hack?

The following is how I inserted it:

Code:
    $extension = $pACL->getUserExtension($_SESSION['elastix_user']);
    $esAdministrador = $pACL->isUserAdministratorGroup($_SESSION['elastix_user']);
    $tmpExtension=$extension;
    if($esAdministrador)
    if ($_SESSION['elastix_user'] == 'STAFF')
        $esAdministrador = TRUE;
        $extension="[[:digit:]]+";
 
Joined
Jan 15, 2012
Messages
1
Points
0
stelio said:
Thanks for the link jastele.

MrEmbedded solution didn't work for me, but it did point me in the right direction.

I've added the following lines to /var/www/html/modules/monitoring/index.php

85 if ($_SESSION['elastix_user'] == 'USERNAMEHERE')
86 $esAdministrador = TRUE;

It's a hack, essentially making the users a administrator for the monitoring module.
Which allows "USERNAMEHERE" access to all monitored call recordings.

- Stelio
Thank you, it's work.
 
Joined
May 14, 2013
Messages
2
Points
0
Stelio wrote
Thanks for the link jastele.

MrEmbedded solution didn't work for me, but it did point me in the right direction.

I've added the following lines to /var/www/html/modules/monitoring/index.php

85 if ($_SESSION['elastix_user'] == 'USERNAMEHERE')
86 $esAdministrador = TRUE;

It's a hack, essentially making the users a administrator for the monitoring module.
Which allows "USERNAMEHERE" access to all monitored call recordings.

- Stelio
I'm running Elastix 1.6.2-37 and line's 85 & 86 already have code in them, but it doesn't seem to relate to this issue.

I tried to insert where Jastele inserted ( lines 117&118 on my version ) and this just crashes the module when I try to load the web interface?

Any ideas??
 
Joined
May 14, 2013
Messages
2
Points
0
Re: Re:CDR reports for users and group permissions

Thank you for your swift reply Claudio.
I have already read those posts but Stelios solution looks to be a good, easy to apply option.
I just couldn't see what line to add it on. I was hoping for the code that surrounds it to make it work.

Thanks in advance
 

ahmed.mx87

Community Member
Joined
Sep 23, 2018
Messages
1
Points
1
You can do the following;

1) Create a new group called: Reports
2) Assign monitoring and report permissions for that group
3) Create an user and associate it with the Reports group, don't choose any extension
4) Edit /var/www/html/libs/paloSantoACL.class.php
And leave it like:
function isUserAdministratorGroup($username)
{
$is=false;
$idUser = $this->getIdUser($username);
if($idUser){
$arrGroup = $this->getMembership($idUser);
//$is = array_key_exists('administrator',$arrGroup);
$is = array_search('1', $arrGroup);

if(isset($arrGroup['Reports']))
$is=true;

}
return $is;
}
That will allow any user on that group to have full access of all records on the monitoring and reports modules
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,993
Messages
131,109
Members
17,716
Latest member
Orbit114
Top