question

matt-spinks2179 avatar image
matt-spinks2179 asked ·

Can I see the call recording duration from the call record?

I'm working on a requirement for a customer, and I need to find calls in the call log where the recording duration is > 60 seconds. Within the call record, I see the property "duration", which pertains to the entire call. The problem is that sometimes my client's customers opt-out of the recording, and so the recording length is around 10-12 seconds, even though the actual call duration (indicated by the duration property) is anywhere from 45 minutes to 1 hour. 

Is there any way that I can obtain the duration of the recording from either the call record, or from the recording info record? Or, alternatively, is there a way that I can see if the caller "opted out" of the recording?
aaa
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

· Write an Answer
Phong Vu avatar image
Phong Vu answered ·
Hi Matt,

I am afraid that it is the current limitation of the call-log API's response. You may need to first, download all recorded calls with the duration > 70 (or can be a bit greater number) then use some audio library to detect the actual duration of the files. I know this is not a perfect solution but it helps to solve the problem for now.

Kind regards,
Phong Vu
Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.