Downloading recordings - slow fetch to API

Martin N.

Premier Customer
Joined
Jun 24, 2021
Messages
62
Reaction score
6
Hi all,
I have 3CX Version 20.0 Update 6 (Build 724 Release). I need to download automatic recordings via caller number and time of call. I'm using API for fetch calls.
First one for new calls - /ReportCallLogData/Pbx.GetCallLogData - working fine.
Second one for old calls before update - /ReportCallLogData/Pbx.GetOldCallLogData - is very slow for me - 1min - 4min.

I calling API like this
/xapi/v1/ReportCallLogData/Pbx.GetOldCallLogData(periodFrom=2025-07-25T13:27:15.000Z,periodTo=2025-07-25T14:01:47.000Z,sourceType=0,sourceFilter='',destinationType=0,destinationFilter='',callsType=0,callTimeFilterType=0,callTimeFilterFrom='0:00:0',callTimeFilterTo='0:00:0',hidePcalls=true)?$top=100&$skip=0&$search=%6662495368666%22&$orderby=SegmentId%20desc

Is some possible way how to speed this up?
 

Attachments

  • xapi_v1_ReportCallLogData_Pbx.GetOldCallL.png
    xapi_v1_ReportCallLogData_Pbx.GetOldCallL.png
    89.5 KB · Views: 11
The old endpoint is slow and will always be slower due to the amount of queries done in the backend. That's why the new one using the new CDR table is much faster. Everything is in one or two tables, instead of almost 10.

Query smaller date ranges for faster speeds. That's the only workaround.
 
  • Like
Reactions: Alejandro_3CX
Hi,
I have a small range: periodFrom=2025-07-25T13:27:15.000Z, periodTo=2025-07-25T14:01:47.000. Can I use the API with different values and filters to speed up the process?
 

Forum statistics

Threads
111,956
Messages
589,928
Members
164,860
Latest member
maxpcc