I am trying to pull the entire call history for our PBX from the CRM Link REST API. However, it only seems to allow me to go back to a few days ago - presumably when I enabled the REST API.
Does this sound correct? For example, my CDR reports go back years. However, I can only traverse the REST API for records a few days old and newer.
If I pick an old call id from a CDR report I get something along like lines of {'status': true, 'data':[]}
Should the REST api go back further than the date it was enabled?
Only calls that have been processed by the crm module with rest enableed would be logged. These are stored independently and not pulled from the cdr/cel
Is there another API way you would recommend to pull the legacy call history and recordings? I am looking at using CDR Report csv files but the data output doesn’t make it easy to pull the recording file.
I also just looked at the CEL exports but they only seem to contain a couple of fields, not the detail data. I.e. the export only contains “Date Caller Dialed Duration Play Details”
I am working on an integration that does not have shell access to the pbx. The REST api lets me fetch records - but not for calls that occurred before REST was enabled.
I am trying to figure out the most user friendly way to get the call history details before the REST api was enabled.
The goal of the integration is to persist the recordings and associate with appropriate conversation chains. So I need the call details along with the recording.
@dicko was trying to “lead the horse to water” and essentially gave you the answer. If you look at the cdr table you will see a field for the recording file location if there is one. You can write a script in any language you want to do a mysql lookup on that table, pull details, and provide the recording file.
What is proper etiquette on this forum for replying to keep the topic open. It keeps telling me that the topic closes based on the time of the last reply
If you wish to contribute to a closed thread, you can flag it to the moderator requesting it be reopened, otherwise you can start a new thread with a link to the previous one to continue a discussion.
Keeping threads alive without furthering the discussion won’t accomplish anything.
So the final piece to the puzzle to solve my problem is how to take the recording filename string from the CDR reponse and retrieve the corresponding sound file.
I have been investigating but cannot seem to figure out how to make that happen. Any tips or pointers you can share? Thanks!