4.1.17.2 Voicemail - file management
URL: /voicemail/ID
Downloading the voicemail recording
To download the recording, send a GET request to the address /voicemail/ID, where the ID should be replaced by the message ID. The method requires authorization using basic authentication. Please use your SIP account login and password.
In response we will receive:
- kiedy HTTP status = 200 - in the body we will receive an audio stream
- kiedy HTTP status = 404 - Not found
curl --location 'https://xxxxxxxxx/emcd/voicemail/4' \
--header 'User-Agent: vippie;ios;1.2.3' \
--header 'Content-Type: text/plain' \
--header 'Authorization: Basic OTE4MzI5MzA1MzYxOjMxNnRxOGdob2oy' \
--header 'X-VIPPIE-DEVICE-ID: ff66fc693846285d' \
--header 'X-VIPPIE-DEVICE-NAME: iPhone8,1'
Deleting the voicemail recording
To delete a recording, send a DELETE request to the address /voicemail/ID, where the ID should be replaced by the message ID. The method requires authorization using basic authentication. Please use your SIP account login and password.
In response we will receive:
- kiedy HTTP status = 200 - recording deleted
- kiedy HTTP status = 404 - Not found
curl --location --request DELETE 'https://xxxxxxxxx/emcd/voicemail/4' \
--header 'User-Agent: vippie;ios;1.2.3' \
--header 'Content-Type: text/plain' \
--header 'Authorization: Basic OTE4MzI5MzA1MzYxOjMxNnRxOGdob2oy' \
--header 'X-VIPPIE-DEVICE-ID: ff66fc693846285d' \
--header 'X-VIPPIE-DEVICE-NAME: iPhone8,1'