云服务器内容精选

  • 接口URI https://ip:port/agentgateway/resource/recordfile/{agentid}/videofiledownloadEx?recordId=xxx&locationId=xxx 例 其中,ip为CC-Gateway服务器地址,port为CC-Gateway服务器的HTTPS端口号。 表1 URI中携带的参数说明 序号 名称 参数类型 是否必选 说明 1 agentid string True 座席的工号,取值范围:101~59999。 2 recordId string True 视频文件路径。 说明: 如果recordId不传,默认下载第一条录播地址对应的视频文件。 3 locationId int False 节点Id(CTI POOL模式下为必选)
  • 响应说明 该接口的响应说明体举例如下: 下载失败时: 消息头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 消息体 文件流
  • 报文样例 消息头 Content-Type:application/json; charset=UTF-8Guid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.AgentGateway1 请求参数 无 响应参数 { "retcode": "000-003", "message": "no right to invite resource", "result": ""}
  • 前置条件 Gateway已经打开了视频文件下载开关(VIDEO_DOWNLOAD_FLAG 配置为ON)和视频事件开关(IF_SUPPORT_VIDEO配置为ON),配置文件路径:/home/elpis/tomcat/webapps/agentgateway/WEB-INF/config/basic.properties。 Gateway已经挂载文件服务器。 座席已签入。 配置文件中已配置挂载目录。