SOLVED CDRs are not completely displayed for 'user' members who have been assigned to extension and devices. FusionPBX 5.0.3

Status
Not open for further replies.

hfoster

Active Member
Jan 28, 2019
677
80
28
34
For some reason, the user CDRs are now seemingly only displaying the CDRs that ended up as a voicemail status. I can't seem to work it out from the code, has anyone else noticed this? The user is just assigned to an extension, and also the device for what it's worth.

You check it out from a admin or super_admin with the permission xml_cdr_domain and it's all fine.
 

hfoster

Active Member
Jan 28, 2019
677
80
28
34
Again, one of those annoying problems you find a fix for as soon as you give up and ask for help....

I enabled the permission: xml_cdr_enterprise_leg for users which seems to affect this codeblock:

if (!permission_exists('xml_cdr_enterprise_leg')) {
$sql .= "and originating_leg_uuid IS NULL ";
}

Which ultimately affects the final SQL statement about selecting legs and originating_legs being NULL, etc. I don't understand it's purpose, but I'm happy just fixing it with permissions.
 
  • Like
Reactions: felipe.pasa
Status
Not open for further replies.