外观
通话事件推送 V1
本文对应事件对接中的 V1 页签。如需接收座席签入、签出或工作状态变化,请在 V2 页签订阅座席状态(agent.state)。
推送说明
推送请求为post类型,接收到推送后,http状态需返回200,否则认为推送失败,执行重推逻辑,最大推送5次。
1、通话记录推送
推送示例
json
{
"callId": "746610482640064512",
"superUniqueId": "746610482640064512",
"accountId": "18888",
"callType": "dialout",
"status": "ANSWER",
"failureReason": "",
"failureReasonDesc": "未识别",
"hangupSide": "AGENT",
"refCallId": "",
"refSuperUniqueId": "",
"refAgentNumber": "",
"customerNumber": "13800000000",
"customerNumberProvince": "北京",
"customerNumberCity": "北京",
"displayNumber": "01012345678",
"displayNumberProvince": "北京",
"displayNumberCity": "北京",
"serviceNumber": "",
"agentTelNumber": "1000000000003",
"groupNumber": "",
"groupName": "",
"agentId": "680320286164312324",
"agentNumber": "2000",
"agentName": "座席名称",
"startTime": "2023-06-01, 20:15:51",
"queueStartTime": "",
"customerRingTime": "2023-06-01 20:15:51",
"customerAnswerTime": "2023-06-01 20:15:51",
"agentRingTime": "2023-06-01 20:15:51",
"agentAnswerTime": "2023-06-01 20:15:51",
"bridgeTime": "2023-06-01 20:15:51",
"recordStartTime": "2023-06-01 20:15:51",
"hangupTime": "2023-06-01 20:16:01",
"satisfactionStartTime": "",
"satisfactionEndTime": "",
"endTime": "2023-06-01 20:16:01",
"callDuration": 10,
"queueDuration": 0,
"customerRingDuration": 1,
"satisfactionDuration": 0,
"recordUrl": "https://****.mp3",
"earlyMediaRecordingUrl": "https://****.mp3",
"satisfactionType": "auto",
"satisfactionKeys": [],
"taskId": "",
"customParams": ""
}字段说明
| 字段 | 说明 |
|---|---|
callId | 通话id |
superUniqueId | 通话id,同callId |
accountId | 账号编号 |
callType | 通话类型 'incoming':呼入,'dialout': "外呼",'webcall':双向回呼,'transfer':转接,'consultTransfer':咨询转接,'consult':咨询,'listen':监听,'whisper':耳语,'previewDialout':预览外呼,'autoDialout':自动外呼,'breakIn':强插,'ipPhonesDialout':话机外呼 |
status | 通话状态:'CALL_LIMIT':并发限制,'BLACK_LIST'黑名单限制,'ANSWER'已接听,'IVR'语音导航中挂机, 'QUEUE_ABANDON'排队放弃,'VOICEMAIL'留言,'AGENT_NO_ANSWER'座席未接听,'CUSTOMER_NO_ANSWER'客户未接听,'CALL_THREEWAY':三方,'CALL_TRANSFER'呼叫转移,'CALL_CONSULT'咨询已接听,'CALL_CONSULT_TRANSFER': 咨询转移 |
failureReason | 失败原因key |
failureReasonDesc | 失败原因描述 |
hangupSide | 挂机方 CUSTOMER 客户 AGENT 座席 SYSTEM 系统 |
refCallId | 关联通话记录id,如转接对应的前一个通话记录 |
refSuperUniqueId | 关联通话记录id,同refCallId |
refAgentNumber | 关联座席工号,如转接自某座席 |
customerNumber | 客户号码 |
customerNumberProvince | 客户号码省份 |
customerNumberCity | 客户号码城市 |
displayNumber | 外显号 |
displayNumberProvince | 外显号省份 |
displayNumberCity | 外显号城市 |
serviceNumber | 服务号,呼入时有值 |
agentTelNumber | 座席号码或外线号码(外线号码: ivr转人工可配置外线号码) |
groupNumber | 技能组编号 |
groupName | 技能组名称 |
agentId | 座席id |
agentNumber | 座席工号 |
agentName | 座席名称 |
startTime | 呼叫开始时间 |
queueStartTime | 进入队列时间 |
customerRingTime | 客户振铃时间 |
customerAnswerTime | 客户接通时间 |
agentRingTime | 座席振铃时间 |
agentAnswerTime | 座席接通时间 |
bridgeTime | 桥接时间,即两方接通时间 |
recordStartTime | 录音开始时间 |
hangupTime | 挂机时间 |
satisfactionStartTime | 满意度开始时间 |
satisfactionEndTime | 满意度结束时间 |
endTime | 结束时间 |
callDuration | 通话时长 = 挂机时间 - 桥接时间 |
queueDuration | 排队时长 = 呼叫座席的时间 - 进入队列的时间 |
customerRingDuration | 客户振铃时长 = 客户接通时间 - 客户振铃时间 |
satisfactionDuration | 满意度调查时长 |
earlyMediaRecordingUrl | 前媒体录音,需要开启录音开关 |
satisfactionType | 满意度类型 auto: 自动转满意度 manual: 手动转满意度 |
satisfactionKeys | 满意度按键值记录 |
taskId | 外呼任务id |
customParams | 自定义参数 |
2、通话事件推送
推送示例
json
{
"eventUniqueId": "f383e2e95cc049ae82ed0db1a7661419",
"callId": "797319823962939392",
"superUniqueId": "797319823962939392",
"accountId": "1001",
"callType": "dialout",
"pushType": "dialoutRing",
"eventType": "ring",
"callEvent": "ring",
"agentNumber": "2000",
"queueNumber": "",
"ivrId": "",
"customerNumber": "01000000000",
"number": "01000000000",
"displayNumber": "01012345678",
"serviceNumber": "01012345678",
"customerNumberProvince": "北京",
"customerNumberCity": "北京",
"customerProvince": "北京",
"customerCity": "北京",
"customParams": "",
"extras": ""
}字段说明
| 字段 | 说明 |
|---|---|
eventUniqueId | 事件ID |
callId | 通话记录ID |
superUniqueId | 通话记录ID,同callId |
accountId | 账户编号 |
callType | 通话类型,'incoming':呼入, 'dialout':外呼, 'webcall':WebCall, 'previewDialout':预览外呼, 'autoDialout':自动外呼, 'consult':咨询, 'transfer':转接, 'consultTransfer':咨询转接 |
pushType | 推送事件类型,'dialoutRing': 外呼振铃, 'dialoutHangup': 外呼挂机, 'incomingRing': 呼入振铃, 'incomingHangup': 呼入挂机, 'link': 客户接通 |
eventType | 事件类型,ring:振铃,link:接通,hangup:挂机 |
callEvent | 事件类型,同eventType |
agentNumber | 座席工号 |
queueNumber | 技能组编号 |
ivrId | 语音导航id |
customerNumber | 客户号码 |
number | 同customerNumber,兼容旧版数据 |
displayNumber | 外显号 |
serviceNumber | 服务号 |
customerNumberProvince | 客户号码省份 |
customerNumberCity | 客户号码城市 |
customerProvince | 同customerNumberProvince,兼容旧版数据 |
customerCity | 同customerNumberCity,兼容旧版数据 |
customParams | 自定义参数 |
extras | 自定义参数,base64,兼容旧版数据 |