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 related to announcements are called by URLs containing the following path:
http://<callisto>/Applications/inbound/<MAGroup>/rest/announcements
HTTP request methods: POST; GET
Add an announcement to a group. Announcements are played to callers while waiting for a group member to answer the call.
gr_id | Mandatory. The ID of the group. |
an_wave | Mandatory. The file name of the wave file to use as announcement. |
an_priority | The priority index of the announcement. This index determines the order in which the announcements will be played. A lower index means higher priority. If not set, the announcement will have lowest priority. |
The <Response> element contains two child elements:
The <id> element contains the ID of the group to which the addAnouncement action was applied.
The <status> element contains the status of the executed action. The following four statuses are possible:
OK: | The new announcement was added to the group successfully. |
PARAMETER_MISSING: | One or both mandatory parameters are missing. |
INVALID_GROUP_ID: | No group with the given ID exists. |
ERROR: | Unknown error. |
Example: Upload the file welcome.wav to the announcements of the group with the ID 2504. Omitting the an_priority parameter will append the new announcement to the bottom of the announcements list.
gr_id=2504: | ID of the group |
an_wave=Welcome.wav: | Name of the audio file |
curl --user <user>:<password> --data "gr_id=2504&an_wave=Welcome.wav" http://<callisto>/Applications/inbound/<MAGroup>/rest/announcements/addAnnouncement.asp
<Callisto> <Request>addAnnouncements</Request> <Response> <id>2504</id> <status>OK</status> </Response> </Callisto>
HTTP request methods: POST; GET
Delete an announcement from a group.
an_id | Mandatory. The ID of the announcement. |
The <Response> element contains the status of the executed action. The following four statuses are possible:
OK: | The announcement was deleted successfully. |
PARAMETER_MISSING: | The mandatory parameter is missing. |
INVALID_ANNOUNCEMENT_ID: | No announcement with the given ID exists. |
ERROR: | Unknown error. |
Example: Delete the announcement with the ID 634.
curl --user <user>:<password> --data "an_id=634" http://<callisto>/Applications/inbound/<MAGroup>/rest/announcements/deleteAnnouncement.asp
<Callisto> <Request>deleteAnnouncements</Request> <Response>OK</Response> </Callisto>
HTTP request methods: POST; GET
Edit the file name of a present announcement.
an_id | Mandatory. The ID of the announcement. |
an_wave | Mandatory. New file name to apply. |
The <Response> element contains the status of the executed action. The following four statuses are possible:
OK: | The announcement was edited successfully. |
PARAMETER_MISSING: | One or both mandatory parameters are missing. |
INVALID_ANNOUNCEMENT_ID: | No announcement with the given ID exists. |
ERROR: | Unknown error. |
Example: Rename the announcement with the ID 634 to welcome.wav
an_id=634: | ID of the announcement |
an_wave=welcome.wav: | New file name to use |
curl --user <user>:<password> --data "an_id=634&an_wave=welcome.wav" http://<callisto>/Applications/inbound/<MAGroup>/rest/announcements/editAnnouncement.asp
<Callisto> <Request>editAnnouncements</Request> <Response>OK</Response> </Callisto>
HTTP request methods: POST; GET
Retrieve all announcements of a group.
gr_id | Mandatory. The ID of the group. |
The <Response> element contains an <announcement> element for every available announcement. Each <announcement> element contains the following three child elements:
<id>: | The ID of the announcement. |
<wave>: | The file name of the associated wave file. |
<priority>: | The priority assigned to the announcement. |
If no data can be retreived, the <Response> element contains the status of the executed action. The following three statuses are possible:
PARAMETER_MISSING: | The mandatory parameter is missing. |
INVALID_GROUP_ID: | No group with the given ID exists. |
ERROR: | Unknown error. |
Example: Retrieve the metadata of all announcements saved in the group with the ID 2504.
curl --user <user>:<password> --data "gr_id=2504" http://<callisto>/Applications/inbound/<MAGroup>/rest/announcements/getAnnouncements.asp
<Callisto> <Request>getAnnouncements</Request> <Response> <announcement> <id>19</id> <wave>welcome.wav</wave> <priority>1</priority> </announcement> <announcement> <id>22</id> <wave>music_synth.wav</wave> <priority>3</priority> </announcement> <announcement> <id>23</id> <wave>busy.wav</wave> <priority>2</priority> </announcement> <announcement> <id>24</id> <wave>music_folk.wav</wave> <priority>4</priority> </announcement> </Response> </Callisto>
HTTP request methods: POST; GET
Change the order/priority of an announcement.
an_id | Mandatory. The ID of the announcement to reorder. |
move | Mandatory. The priority of the announcement is increased or decreased based on this value. Takes the values up or down. |
The <Response> element contains the status of the executed action. The following four statuses are possible:
OK: | The announcement was reordered successfully. |
PARAMETER_MISSING: | The mandatory parameter is missing. |
INVALID_ANNOUNCEMENT_ID: | No announcement with the given ID exists. |
ERROR: | Unknown error. |
Example: Move the announcement with the ID 634 up in the announcements list.
an_id=634: | ID of the announcement |
move=up: | Command to increase the announcement’s priority |
curl --user <user>:<password> --data "an_id=634&move=up" http://<callisto>/Applications/inbound/<MAGroup>/rest/announcements/reorderAnnouncements.asp
<Callisto> <Request>reorderAnnouncements</Request> <Response>OK</Response> </Callisto>
Freiburgstrasse 251
CH-3018 Bern
Schweiz
T: +41 31 531 11 11
F: +41 31 531 11 12
sales@ctmodule.com
Frankfurter Straße 92
D-65760 Eschborn/Frankfurt
Deutschland
T: +49 6196 2049173-0
F: +49 6196 2049173-9
sales-d@ctmodule.com
Gospodara Vučića 145
RS-11000 Belgrad
Serbien
T: +381 18 308076
sales@ctmodule.com