api:pbx:voicemail:download
Table of Contents
API : PBX : Voicemail Download
Request
This request will fetch the voicemail audio file, for download or playback.
| URL | https://audio.telecomx.dk/VOICEMAIL_ID.FORMAT?token=TOKEN | |
|---|---|---|
| https://audio.telecomx.dk/VOICEMAIL_ID/voicemail.FORMAT?token=TOKEN | ||
| Method | GET | |
| Access level | PERSONAL, VIEWER, MANAGER, OWNER, RESELLER if voicemail belongs to the user or ADMIN. | |
| Param | VOICEMAIL_ID | Id of the voicemail (24 hex-char string) |
| FORMAT | File format to receive the voicemail 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 “voicemail” 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 | 8Kbit 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/voicemail/download.txt · Last modified: 2019/02/21 14:02 by Per Møller