We have a CRM Call Logging app and want to include the url of the call recording as one of the things we log. From reading through the docs, I see this can be obtained using the
/restapi/v1.0/account/{accountId}/extension/{extensionId}/call-log/{callRecordId}
It seems that the callRecordId needed for this url is different then the sessionId we receive in the presence events. Is their a different api method to go by sessionId or will i need to use
/restapi/v1.0/account/{accountId}/extension/{extensionId}/call-log with ?dateFrom=###&phoneNumber=###
Second, when does the recording url become available? Is it immediately upon start of call or at the end of the call. Note: I'm just talking about the url not the actual audio file.
For technical reasons with how our app works it'd be much easier if we could get the recording url when the call begins. It would allow us to get the url asynchronously and our call event processing loop.