McDewey

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

Page 581

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

The following is the response from the above POST request and the actual response will depend upon the information given by you: Response Code: 201 Use the following URL in a browser to play the stream file: https://<connection-server>/vmrest/handlers/directoryhandlers/<DirectoryHandlerObjectId>/directoryhandlerstreamfiles/1033/audio Add/Update Greeting Recording Used in Telephony Interface It is a three step process to record a new file then modify the current stream with this new stream. Step 1: Call Connection In the first step integration between Unity Connection and Call Manager must be setup so that a call can be setup. Refer to the document at the below link to check how to make the call. http://docwiki.cisco.com/wiki/Cisco_Unity_Connection_Telephony_Interface_(CUTI)API--Using_CUTI_for_Basic_Call_Operations In the first step integration between Unity Connection and Call Manager must be setup so that a call can be setup. Refer to the document at the below link to check how to make the call. Step 2: Recording Once the phone is answered, the second step is to record the greeting. Refer to the document below to check how to record a greeting. http://docwiki.cisco.com/wiki/Cisco_Unity_Connection_Telephony_Interface(CUTI)API--_Using_CUTI_for_Basic_Call_Operations Step 3: Upload Greeting The response for the step 2 is a Call Control object xml. That xml is to be passed in as the request body for this request. PUT https://<Connection Server>/vmrest/handlers/directoryhandlers/<DirectoryHandlerObjectId>/directoryhandlerstreamfiles/1033/audio Request Body: <CallControl> <op>RECORD</op> <resourceType>STREAM</resourceType> <resourceId>67ed783c-203f-454b-a0e6-57b77820c831.wav</resourceId> <lastResult>0</lastResult> <speed>100</speed> <volume>100</volume> <startPosition>0</startPosition> </CallControl> Response Code: 204 JSON Example To upload greeting, do the following: PUT https://<connection-server>/vmrest/handlers/directoryhandlers/<DirectoryHandlerObjectId>/directoryhandlerstreamfiles/1033/audio Accept: application/json Content-Type: application/json Connection: keep-alive Request Body: { "op":"RECORD", "resourceType":"STREAM", "resourceId":"67ed783c-203f-454b-a0e6-57b77820c831.wav", "lastResult":"0", "speed":"100", "volume":"100", "startPosition":"0" } Cisco Unity Connection Provisioning Interface (CUPI) API 549 Cisco Unity Connection Provisioning Interface (CUPI) API--Directory Handler APIs Add/Update Greeting Recording Used in Telephony Interface