质检结果获取
- 系统支持自动获取质检结果、自动推送质检结果两种模式,超级管理员在质检设置和绑定设置两种模式
1、自动获取质检结果
接口说明:
- 接口采用 json + http 模式,请求和响应数据均为 utf-8 编码的 json 格式
- 请求内容包含:请求消息体
- 响应内容为 json 字符串
- 请求方式:post
- 请求示例:
Accept: application/json
Content-Type: application/josn;charset=utf-8
{
"sign":"2decb5411cda102a7c1bf4d70a711a1c",
"code":"s16",
"page":"1",
"stime":"2025-03-19 12:00:00",
"etime":"2025-03-19 14:00:00"
}
sign 签名认证规则
code: 公司CODE 如:cs
TOKEN:系统管理员提供 如:wfwl@123
time:10位时间戳 如:1742901723
签名规则为:
第一步: 将 code、time 、token 进行字符串拼接
第二步: 将拼接后的字符串进行串进行 MD5 加密
如:公司CODE code=cs,time=1742901723, token=wfwl@123 为例;
sign=md5(cs1742901723wfwl@123)
最终 sign = d5264e73b7e04f3311206705fb7b6fc6
接口地址
GET:http://183.253.17.205:6984/voiceapi/getlist.php
请求参数:
参数名 |
是否必须 |
类型 |
参数值 |
说明 |
code |
是 |
string |
公司cod |
公司cod |
sign |
是 |
string |
签名认证 |
签名认证 |
page |
是 |
string |
当前页码 |
例:1 ,默认第1页 |
limit |
否 |
string |
每页多少条 |
例:1000,默认1000条,最大为1000 |
stime |
否 |
string |
Y-m-d H:i:s |
开始时间,默认 当天xxxx-xx-xx 00:00:00 |
etime |
否 |
string |
Y-m-d H:i:s |
结束时间,默认 当天xxxx-xx-xx 23:59:59 |
src |
否 |
string |
主叫号码 |
|
dst |
否 |
string |
被叫号码 |
|
qtd_ids |
否 |
string |
上传录音返回的唯一标识 |
多个以英文逗号隔开,如123wsq,jhtc567" |
postman 请求示例:

成功返回结果:
{
"status": 1,
"msg": "ok",
"count": 1,
"page": 1,
"pages": 1,
"limit": 1000,
"data": [
{
"uniqueid": "1742897415.170872",
"caller_ip": "14.215.47.56",
"callee_ip": "14.215.47.56",
"real_ip": "14.215.47.56",
"caller": "8000",
"callee": "189********03",
"out_business": "未知类型",
"out_call_status": "已接通",
"call_start_time": "2025-03-25 18:10:15",
"call_end_time": "2025-03-25 18:10:28",
"call_connection_time": "0",
"rule_id": "15282,15283,15284,15285,15286,15287,15288,15289,15290,15291,15292,15293,15294,15295,15296,15297,1529",
"risk_level": "无风险",
"status": "质检完成",
"seats_audio_url": "https:/********6804_s.mp3",
"customer_audio_url": "",
"seats_audio_content": "你好,喂喂喂,你好,哪位。",
"customer_audio_content": "",
"call_time": "2025-03-25 18:11:02",
"finish_time": "2025-03-25 18:11:07",
"hits": "[{\"name\":\"通话状态\",\"hit_content\":\"通话时长大于等于00:00:06#\"}]",
"tag": "",
"full_audio_url": "https://mch********72e6804.mp3",
"talk_time": "13",
"play_seats_audio_url": null,
"qtd_id": "47a57*****f72e6804",
"audio_time": "7",
"mch_id": "32*****22",
"group_name": "",
"call_times": ""
}
]
}
返回参数说明:
参数名 |
类型 |
参数值 |
status |
boolean |
1 0 |
msg |
string |
ok |
count |
string |
总数量 |
page |
string |
当前页数 |
pages |
string |
总页数 |
limit |
string |
每页显示条数 |
data |
string |
json数据 |
∟ uniqueid |
string |
通话记录唯一标识 |
∟ caller_ip |
string |
主叫 IP |
∟ callee_ip |
string |
被叫 IP |
∟ real_ip |
string |
调用 IP |
∟ caller |
string |
主叫 |
∟ callee |
string |
被叫 |
∟ out_business |
string |
输出业务类型 |
∟ out_call_status |
string |
输出通话状态 |
∟ call_start_time |
string |
通话开始时间 |
∟ call_end_time |
string |
通话结束时间 |
∟ rule_id |
string |
规则 id |
∟ risk_level |
string |
风险等级 |
∟ status |
string |
质检状态 |
∟ seats_audio_url |
string |
座席语音地址 |
∟ customer_audio_url |
string |
客户语音地址 |
∟ call_time |
string |
调用时间 |
∟ finish_time |
string |
质检完成时间 |
∟ seats_audio_content |
string |
座席语音转写内容 |
∟ customer_audio_content |
string |
客户语音转写内容 |
∟ hits |
string |
命中质检规则信息 |
∟∟ name |
string |
质检规则名称 |
∟∟ hit_content |
string |
命中项内容 |
∟ tag |
string |
标签 |
∟ full_audio_url |
string |
完整录音地址 |
∟ talk_time |
string |
通话时长 |
∟ audio_time |
string |
媒体时长 |
∟ play_seats_audio_url |
string |
座席播放语音地址 |
∟ qtd_id |
string |
质检唯一标识 |
∟ mch_id |
string |
商户号 |
∟ group_name |
string |
群组名称 |
2、服务器推送质检结果
返回参数说明:
参数名 |
类型 |
参数值 |
status |
boolean |
1 0 |
msg |
string |
ok |
count |
string |
总数量 |
page |
string |
当前页数 |
pages |
string |
总页数 |
limit |
string |
每页显示条数 |
data |
string |
json数据 |
∟ uniqueid |
string |
通话记录唯一标识 |
∟ caller_ip |
string |
主叫 IP |
∟ callee_ip |
string |
被叫 IP |
∟ real_ip |
string |
调用 IP |
∟ caller |
string |
主叫 |
∟ callee |
string |
被叫 |
∟ out_business |
string |
输出业务类型 |
∟ out_call_status |
string |
输出通话状态 |
∟ call_start_time |
string |
通话开始时间 |
∟ call_end_time |
string |
通话结束时间 |
∟ rule_id |
string |
规则 id |
∟ risk_level |
string |
风险等级 |
∟ status |
string |
质检状态 |
∟ seats_audio_url |
string |
座席语音地址 |
∟ customer_audio_url |
string |
客户语音地址 |
∟ call_time |
string |
调用时间 |
∟ finish_time |
string |
质检完成时间 |
∟ seats_audio_content |
string |
座席语音转写内容 |
∟ customer_audio_content |
string |
客户语音转写内容 |
∟ hits |
string |
命中质检规则信息 |
∟∟ name |
string |
质检规则名称 |
∟∟ hit_content |
string |
命中项内容 |
∟ tag |
string |
标签 |
∟ full_audio_url |
string |
完整录音地址 |
∟ talk_time |
string |
通话时长 |
∟ audio_time |
string |
媒体时长 |
∟ play_seats_audio_url |
string |
座席播放语音地址 |
∟ qtd_id |
string |
质检唯一标识 |
∟ mch_id |
string |
商户号 |
∟ group_name |
string |
群组名称 |