I am working with the ARI rest-api from Asterisk, and I am running in to some problems. With the api I can get the recording files via the following
GET request: /recordings/stored/{recordingName}/file
But the url of the download location does not end with the .wav extension (see example below). This is causing me a lot of problems, because I need to stream the audio file via directly from the url, which is not possible right now.
I hope someone could help me out trying to get a response that has the .wav extension at the end of the url.
Directly from ARI there’s no way to do it without code modifications and changing things. If you are expecting to download and play it in a browser, that’s not really what ARI was designed for.
When I say application I’m referring to a server side telephony application. This server side telephony application could then present its own API with its own authentication for client applications such as one running on a mobile device. That is how ARI is designed to be used.
Currently I am trying to get every stored recording by a unique id (maybe callerid, phonenumber) and I need to get the audio file in my IOS application. So when a call hang up, I send a request from my ios application to a rest-api, that will respond with the audio file.