放音重定位
前置条件
- 座席已签入
- 座席开始放音
场景描述
在座席使用排队机回放录音文件或是播放彩铃音时,调用该接口可以跳转至录音文件中指定的位置进行播放。
接口方法
设置成“POST”。该接口仅支持POST方法,不支持PUT、GET和DELETE等方法。
接口URI
https://ip:port/agentgateway/resource/recordplay/{agentid}/playrelocation
如果CC-Gateway单机部署,IP地址为CC-Gateway服务器地址,port为CC-Gateway服务器的HTTPS端口号,默认值为8043;如果CC-Gateway采用集群模式部署,IP请配置为NSLB地址, Port请配置为默认值8043。
NSLB上的CC-Gateway端口号,请以nslb用户登录任意一个NSLB节点,执行./nslbctl l查询,查询结果中,如下端口表示CC-Gateway通过NSLB面向第三方系统开放的端口。

SaaS场景下请咨询运维人员获取IP和Port。
|
序号 |
参数名 |
数据类型 |
选取原则 |
说明 |
|---|---|---|---|---|
|
1 |
agentid |
string |
True |
座席的工号,取值范围:101~999999。 |
日志中的方法名
playRelocation
请求说明
- 消息头
表2 请求头参数说明 序号
名称
参数类型
是否必选
说明
1
Content-Type
string
True
消息主体编码方式,缺省值:application/json; charset=UTF-8
2
Guid
string
True
静态鉴权(AUTHMODE = 1)签入接口返回的Guid;动态鉴权(AUTHMODE = 2)轮询事件接口返回的Guid。
- 消息体
表3 消息体参数说明 序号
名称
参数类型
是否必选
说明
1
seekdirection
Integer
False
重定向方向。
取值范围:
- 0:前进
- 1:后退
仅在 “seekposition”设置为1时,有效。
2
seekseconds
Integer
True
重定向偏移量,单位秒
3
seekposition
Integer
True
重定位相对位置。
取值范围:
- 0:相对文件头进行重定位
- 1:相对文件当前位置进行重定位
- 2:相对文件尾进行重定位
响应说明
|
序号 |
名称 |
参数类型 |
说明 |
|---|---|---|---|
|
1 |
message |
string |
响应描述 |
|
2 |
retcode |
string |
响应编码。取值范围:
|
|
3 |
result |
object |
预留字段 |
触发事件
- 无
错误结果码
- 000-002
- 100-007
- 500-012
- 500-013
报文样例
- 消息头
Content-Type:application/json; charset=UTF-8 Guid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.AgentGateway1
- 请求参数
{ "seekdirection":1, "seekseconds":10, "seekposition":2 } - 响应参数
{ "result": {}, "message": "success", "retcode": "0" }