切换主题
电话转移
使用方法
typescript
// 座席对正在通话中或振铃中的语音呼叫进行转移操作电话
const phoneModel = {
params: '{"callId":"xxx","address":"xxx","devicetype":"xxx","mode":"xxx"}'
}
fcc.transfer(JSON.parse(phoneModel.params)).then(res => {
console.log('transfer', res)
})1
2
3
4
5
6
7
2
3
4
5
6
7
入参说明
| 参数名 | 数据类型 | 选取原则 | 说明 |
|---|---|---|---|
| callId | string | 必选 | 从等待队列查询出来的通话标志 |
| address | string | 必选 | 转移地址,即转移设备类型对应的设备ID, 转外线时是对方号码 |
| devicetype | integer(int32) | 必选 | 转移设备类型,技能队列为1,坐席为2 |
| mode | string | 必选 | 转移模式:释放转为0,挂起转为1(支持:IVR),成功转为2(支持:技能、坐席、接入码、外线),通话转为3(支持:外线),三方转为4(支持:外线) |
| callappdata | string | 非必选 | 需设置的随路数据,内容可为空 |
| caller | string | 非必选 | 主叫号码 |
| mediaability | integer(int32) | 非必选 | 媒体能力。(默认为0。0:音频,1:视频) |
出参说明
| 出参名称 | 数据类型 | 说明 |
|---|---|---|
| status | number | 调用接口返回结果的状态码,其含义参考融合通讯中台通用状态码。 |
| msg | string | 给开发者的文字提示信息 |
| data | object | 返回的信息 |
