2.5 挂断
应用场景:通话中
标识(key):hangup
传入参数(data):
非必填参数,调用接口时请传递参数名,参数值可为空
序号 | 名称 | 类型 | 是否必填 | 说明 |
---|---|---|---|---|
1 | id | String | 是 | 对接ID |
示例代码:
//挂断
function hangup() {
let obj = {
key: 'hangup',
data: {
id: phoneId, // 对接ID
}
}
telephoneFunction(obj);
}
挂断的回调事件说明:
{
"key": "CTIResponse",
"name": "通话信令",
"data": {
"agentnum": "1007",
"tenantid": "acf528a2-xxxx-xxxx-xxxx-74cb3995cfab",
"type": "response",
"command": "agentHangup", // 座席挂断事件
"retmsg": "succed!",
"retcode": 200
}
}
{
"key": "CTIEvent",
"name": "通话信令",
"data": {
"callid": "c52bf3f5-xxxx-xxxx-xxxx-2ecaaf3a15d3",
"agentnum": "1007",
"calldirection": "call out",
"tenantid": "acf528a2-xxxx-xxxx-xxxx-74cb3995cfab",
"memo": "02863208372",
"sessionid": "2480aabb-xxxx-xxxx-xxxx-43c380efe62f",
"dnis": "02863208372",
"type": "event",
"ani": "131xxxxxxxx",
"command": "call_hangup" // 通话结束事件
}
}
文档更新时间: 2024-09-24 14:31 作者:admin