SwitchToConference
You can invoke SwitchToConference to switch the status of a specified call under a specified instance to a three-party conference. This is typically used in scenarios where a consultation is converted into a conference.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
Instance ID. |
ccc-test |
| UserId |
string |
No |
Agent ID. If not specified, the agent mapped to the current Resource Access Management (RAM) user is used by default. |
agent@ccc-test |
| DeviceId |
string |
No |
Invalid field. You can enter any value. |
device |
| JobId |
string |
Yes |
Call ID. |
job-24114064019637**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
Response code. |
OK |
| HttpStatusCode |
integer |
HTTP status code. |
200 |
| Message |
string |
Response message. |
无 |
| RequestId |
string |
Request ID. |
D9C96A73-09C9-5E2A-8CDB-85EC0BC246DA |
| Params |
array |
List of response parameters. |
|
|
string |
Response parameter. |
无 |
|
| Data |
object |
Data. |
|
| CallContext |
object |
Call context environment. |
|
| CallType |
string |
Call type. Valid values:
|
OUTBOUND |
| InstanceId |
string |
Instance ID. |
ccc-test |
| JobId |
string |
Call ID. |
job-6538214103685**** |
| ChannelContexts |
array<object> |
List of call channels. |
|
|
object |
Call channel. |
||
| Index |
integer |
An auto-increment ID assigned by the system. Customers do not need to concern themselves with this. |
1 |
| ReleaseInitiator |
string |
The party that initiated the release of the channel, indicating which party first hung up the call. |
1390501**** |
| ChannelState |
string |
The status of the channel. Valid values:
|
NONE |
| Destination |
string |
The called party of the channel. |
8001**** |
| SkillGroupId |
string |
The skill group associated with this call. In inbound scenarios, the skill group is specified by the queue to which the call is routed in the IVR. In outbound scenarios, the skill group is the first one that the agent signs into. |
skillgroup@ccc-test |
| UserId |
string |
Agent ID. |
agent@ccc-test |
| ChannelFlags |
string |
Channel flags. Valid values:
|
MONITORING |
| Timestamp |
integer |
The UNIX timestamp indicating when the channel last changed status, in milliseconds. |
1609255716900 |
| ReleaseReason |
string |
The reason for releasing the channel, indicating why the current channel was disconnected. The value corresponds to a response code defined in the SIP protocol. Customers should refer to the SIP protocol for Analysis of the release reason. |
404 - No destination |
| CallType |
string |
The call type of the channel. Valid values:
|
OUTBOUND |
| JobId |
string |
Call ID. |
job-6538214103685**** |
| ChannelId |
string |
The channel ID. |
ch:user:131888****->8001****:1609225718294:job-6538214103685**** |
| Originator |
string |
The originator of the channel. |
1318888**** |
| UserExtension |
string |
Extension number of the agent associated with the channel. |
8032**** |
| UserContext |
object |
Agent context environment. |
|
| Heartbeat |
integer |
The time when the last heartbeat from the agent was received, in Unix timestamp format, in milliseconds. |
agent@ccc-test |
| Extension |
string |
The agent's extension number. |
8032**** |
| WorkMode |
string |
Work mode. Valid values:
|
ON_SITE |
| DeviceId |
string |
Device ID, the identity ID of a browser-based Web Real-Time Communication (WebRTC) softphone or a physical phone device. Only one type of device can be registered at a time. |
ACC-YUNBS-1.0.10-**** |
| UserId |
string |
Agent ID. |
1609136956378 |
| BreakCode |
string |
Break status code, which can be either System-defined or Custom-defined. System-defined break codes include: Warm-up (temporary break state after an agent is published and before becoming idle), RingingTimeout (break due to agent ringing timeout), and RejectCall (break due to agent call rejection). There are no restrictions on Custom-defined status codes; customers can define them according to their business needs. Valid values:
|
Warm-up |
| InstanceId |
string |
Instance ID. |
ccc-test |
| OutboundScenario |
boolean |
Indicates whether the agent is in outbound-only mode. |
false |
| DeviceState |
string |
Device status. Valid values:
|
false |
| Mobile |
string |
The agent's personal phone number. |
1324730**** |
| JobId |
string |
Call ID. |
job-6538214103685**** |
| UserState |
string |
Agent status. Valid values:
|
TALKING |
| SignedSkillGroupIdList |
array |
List of skill group IDs that the agent has signed into. |
|
|
string |
Skill group ID. |
skillgroup1@ccc-test |
Examples
Success response
JSON format
{
"Code": "OK",
"HttpStatusCode": 200,
"Message": "无",
"RequestId": "D9C96A73-09C9-5E2A-8CDB-85EC0BC246DA",
"Params": [
"无"
],
"Data": {
"CallContext": {
"CallType": "OUTBOUND",
"InstanceId": "ccc-test",
"JobId": "job-6538214103685****",
"ChannelContexts": [
{
"Index": 1,
"ReleaseInitiator": "1390501****",
"ChannelState": "NONE",
"Destination": "8001****",
"SkillGroupId": "skillgroup@ccc-test",
"UserId": "agent@ccc-test",
"ChannelFlags": "MONITORING",
"Timestamp": 1609255716900,
"ReleaseReason": "404 - No destination",
"CallType": "OUTBOUND",
"JobId": "job-6538214103685****",
"ChannelId": "ch:user:131888****->8001****:1609225718294:job-6538214103685****",
"Originator": "1318888****",
"UserExtension": "8032****"
}
]
},
"UserContext": {
"Heartbeat": 0,
"Extension": "8032****",
"WorkMode": "ON_SITE",
"DeviceId": "ACC-YUNBS-1.0.10-****",
"UserId": "1609136956378",
"BreakCode": "Warm-up",
"InstanceId": "ccc-test",
"OutboundScenario": false,
"DeviceState": "false",
"Mobile": "1324730****",
"JobId": "job-6538214103685****",
"UserState": "TALKING",
"SignedSkillGroupIdList": [
"skillgroup1@ccc-test\n"
]
}
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Parameter.Blank | The parameter %s may not be null or blank. | |
| 400 | InvalidOperation.ChannelState | The operation is not allowed. Channel stats (%s) does not meet expectations (%s). | |
| 400 | InvalidOperation.UserState | The operation is not allowed. User state (%s) does not meet expectations (%s). | |
| 500 | InternalService.CTI | An internal CTI service error occurred. %s | |
| 404 | NotExists.ChannelId | The specified channel %s does not exist in call %s. | |
| 404 | NotExists.InstanceId | The specified instance %s does not exist. | |
| 404 | NotExists.JobId | The call %s does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.