Is there any template for power BI or as just SQL for custom reports?
3CX creates the table itself and there are many columns in the created table.
it seems hard to create custom reports , views from this table for beginners.
CREATE TABLE information_schema.cdroutput (
cdr_id uuid NOT NULL,
call_history_id uuid NULL,
source_participant_id uuid NULL,
source_entity_type varchar NULL,
source_dn_number varchar NULL,
source_dn_type varchar NULL,
source_dn_name varchar NULL,
source_participant_name varchar NULL,
source_participant_phone_number varchar NULL,
source_participant_trunk_did varchar NULL,
source_participant_is_incoming bool NULL,
source_participant_is_already_connected bool NULL,
source_participant_group_name varchar NULL,
source_participant_billing_suffix varchar NULL,
destination_participant_id uuid NULL,
destination_entity_type varchar NULL,
destination_dn_number varchar NULL,
destination_dn_type varchar NULL,
destination_dn_name varchar NULL,
destination_participant_name varchar NULL,
destination_participant_phone_number varchar NULL,
destination_participant_trunk_did varchar NULL,
destination_participant_is_incoming bool NULL,
destination_participant_is_already_connected bool NULL,
destination_participant_group_name varchar NULL,
destination_participant_billing_suffix varchar NULL,
base_cdr_id uuid NULL,
originating_cdr_id uuid NULL,
creation_method varchar NULL,
creation_forward_reason varchar NULL,
termination_reason varchar NULL,
terminated_by_participant_id uuid NULL,
continued_in_cdr_id uuid NULL,
cdr_started_at timestamptz NULL,
cdr_ended_at timestamptz NULL,
cdr_answered_at timestamptz NULL,
termination_reason_details varchar NULL,
processed bool NULL,
migrated bool NULL,
main_call_history_id uuid NULL,
source_presentation varchar NULL,
offload_id int8 NULL
);