2.2 登出

标识(key):logout

传入参数(data):

序号 名称 类型 是否必填 说明
1 id String 对接ID
示例代码:
//登出
function logout() {
  let obj = {
    key: 'logout',
    data: {
      id: phoneId, // 对接ID
    }
  }
  telephoneFunction(obj);
}
登出的回调事件说明:
{
    "key": "CTIResponse",
    "name": "通话信令",
    "data": {
        "agentnum": "1007",
        "tenantid": "acf528a2-xxxx-xxxx-xxxx-74cb3995cfab",
        "type": "response",
        "command": "agentLogout", // 登出事件
        "retmsg": "succed!",
        "retcode": 200 // 200代表登出成功,非200登出失败
    }
}
文档更新时间: 2024-08-28 14:30   作者:admin