Skip to main content

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

通话记录回调参数说明

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

通话记录回调数据格式json

{
    "id": 263056202,
    "companycode": "9513923",
    "direction": "callout",
    "type": "callout",
    "callmethod": 6,
    "starttime": "2025-10-16 17:31:13",
    "answertime": "",
    "endtime": "2025-10-16 17:31:21",
    "duration": 8,
    "billsec": 0,
    "userid": "0",
    "memberid": "0",
    "chengshudu": "0",
    "ext": "0",
    "disnumber": "219513923001",
    "destnumber": "81351111451",
    "extnumber": "",
    "recordfilename": "",
    "downloadip": "",
    "hangupdirection": 10040,
    "hangupcause": 10020,
    "uuid": "db4a44cc-aa72-11f0-ad78-1d7ff0749d07",
    "userkey": "",
    "customuuid": "76c33d997640d36b033d43b1d2d3964e",
    "taskid": "",
    "round": 0,
    "recordurl": ""
}


通话记录回调参数说明Call Record Callback Parameter Description

参数名Parameter Name 类型Type 说明Description
callmethod int 呼叫方法:0、不限;1、分机互拨;2、分机直拨(手拨);3、API呼叫(默认);4、API双呼;5、预测式外呼;6、Calling method: 0, Unrestricted; 1, Extension inter-dial; 2, Extension direct dial (manual); 3, API call (default); 4, API dual call; 5, Predictive dialing; 6, IVR/群呼。Group call.
starttime string 呼叫时间Calling time
answertime string 应答时间Answer time
endtime string 通话结束时间Call end time
duration int 呼叫等待时长Call waiting duration
billsec int 通话时长Call duration
userid string 员工工号Employee ID
ext string 自定义参数Custom parameter -扩展参数 Extended parameter
chengshudu string 自定义参数Custom parameter -扩展参数 Value and ext are the same
hangupdirection int 挂机方向Hang-up direction
hangupcause int 挂机原因代码Hangup cause code
memberid string 自定义参数Custom parameter -会员id Member ID
disnumber string 主叫号码Calling number
destnumber string 被叫号码Called number
downloadip string 录音下载ipRecording download IP
recordfilename string 录音文件名Recording file name
companycode string 公司idCompany ID
type string 呼叫类型Call type
extnumber string 分机号Extension number
uuid string 通话uuidCall UUID
userkey string 用户按键User key
customuuid string 自定义参数Custom parameter -客户id Customer ID
taskid string 任务idTask ID
round string 呼叫轮次Call Round
recordurl string 录音下载地址Audio Recording Download URL