Created
September 23, 2020 09:24
-
-
Save rvencu/6861c5edca1276588838226aa04f97be to your computer and use it in GitHub Desktop.
SQL command to retrieve call history from 3CX database
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select C.*, PS.caller_number as Caller, PD.caller_number as Destination from cl_calls C | |
JOIN cl_segments S ON C.id = S.call_id | |
JOIN cl_party_info PS ON PS.id = S.src_part_id | |
JOIN cl_party_info PD ON PD.id = S.dst_part_id | |
where S.seq_order = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment