事件名称 | Event | 说明 |
---|---|---|
话单上报事件 | callbillrpt | 呼叫中坐席和用户都已经挂机,会话结束,触发话单上报事件,上报话单详情 |
计费状态事件 | caccstaterpt | 呼叫过程,余额不足,通话超过最长时间,计费服务器响应异常时等都会上报计费状态。 |
属性 | 类型 | 约束 | 说明 |
---|---|---|---|
serviceId | String | 可选 | 坐席ID号 |
callMethod | String | 可选 | 坐席通话方式 |
serviceTime | String | 可选 | 坐席通话时间 |
startTime | String | 必选 | 坐席开始通话时间 |
属性 | 类型 | 约束 | 说明 |
---|---|---|---|
event | String | 必选 | 事件名称 callbillrpt |
appId | String | 必选 | 应用唯一标识 |
callId | String | 必选 | 呼叫ID |
callerCode | String | 必选 | 主叫号码 |
calledCode | String | 必选 | 被叫号码 |
totalTime | String | 必选 | 通话总时长 |
ivrTime | String | 必选 | ivr时长 |
userTime | String | 必选 | 用户通话时长 |
serviceTime | String | 必选 | 坐席时长 |
tts | String | 必选 | tts次数 |
hangupReason | String | 必选 | 挂机原因 |
charge | String | 必选 | 通话费用 |
detailList | String | 必选 | 坐席账单详情 参考详单对象 |
通知示例
通知示例
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <request> <appId>247e35ff320a4142a105024055c367cf </appId> <callId>2015100908563101533CTI</serviceId> <callerCode>075586682088</callerCode> <calledCode>075586682088</calledCode> <totalTime>20</totalTime> <userTime>20</userTime> <ivrTime>5</ivrTime> <serviceTime>15</serviceTime> <tts>0</tts> <charge>0</charge> <event>callbillrpt</event> <timeStamp>20160131170852107</timeStamp> <detailList> <Detail> <callMethod>PHONE</callMethod> <serviceId>69864060011630</serviceId> <serviceTime>6</serviceTime> <startTime>20160305103430</startTime> </Detail> <Detail> <callMethod>PHONE</callMethod> <serviceId>69864060011630</serviceId> <serviceTime>4</serviceTime> <startTime>20160305103452</startTime> </Detail> </detailList> </request>
属性 | 类型 | 约束 | 说明 |
---|---|---|---|
event | String | 必选 | 事件名称 caccstaterpt |
appId | String | 必选 | 应用唯一标识 |
callId | String | 必选 | 呼叫ID |
errorCode | Int | 可选 | 错误码
|
通知示例
通知示例
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <request> <event> caccstaterpt </event> <callId> 7dbc2536-c01d-11e5-a5b4-5d5dac84681f </callId> <appId> bb8e39dee6a24cedbb23970fa83b4114 </appId> <errorCode>1</errorCode> <timeStamp>20160131170852107</timeStamp> </request>