2.9 转IVR流程

应用场景:通话中

标识(key):ivr

传入参数(data):

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