This page is optimized for desktop computers and tablets. To access it, try one of the following points:
- Access this page from a different device.
- If you’re on a tablet, rotate it.
- Check the “Desktop site” option in your browser settings.
This page is optimized for desktop computers and tablets. To access it, try one of the following points:
Info: All examples shown here use the following placeholders. Replace these placeholders with the appropriate data:
All functions used for file management are called by URLs containing the following path:
http://<callisto>/Applications/inbound/<MAGroup>/rest/files
HTTP request method: GET
Returns a list of all MP3 files that are uploaded to this application instance. These files can be used for call notifications.
The <Response> element contains an <MP3File> element for every MP3 file uploaded to the application instance. The content of each element is the file name.
If an error occurs, the <Response> element contains the status of the executed action. The following four statuses are possible:
FOLDER_MISSING: | No folder named mp3 exists for the application instance. |
ERROR: | Unknown error. |
Example: Get a list of all MP3 files that are uploaded to this ManagerAssistant Group instance.
curl --user <user>:<password> http://<callisto>/Applications/inbound/<MAGroup>/rest/files/getMP3s.asp
<Callisto> <Request>addAnnouncements</Request> <Response> <MP3File>Analog1.mp3</MP3File> <MP3File>Analog2.mp3</MP3File> <MP3File>AreYouThere.mp3</MP3File> <MP3File>Chime.mp3</MP3File> <MP3File>CiscoStandard.mp3</MP3File> <MP3File>CiscoSymphonic.mp3</MP3File> <MP3File>CiscoSynth.mp3</MP3File> <MP3File>MusicBox.mp3</MP3File> <MP3File>newCall.mp3</MP3File> <MP3File>Piano1.mp3</MP3File> <MP3File>Piano2.mp3</MP3File> </Response> </Callisto>
HTTP request method: GET
Returns a list of all WAV files that are uploaded to this application instance. These files can be used for announcements and greetings.
The <Response> element contains an <WAVFile> element for every WAVfile uploaded to the application instance. The content of each element is the file name.
If an error occurs, the <Response> element contains the status of the executed action. The following four statuses are possible:
FOLDER_MISSING: | No folder named PCM exists for the application instance. |
ERROR: | Unknown error. |
Example: Get a list of all WAV files that are uploaded to this ManagerAssistant Group instance.
curl --user <user>:<password> http://<callisto>/Applications/inbound/<MAGroup>/rest/files/getWAVs.asp
<Callisto> <Request>addAnnouncements</Request> <Response> <WAVFile>Music_01.wav</WAVFile> <WAVFile>Music_02.wav</WAVFile> <WAVFile>Music_03.wav</WAVFile> <WAVFile>Music_04.wav</WAVFile> <WAVFile>Welcome.wav</WAVFile> <WAVFile>Willkommen.wav</WAVFile> </Response> </Callisto>
HTTP request method: POST
Upload an MP3 file to the application instance’s mp3 folder.
upload | Mandatory. File or array of files to upload. |
The <Response> element contains the status of the executed action. The following four statuses are possible:
OK: | The file was uploaded successfully. |
FOLDER_MISSING: | No folder named mp3 exists for the application instance. |
ERROR: | Unknown error. |
Example: Upload the file Alert.mp3 to the application instance.
curl --user <user>:<password> -F "upload=@home/myfiles/Alert.mp3" http://<callisto>/Applications/inbound/<MAGroup>/rest/files/uploadMP3.asp
<Callisto> <Request>uploadMP3</Request> <Response>OK</Response> </Callisto>
HTTP request method: POST
Upload a WAV file to the application instance’s PCM folder.
upload | Mandatory. File or array of files to upload. |
The <Response> element contains the status of the executed action. The following four statuses are possible:
OK: | The file was uploaded successfully. |
FOLDER_MISSING: | No folder named PCM exists for the application instance. |
ERROR: | Unknown error. |
Example: Upload the file music_piano.wav to the application instance.
curl --user <user>:<password> -F "upload=@home/myfiles/Music_Piano.wav" http://<callisto>/Applications/inbound/<MAGroup>/rest/files/uploadWAV.asp
<Callisto> <Request>uploadWAV</Request> <Response>OK</Response> </Callisto>
Freiburgstrasse 251
CH-3018 Bern
Switzerland
T: +41 31 531 11 11
F: +41 31 531 11 12
sales@ctmodule.com
Frankfurter Straße 92
D-65760 Eschborn/Frankfurt
Germany
T: +49 6196 2049173-0
F: +49 6196 2049173-9
sales-d@ctmodule.com
Gospodara Vučića 145
RS-11000 Belgrade
Serbia
T: +381 18 308076
sales@ctmodule.com