McDewey

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

Page 10

↗ View in doc context
page
10
source
unity-connection/rest-api/cuti/cuti.md
chunk_id
unity-connection::rest-api::cuti::cuti::5

When a call has been placed, a client can get server information about the call, most importantly the connected status. The following are HTTP commands for basic call operations: POST http://<server>/calls: Create a call (make a phone call) by using the information in a call object. Returns a URI for the new call. GET http://<server>/calls/<call id>: Get basic call information. Returns a call object. DELETE http://<server>/calls/<call id>: Hangs up a call. Playing and Recording by Using a Call Files on the server can be played and recorded by phone (using the call control operations) by using the CallControl object (see API XSD's). Note: Video record and play do not support the pause and resume operations. Recording or Playing message can be paused and resumed (using the call control operations).The fields of the CallControl object are described below: • opType: PLAY, RECORD, PAUSE, RESUME or STOP • resourceType: MESSAGE, BROADCASTMESSAGE, STREAM, HANDLER, or URI. STREAM is generally a temporary resource created by a record operation. • resourceID: Can be a message identifier, a broadcast message identifier or a stream identifier depending on the resource type. • Speed, volume and startPosition are all optional parameters. Speed and volume are a percentage and default to 100. The start position indicates a time in milliseconds and defaults to 0. • lastResult: The result of the last call control operation. • folderType: Reserved. Only messages in the inbox can be played. • sessionId: This is a reference of the video recording on the MediaSense Server using Record API. MediaSense uniquely identifies the recording using the sessionId. A call control object is passed to a call by using a POST to the resource URI of the call: Max time limit for a paused call to be resumed will be idle time out. Note POST http://<server>/vmrest/calls/<call id> Examples The examples below show how to: make a call, check call status, record by phone, play the recording, pause and resume the recording, hang up, and send the recording as a message. Each step is shown as the HTTP request and response. Make the call Cisco Unity Connection Telephony Interface (CUTI) API 6 Cisco Unity Connection Telephony Interface (CUTI) API -- Using CUTI for Basic Call Operations Playing and Recording by Using a Call