(Update with the copy of version: 8.5.2DRAFT) |
(Update with the copy of version: 8.5.2DRAFT) |
||
Line 1: | Line 1: | ||
=ListenIn= | =ListenIn= | ||
__NOTOC__ | __NOTOC__ | ||
− | This operation is part of the [[VoiceAPI|Voice API]] section of the [[Welcome| | + | This operation is part of the [[VoiceAPI|Voice API]] section of the [[Welcome|Web Services API]]. |
==Overview== | ==Overview== | ||
Configures silent monitoring of the target agent device. | Configures silent monitoring of the target agent device. |
Revision as of 19:57, January 22, 2016
ListenIn
This operation is part of the Voice API section of the Web Services API.
Overview
Configures silent monitoring of the target agent device.
After sending this request, a notification will be delivered confirming the change to the supervisor monitoring state.
When the agent being monitored receives a call, that supervisor will also be delivered the call and can listen in silently.
Request URL | /api/v2/me/devices/{id} |
---|---|
HTTP Method | POST |
Required Features | api-voice, api-supervisor-monitoring |
Parameters
Parameter | Value |
---|---|
operationName | ListenIn |
targetDeviceUri | The URI of the device to monitor.
Example: http://localhost:8080/api/v2/devices/9c14cad7-17c4-48d0-8492-7cf0ff92c224 |
supervisorMonitoringScope | This optional parameter specifies the scope of monitoring:
|
supervisorMonitoringMode | This optional parameter specifies the monitoring mode:
|
Sample
Request
POST api/v2/me/devices/efe1ab32-53f9-43ce-b65e-5768c61f7d4a { "operationName": "ListenIn", "targetDeviceUri": "http://localhost:8080/api/v2/devices/9c14cad7-17c4-48d0-8492-7cf0ff92c224" }
Response
{ "statusCode": 0 }
Notification
{ "data": { "messageType": "DeviceStateChangeMessage", "devices": [ { "id": "efe1ab32-53f9-43ce-b65e-5768c61f7d4a", "deviceState": "Active", "userState": { "id": "900D55CC-2BB0-431F-8BF9-D3525B383BE6", "displayName": "Not Ready", "state": "NotReady" }, "phoneNumber": "5005", "e164Number": "5005", "telephonyNetwork": "Private", "doNotDisturb": "On", "voiceEnvironmentUri": "http://127.0.0.1:8080/api/v2/voice-environments/370ef5e6-9e3c-4d91-9588-7f4dfe67e011", "capabilities": [ "ForwardCallsOn", "DoNotDisturbOff", "ListenIn", "Coach", "BargeIn", "CancelSupervisorMonitoring" ], "supervisorMonitoringState": { "state": "ListenIn", "mode": "AllCalls", "scope": "Call", "targetDeviceUri": "http://127.0.0.1:8080/api/v2/devices/9c14cad7-17c4-48d0-8492-7cf0ff92c224" } } ] }, "channel": "/v2/me/devices" }
Comments or questions about this documentation? Contact us for support!