云服务器内容精选

  • 报文样例 消息头 Content-Type:application/json; charset=UTF-8 Guid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.AgentGateway1 请求参数 无 响应参数 { "retcode": "000-003", "message": "no right to invite resource", "result": "" }
  • 响应说明 该接口的响应说明体举例如下: 下载失败时: 消息头Content-Type: application/json;charset=UTF-8 消息体示例请参见报文样例 表3 消息体参数说明 序号 名称 参数类型 说明 1 message string 描述 2 retcode string 错误码。取值如下: 0:成功 非0:失败 3 result object 预留字段 下载成功时: 消息头 Content-Type: application/octet-stream;charset=utf-8 消息体 文件流
  • 接口URI https://ip:port/agentgateway/resource/recordfile/{agentid}?recordId= xxx&filetype=1 例:https://ip:port/agentgateway/resource/recordfile/102?recordId=y:/1/0/20181217/120/1524488.V3 其中,ip为CC-Gateway服务器地址,port为CC-Gateway服务器的HTTPS端口号。 表1 URI中携带的参数说明 序号 名称 参数类型 是否必选 说明 1 agentid string True 签入的座席id。 2 recordId string True 录音文件的路径和名称。 录音文件的路径和名称是在触发了AgentMediaEvent_Record时生成的,在fileName中返回。 录音文件路径格式详见下方说明。 3 filetype string False 录音文件类型: 1:座席通话录音 2:IVR留言录音或者第三方留言录音文件 说明: 座席通话录音文件路径格式为:盘符:/vdn编号/目录号/****。例:y:/1/0/20181217/120/1524488.V3 IVR录音留言录音文件路径格式为:盘符:/vdn编号/record/****。例:y:/1/record/20190412/playvoice1551276018824.wav 第三方留言录音文件路径格式为:盘符:/3rdfile/vdn编号/record/***。例:y:/3rdfile/1/record/20190408/515/1633022.V3 默认为座席通话录音 4 locationId number False 节点Id(CTI POOL模式下为必选),在触发了AgentMediaEvent_Record时生成。
  • 接口URI https://ip:port/agentgateway/resource/recordfile/{agentid}/recordfiledownloadEx?callId= xxx&hwFileName=1 例:https://10.244.154.23:8043/agentgateway/resource/recordfile/4977/recordfiledownloadEx?callId=1621413752-2011&hwFileName=Y:/90/0/20210519/4977/1642329.mp4 其中,ip为CC-Gateway服务器地址,port为CC-Gateway服务器的HTTPS端口号。 表1 URI中携带的参数说明 序号 名称 参数类型 是否必选 说明 1 agentid string True 签入的座席id。 2 callId string True 呼叫ID 3 hwFileName string False 文件路径。 如果不传hwFileName,下载的是音频文件; 如果传hwFileName,下载的是视频文件,例:Y:/90/0/20210519/4977/1642329.mp4。 4 workNo string False 被质检座席工号。 签入座席为质检员且hwFileName为空时需要传入。
  • 报文样例 消息头 Content-Type:application/json; charset=UTF-8Guid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.AgentGateway1 请求参数 无 响应参数 { "retcode": "000-003", "message": "no right to invite resource", "result": ""}
  • 响应说明 该接口的响应说明体举例如下: 下载失败时: 消息头Content-Type: application/json;charset=UTF-8 消息体示例请参见报文样例 表3 消息体参数说明 序号 名称 参数类型 说明 1 message string 描述 2 retcode string 错误码。取值如下: 0:成功 非0:失败 3 result object 预留字段 下载成功时: 消息头 Content-Type: application/octet-stream;charset=utf-8 消息体 文件流