elastix
Information
Community
Developers
What We Sell
Forums
Addons
Download
Information
Community
Social Networks
For Developers
Manufacturer Support
Appliances
Training & Certification

user non-admin audit calls

New to Elastix and VoIP world? Start here

user non-admin audit calls

Postby dariotarcizo » Mon Aug 10, 2009 4:28 pm

Hi,

I had an Elastix working with a PABX and it's fine but I've got a singular situation. One user need to audit all calls but this user not is a PBX-Admin.
Is there a way to a single user (operator/extension) see all record calls?
dariotarcizo
Fresh Boarder
Fresh Boarder
 
Posts: 2
Joined: Mon Aug 10, 2009 7:46 am
Karma: 0

Re:user non-admin audit calls

Postby jgutierrez » Mon Aug 10, 2009 9:42 pm

Sure, it is possible, if you would like an user (extension associated to the user) to be able to see all the CDR records, then you will need to do the following:
1. backup /var/www/html/libs/paloSantoCDR.class.php
2. edit /var/www/html/libs/paloSantoCDR.class.php
3. edit function obtenerCDRs
4. find the section that says:
Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
if(!empty($calltype) && $calltype=="incoming") $strWhere .= " AND channel like '%DAHDI%' ";
if(!empty($extension)) $strWhere .= " AND (src='$extension' OR dst='$extension') ";

$query   = "SELECT calldate, src, dst, channel, dstchannel, disposition, uniqueid, duration, billsec, accountcode FROM cdr ";
GeSHi ©

5. edit that section, and let it like:
Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
if(!empty($calltype) && $calltype=="incoming") $strWhere .= " AND channel like '%DAHDI%' ";
if(!empty($extension) and $extension!=503) $strWhere .= " AND (src='$extension' OR dst='$extension') ";

$query   = "SELECT calldate, src, dst, channel, dstchannel, disposition, uniqueid, duration, billsec, accountcode FROM cdr ";
GeSHi ©

where 503 is the extension that you have assigned to a non-administrator user on the user management menu on Elastix
Do you need more help? A fast response?
Try our Official Elastix Paid Support Service(English/Español):

http://elx.ec/support
http://elx.ec/supportes

Soporte Elastix Palosanto Solutions
Santiago de Guayaquil
User avatar
jgutierrez
Administrator
Administrator
 
Posts: 5291
Joined: Thu Feb 28, 2008 1:37 am
Location: Santiago de Guayaquil - Ecuador
Karma: 230

Re: Re:user non-admin audit calls

Postby alvarix » Fri Aug 20, 2010 2:23 pm

Thanks a lot, this information was very helpful for me too.
User avatar
alvarix
Fresh Boarder
Fresh Boarder
 
Posts: 11
Joined: Wed Mar 04, 2009 4:44 pm
Location: Guatemala
Karma: 0

Re: Re:user non-admin audit calls

Postby Makushisan » Sat Mar 10, 2012 5:44 am

Hi, i have the newest version of elastix where the code has this format

if (!empty($troncales)) $param['troncales'] = $troncales;
if (!empty($extension)) $param['extension'] = $extension;
return $param;

you can help me to modify it? would appreciate you because I have no knowledge of php

thank you very much

jgutierrez escribió:
Sure, it is possible, if you would like an user (extension associated to the user) to be able to see all the CDR records, then you will need to do the following:
1. backup /var/www/html/libs/paloSantoCDR.class.php
2. edit /var/www/html/libs/paloSantoCDR.class.php
3. edit function obtenerCDRs
4. find the section that says:
Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
if(!empty($calltype) && $calltype=="incoming") $strWhere .= " AND channel like '%DAHDI%' ";
if(!empty($extension)) $strWhere .= " AND (src='$extension' OR dst='$extension') ";

$query   = "SELECT calldate, src, dst, channel, dstchannel, disposition, uniqueid, duration, billsec, accountcode FROM cdr ";
GeSHi ©

5. edit that section, and let it like:
Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
if(!empty($calltype) && $calltype=="incoming") $strWhere .= " AND channel like '%DAHDI%' ";
if(!empty($extension) and $extension!=503) $strWhere .= " AND (src='$extension' OR dst='$extension') ";

$query   = "SELECT calldate, src, dst, channel, dstchannel, disposition, uniqueid, duration, billsec, accountcode FROM cdr ";
GeSHi ©

where 503 is the extension that you have assigned to a non-administrator user on the user management menu on Elastix
Makushisan
Fresh Boarder
Fresh Boarder
 
Posts: 16
Joined: Sat Mar 12, 2011 4:38 am
Karma: 0

Re: Re:user non-admin audit calls

Postby soborno » Sat Mar 10, 2012 8:59 am

Hi,
Here I post a workaround to allow no-admin users to view all CDR and monitoring:
http://www.elastix.org/index.php/en/com ... group.html

Regards,
Claudio
Keep the KARMA UP!
soborno.sr@gmail.com
User avatar
soborno
Gold Boarder
Gold Boarder
 
Posts: 1250
Joined: Mon Dec 19, 2011 12:38 pm
Location: Uruguay
Karma: 104

Re:user non-admin audit calls

Postby jgutierrez » Sun Mar 11, 2012 8:08 pm

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
Do you need more help? A fast response?
Try our Official Elastix Paid Support Service(English/Español):

http://elx.ec/support
http://elx.ec/supportes

Soporte Elastix Palosanto Solutions
Santiago de Guayaquil
User avatar
jgutierrez
Administrator
Administrator
 
Posts: 5291
Joined: Thu Feb 28, 2008 1:37 am
Location: Santiago de Guayaquil - Ecuador
Karma: 230

Re:user non-admin audit calls

Postby Makushisan » Tue Mar 13, 2012 11:44 am

Claudio thank you very much for your dedication and for the prompt response!
Jgutierrez, that was the solution I was looking for. Thank you very much. They helped me a lot. Greetings!
Makushisan
Fresh Boarder
Fresh Boarder
 
Posts: 16
Joined: Sat Mar 12, 2011 4:38 am
Karma: 0

Re:user non-admin audit calls

Postby mahan » Wed May 09, 2012 11:26 pm

jgutierrez ,

I did this and any user that become a member of this group will be the same as admin for monitoring section.

The drawback is because of that the can delete the recorded files too,is there a way to make a user able to listen and download to all recorded files but without delete ability?
mahan
Fresh Boarder
Fresh Boarder
 
Posts: 33
Joined: Thu Apr 19, 2012 8:09 am
Karma: 0

Re:user non-admin audit calls

Postby mahan » Wed May 09, 2012 11:29 pm

[quote="jgutierrez"]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


jgutierrez ,

I did this and any user that become a member of this group will be the same as admin for monitoring section.

The drawback is because of that they can delete the recorded files too,is there a way to make a user able to listen and download to all recorded files but without delete ability?
mahan
Fresh Boarder
Fresh Boarder
 
Posts: 33
Joined: Thu Apr 19, 2012 8:09 am
Karma: 0

Re: Re:user non-admin audit calls

Postby soborno » Thu May 10, 2012 7:28 am

Yes you can,

In the previous post I wrote in this thread, there is a link that might be useful for you...
There you will find a possible workaround that gives you way of only enable listen and download.

Regards,
Claudio
Keep the KARMA UP!
soborno.sr@gmail.com
User avatar
soborno
Gold Boarder
Gold Boarder
 
Posts: 1250
Joined: Mon Dec 19, 2011 12:38 pm
Location: Uruguay
Karma: 104

Re: Re:user non-admin audit calls

Postby mahan » Fri May 11, 2012 11:08 pm

I did that before,the monitoring page will show all of recorded files but if you click on the listen it will say you "you are not authorized" and if you click on download nothing happens.
mahan
Fresh Boarder
Fresh Boarder
 
Posts: 33
Joined: Thu Apr 19, 2012 8:09 am
Karma: 0

Re: Re:user non-admin audit calls

Postby mahan » Fri May 11, 2012 11:16 pm

[quote="soborno"]Yes you can,

In the previous post I wrote in this thread, there is a link that might be useful for you...
There you will find a possible workaround that gives you way of only enable listen and download.

Regards,
Claudio


I did that before,the monitoring page will show all of recorded files but if you click on the listen it will say you "you are not authorized" and if you click on download nothing happens.
mahan
Fresh Boarder
Fresh Boarder
 
Posts: 33
Joined: Thu Apr 19, 2012 8:09 am
Karma: 0
Top

Re: Re:user non-admin audit calls

Postby soborno » Sat May 12, 2012 10:59 am

Are you under v2.2?

I just check it and works, are you seeing the second page of that thread?
Check especially the post #97031 the key part is in the change of firm and in the existens of group "4".

Regards,
Claudio
Keep the KARMA UP!
soborno.sr@gmail.com
User avatar
soborno
Gold Boarder
Gold Boarder
 
Posts: 1250
Joined: Mon Dec 19, 2011 12:38 pm
Location: Uruguay
Karma: 104

Re: Re:user non-admin audit calls

Postby mahan » Sat May 12, 2012 11:11 pm

[quote="soborno"]Are you under v2.2?

I just check it and works, are you seeing the second page of that thread?
Check especially the post #97031 the key part is in the change of firm and in the existens of group "4".

Regards,
Claudio


I read that again.
What i want is a page without Delete button which user can listen and download all recorded files.
mahan
Fresh Boarder
Fresh Boarder
 
Posts: 33
Joined: Thu Apr 19, 2012 8:09 am
Karma: 0
Top

Re: Re:user non-admin audit calls

Postby a7med » Tue Oct 09, 2012 7:54 am

Dear all,

I found this thread very useful, yet is there a way that I can allow specific user to get access to monitor specific extensions ? Thank you so much
a7med
Fresh Boarder
Fresh Boarder
 
Posts: 13
Joined: Thu Aug 16, 2012 10:55 am
Karma: 0

Next

Return to Newbie's Corner

Who is online

Users browsing this forum: techs221 and 2 guests

cron