说明: 由我方运营人员配置客户http推送地址后,平台会将语音话单生成状态报告并主动推送至客户对应的地址。
参数 | 说明 | 类型 |
---|---|---|
voiceId |
记录唯一id |
String |
type |
业务类型:1-群呼,2-验证码,3-话机通话,4-话机直拨 |
Int |
callee |
被叫号码 |
String |
displayNum |
显示号码 |
String |
submitTime |
提交时间(毫秒时间戳) |
long |
callTime |
呼叫时间(毫秒时间戳) |
long |
ringingTime |
响铃时间(毫秒时间戳) |
long |
answerTime |
接听时间(毫秒时间戳) |
long |
hangupTime |
挂断时间(毫秒时间戳) |
long |
callDuration |
通话时长(秒) |
Int |
chargedDuration |
计费时长(秒) |
Int |
billPeriod |
计费周期:20+20,60+60 |
String |
code |
地区运营商 |
String |
voiceFileId |
语音文件id |
String |
rate |
费率(€) |
String |
baseCost |
基础费用(€) |
String |
costEur |
消费金额(€) |
String |
terminationCode |
sip code,200代表成功建立通话 |
String |
terminationReason |
状态码描述 |
String |
calledInfo |
被叫信息,0-1000位字符 |
String |
cost |
消费金额(报价币种) |
String |
sipCode |
sip码 |
String |
feedbackValue |
按键反馈值(-1:无,非-1:按键值) |
String |
ringDuration |
响铃时长 |
String |
currency |
报价币种,EUR/USD(报价币种非美金时有值) |
String |
settleRate |
本币费率(报价币种非美金时有值) |
String |
quoteExchange |
客户侧报价汇率(报价币种非美金时有值) |
String |
settlePay |
本币消费金额(报价币种非美金时有值) |
String |
用户配置的http推送地址
Request URL:
用户配置的http推送地址
Request Method:
POST
Request Headers:
User-Agent: Java/1.8.0_232
Content-Type: application/json;charset=UTF-8
Request Body:
{
"voiceId":"12205181141482000029",
"type":1,
"callee":"63123456788",
"displayNum":"6311012125",
"submitTime":1652845308038,
"callTime":1652845308353,
"ringingTime":1652845308353,
"answerTime":1652845308353,
"hangupTime":1652845308353,
"callDuration":0,
"chargedDuration":0,
"billPeriod":"20+20",
"code":"India(Karnataka)",
"voiceFileId":"220220518a35e5dbc3037464bbea64a6a95dae0c8.mp3",
"rate":"0.82",
"baseCost":"1.0",
"costEur":"1.0",
"terminationCode":"200",
"terminationReason":"Call failed",
"calledInfo":"calledInfo",
"cost": "2",
"sipCode":"200",
"feedbackValue": "1",
"ringDuration":1,
"settleRate": "1.2793",
"quoteExchange": "0.938",
"currency":"EUR",
"settlePay":"1.2793"
}
Http响应200成功即可,平台不做响应内容校验