How to get call record by extension?

Hello everyone, I am using FreePBX!

I want to get call record by each extension, but when I look at the API, I only see that it provides all APIs to get all call records of all extensions, is there any way to do it, if I get all of them, they are too heavy
Here is the API link: https://sangomakb.atlassian.net/wiki/spaces/PG/pages/26083384/CDR+Module+GraphQL+APIs#Fetch-All-CDR’s-data

CDRs aren’t categorized or handled by extension numbers because in Asterisk an extension is anything in the diaplan that can be matched.

You would need to know the unique ID of a CDR to get that single CDR. In order to get that you need to pull all the records to know what IDs are what. You can limit the CDR grab by time/date so you don’t have to pull all the CDRs to get the CDRs over the last week, for example. You can get the CDRs for the last week and then get the one with the recording you’re looking for.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.