McDewey

Multi-vendor documentation library · semantic search · MCP endpoint at /mcp

Page 522

↗ View in doc context
page
522
source
unity-connection/rest-api/cupi/cupi.md
chunk_id
unity-connection::rest-api::cupi::cupi::488

Using the CUTI to record greetings via the Phone The following example demonstrates how to achieve this task. 1. Record the greeting using CUTI, the details are available at Using CUTI for Basic Call Operations. 2. The record operation in Step-1 returns XML/JSON output containing the details of the recorded file. Example output: <CallControl> <op>RECORD</op> <resourceType>STREAM</resourceType> <resourceId>01a78559-07ec-4898-beb6-444a4ae9c569.wav</resourceId> <lastResult>0</lastResult> <speed>100</speed> <volume>100</volume> <startPosition>0</startPosition> </CallControl> 3. Send the following PUT request with the body of request containing above XML/JSON output. Request : PUT https://<connection-server>/vmrest/handlers/callhandlers/<callhandler-id>/greetings/Alternate/greetingstreamfiles/<language-code>/audio Request Body : <CallControl> <op>RECORD</op> <resourceType>STREAM</resourceType> <resourceId>01a78559-07ec-4898-beb6-444a4ae9c569.wav</resourceId> <lastResult>0</lastResult> <speed>100</speed> <volume>100</volume> <startPosition>0</startPosition> </CallControl> Response Code: 204 No Content The Put request will update the Greetings. The update of a Greetings wave file is similar whether a audio wave file is being used or the audio is a CallControl XML/JSON schema. Enabling or disabling the Greeting Greetings are disabled or enabled using the combination of fields "Enabled" and "TimeExpires". Note Cisco Unity Connection Provisioning Interface (CUPI) API -- Call Handler Greetings APIs Disabling the Greeting For this scenario the request body should contain the "Enabled" which should be set to false. PUT https://<connection-server>/vmrest/handlers/callhandlers/<callhandler-objectid>/greetings/<Greetingname> Request Body: Cisco Unity Connection Provisioning Interface (CUPI) API 490 Cisco Unity Connection Provisioning Interface (CUPI) API -- Call Handler Using the CUTI to record greetings via the Phone

Image 1 from page 522