调用SwitchToConference将指定实例下的指定通话的状态切换至三方会议,通常用于咨询转会议的场景。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
InstanceId | string | 是 | 实例 ID。 | ccc-test |
UserId | string | 是 | 坐席 ID,不填默认使用当前 RAM 账号映射的坐席。 | agent@ccc-test |
DeviceId | string | 是 | 无效字段,可以随便填写。 | device |
JobId | string | 是 | 通话 ID。 | job-24114064019637**** |
返回参数
示例
正常返回示例
JSON
格式
{
"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"
]
}
}
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | Parameter.Blank | The parameter %s may not be null or blank. | 该参数不能为null或含有空白符的字符串。 |
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). | 非法操作,用户状态不符合预期。 |
404 | NotExists.ChannelId | The specified channel %s does not exist in call %s. | 通话中不存在指定的Channel信息。 |
404 | NotExists.InstanceId | The specified instance %s does not exist. | 指定的呼叫中心实例不存在。 |
404 | NotExists.JobId | The call %s does not exist. | 指定的通话信息不存在。 |
500 | InternalService.CTI | An internal CTI service error occurred. %s | 内部CTI服务错误。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2023-10-26 | OpenAPI 错误码发生变更 | 查看变更详情 |