4.1.17.3 Greeting - file management
Download the recording
To download the recording, send a GET request to https://domain/voicemail/greeting. Method requires authorization for help? basic authentication. Please use your SIP account login and password.
In response we will receive:
- when HTTP status = 200 - in the body we will receive an audio stream
- when HTTP status = 404 - Not found
sample curls:
curl --location 'https://xxxxxxxxxxxxxxxxmail/greeting' \
--header 'User-Agent: vippie;ios;1.2.3' \
--header 'Content-Type: text/plain' \
--header 'Authorization: Basic OTE5NTQ1NTcxNTA3OjJuZHNpbTk1NDU1NzE1MDc=' \
--header 'X-VIPPIE-DEVICE-ID: ff66fc693846285d' \
--header 'X-VIPPIE-DEVICE-NAME: iPhone8,1'
Deleting the recording
To delete a recording, send a DELETE request to https://domain/voicemail/greeting. 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://xxxxxxxxxxxxxxxxxxxxxxxxxxx/emcd/voicemail/greeting' \
--header 'User-Agent: vippie;ios;1.2.3' \
--header 'Content-Type: text/plain' \
--header 'Authorization: Basic Y2hhdHRlc3QxOmNoYXR0ZXN0MWc0MnRneTRYMQ==' \
--header 'X-VIPPIE-DEVICE-ID: ff66fc693846285d' \
--header 'X-VIPPIE-DEVICE-NAME: iPhone8,1'
Uploading a recording
To upload a recording, please send a POST request to https://domain/voicemail/greeting.
POST https://domain.com/voicemail/greeting HTTP/1.1 Host: domain.com User-Agent: {user-agent} Authorization: Basic {login:password} Content-Type: multipart/form-data; boundary=xxBOUNDARYxx Content-Length: {POST body length in bytes} --xxBOUNDARYxx Content-Type: audio/mpeg Content-Disposition: form-data; name="datafile"; filename="file-name.mp3" {attachment file data bytes} --xxBOUNDARYxx--
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 uploaded
- kiedy HTTP status = 404 - Not found
curl --location 'https://xxxxxxxxxxxxxxxxx/emcd/voicemail/greeting' \
--header 'User-Agent: vippie;ios;1.2.3' \
--header 'Authorization: Basic Y2hhdHRlc3QxOmNoYXR0ZXN0MWc0MnRneTRYMQ==' \
--header 'X-VIPPIE-DEVICE-ID: ff66fc693846285d' \
--header 'X-VIPPIE-DEVICE-NAME: iPhone8,1' \
--header 'Content-Disposition: form-data; name="datafile"; filename="file-name.mp3' \
--header 'Cookie: ASP.NET_SessionId=18973EAD4455B6BD6F0242AF' \
--form 'datafile=@"6wq-S9OW8/file-name.mp3"'
sample greeting in mp3 format