api:pbx:recording:download
Table of Contents
API : PBX : Recording Download
Request
This request will fetch the recorded audio file, for download or playback.
| URL | https://audio.telecomx.dk/RECORDING_ID.FORMAT?token=TOKEN | |
|---|---|---|
| https://audio.telecomx.dk/RECORDING_ID/recording.FORMAT?token=TOKEN | ||
| Method | GET | |
| Access level | PERSONAL, VIEWER, MANAGER, OWNER, RESELLER or ADMIN. PERSONAL may not access common recordings. | |
| Param | RECORDING_ID | Id of the recording (24 hex-char string) |
| FORMAT | File format to receive the recording in - se formats below. | |
| Query | TOKEN | Valid and authenticated token from the user, as returned during login. |
The second url version forces download. You may replace the “recording” filename with whatever you like.
| Format suffix | Description |
|---|---|
| alaw | 64Kbit 8KHz A-Law raw mono |
| ulaw | 64Kbit 8KHz Mu-LAw raw mono |
| mp3 | 128Kbit MP3 mono/stereo |
| wav | 8-256Kbit Microsoft wave mono/stereo |
| gsm | 13Kbit 8KHz GSM mono |
| m4a | 128Kbit Apple AAC in m4a container mono/stereo |
| sln16 | 16Kbit wideband signed linear mono |
| high.mp3 | 256Kbit MP3 mono/stereo |
| low.mp3 | 16Kbit MP3 mono |
| g722 | 16Kbit wideband mono |
Query examples
https://audio.telecomx.dk/123457890123457890ABCD.mp3?token=y3289y9hgi89wfhgbiewqu9ufbequ9bfbiqd https://audio.telecomx.dk/123457890123457890ABCD/myfile.wav?token=y3289y9hgi89wfhgbiewqu9ufbequ9bfbiqd
Response
Binary audio data.
Errors
| Error code | Message | Description |
|---|---|---|
| 404 | not_found | Not found |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |
api/pbx/recording/download.txt · Last modified: 2019/11/04 13:30 by Per Møller