Start a new topic

DownloadCallRecordingByUniqueId: Duplicate unique ID in call records

We are currently trying to access call recordings via the API. While the function seems to work as expected, the "UniqueId" seems to be duplicated across some calls.


While we can find the call recordings using "GetCallRecording", we can only download 1 recording using the "UniqueId".


For example, the data returned by the API looks as follows (removed some unrelated fields), with 2 recordings (different filenames and sizes), but same UniqueID:  

  <CallRecording>
    <DateStamp>2020-10-23 18:11:42</DateStamp>
    <FileName>
      <![CDATA[pbx4-1603469421.1196632-<placeholder>.WAV]]>
    </FileName>
    <FileSize>305950</FileSize>
    <UniqueID>pbx4-1603469421.1196632</UniqueID>
    <Status>ANSWERED</Status>
  </CallRecording>
  <CallRecording>
    <DateStamp>2020-10-23 18:12:29</DateStamp>
    <FileName>
      <![CDATA[pbx4-1603469421.1196632-<placeholder>.WAV]]>
    </FileName>
    <FileSize>234515</FileSize>
    <UniqueID>pbx4-1603469421.1196632</UniqueID>
    <Status>ANSWERED</Status>
  </CallRecording>

 

If we initiate a download using the following, we only ever get 1 call recording back: 

<ActionName>DownloadCallRecordingByUniqueId</ActionName>
<uniqueId>pbx4-1603469421.1196632</uniqueId>

Attempting to pass in path, similar to how one would for "GetCallRecordingDetails", does not yield expected results.

 

Is there any means by which we can access the other call recordings, maybe by the filename if possible?     

1 Comment

Good day,


The reason why you are getting more than one UniqueID entry, is because when a call gets blind transferred, it creates another entry but with the same UniqueID. When you pull call recordings with the Unique ID, it will only download the first entry. 


You can however access the call recordings with the filename as requested. 


Please find attached documentation on how this can be achieved. 


Thank you

docx

1 person likes this
Login or Signup to post a comment