Skip to main content

通用API - 通话记录回调参数说明

通话记录回调参数说明

话单回调需要给对应的账号配置上回调地址即可。 话单的回调地址配置:由客户提供一个可以接收json数据的接口地址,由我们配置或客户自行在后台配置都可以。

通话记录回调数据格式json

{
     "id": 263056202,
    "companycode": "9513923",
    "direction": "callout",
    "type": "callout",
    "callmethod": 3,6,
    "starttime": "2018-03-142025-10-16 12:18:21"17:31:13",
    "answertime": "",
    "endtime": "2018-03-142025-10-16 12:18:35"17:31:21",
    "duration": 14,8,
    "billsec": 0,
    "crmid"userid": "2001"0",
    "hangupdirection"memberid": 10015,"0",
    "chengshudu": "0",
    "hangupcause": 10001, 
    "memberid"ext": "18533700187590656"0",
    "disnumber": "02566823420"219513923001",
    "destnumber": "015029913692"81351111451",
    "downloadip"extnumber": "120.76.152.137"",
    "recordfilename": "",
    "companycode": 20000013,  
    "type"downloadip": "callout"",
    "id"hangupdirection": 982,10040,
    "extnumber"hangupcause": "7003",10020,
    "uuid": "cda5c6c4-0a17-11e8-b177-e7cbf2bd1f36"db4a44cc-aa72-11f0-ad78-1d7ff0749d07",
    "userkey":1, "",
    "customuuid": "customuuid"76c33d997640d36b033d43b1d2d3964e",
    "taskid": "",
    "round": 0,
    "recordurl": ""
}

通话记录回调参数说明

参数名 类型 说明
callmethod int 呼叫方法:0、不限;1、分机互拨;2、分机直拨(手拨);3、API呼叫(默认);4、API双呼;5、预测式外呼;6、IVR/群呼。
starttime string 呼叫时间
answertime string 应答时间
endtime string 通话结束时间
duration int 呼叫等待时长
billsec int 通话时长
crmiduserid string 员工工号
hangupdirectionext intstring 挂机方向自定义参数-扩展参数
chengshudu string 自定义参数-成熟度值和ext一致
hangupdirectionint挂机方向
hangupcause int 挂机原因代码
memberid string 自定义参数-会员id
disnumber string 主叫号码
destnumber string 被叫号码
downloadip string 录音下载ip
recordfilename string 录音文件名
companycode string 公司id
type string 呼叫类型
extnumber string 分机号
uuid string 通话uuid
userkey string 用户按键
customuuid string 自定义参数-客户id
taskidstring任务id
roundstring呼叫轮次
recordurlstring录音下载地址