语音回执
我们会给每一通电话推送回执
响应元素
字段名 | 类型 | 描述 | 默认值 | 是否必填 |
---|---|---|---|---|
batchId | string | 批量提交ID | "" | Yes |
accountId | number | 账户ID | 0 | Yes |
initiatedTimestamp | Date | 呼叫发起时间 | No | |
connectedTimestamp | Date | 呼叫接通时间 | No | |
disconnectedTimestamp | Date | 呼叫断开时间 | No | |
destination | string | 呼叫的手机号 | Yes | |
callStatus | string | 呼叫状态: COMPLETED/FAILED | Yes | |
callDuration | number | 呼叫时长 | 0 | Yes |
errorDetails | ErrorDetails | 错误信息 | No |
ErrorDetails
字段名 | 类型 | 描述 | 默认值 | 是否必填 |
---|---|---|---|---|
errorCode | string | 错误码 | 0 | Yes |
errorMsg | string | 错误信息 | "" | Yes |
呼出成功示例
{
"sessionId": "4cba63df-303c-475f-8a64-14dd638c4668",
"accountId": 60000323,
"initiatedTimestamp": "2024-07-12T02:38:08Z",
"connectedTimestamp": "2024-07-12T02:38:08Z",
"disconnectedTimestamp": "2024-07-12T02:38:33Z",
"destination": "+55xxxxxxxx",
"callStatus": "COMPLETED",
"callDuration": 24,
"errorDetails": {}
}
呼出失败示例
{
"sessionId": "aee0ca6e-d37c-424b-ab45-0a7ddb43c398",
"accountId": 60000323,
"destination": "+5592994955887",
"callStatus": "FAILED",
"errorDetails": {
"errorCode": "NOCHAN",
"errorMsg": "NOCHAN"
}
}