No-Admin User can´t see all CDR record

Discussion in 'General' started by lemuelgv, May 21, 2009.

  1. lemuelgv

    Joined:
    Sep 9, 2008
    Messages:
    73
    Likes Received:
    0
    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
     
  2. jgutierrez

    Joined:
    Feb 28, 2008
    Messages:
    5,737
    Likes Received:
    0
    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
     
  3. lemuelgv

    Joined:
    Sep 9, 2008
    Messages:
    73
    Likes Received:
    0
    thanks jgutierrez

    Now I can see the all CDR
     
  4. oldrags

    Joined:
    Dec 3, 2010
    Messages:
    13
    Likes Received:
    0
    thanks!
    also worked on my Elastix 2.0
     
  5. maikcat

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


    Michael.
     

Share This Page