更新时间:2025-12-01 GMT+08:00
分享

增加

场景描述

调用该接口增加被叫配置。

接口方法

该接口仅支持POST方法,不支持PUT、GET和DELETE等方法。

接口URI

https://ip:port/agentgateway/resource/config/vdn/calledroute?dnId=5

其中,ip为CC-Gateway服务器地址,port为CC-Gateway服务器的HTTPS端口号。

表1 URI携带的参数说明

序号

名称

参数类型

是否必选

说明

1

dnId

number

False

被叫配置ID编号。

取值的类型为整数,取值范围为1-10000。

如果为空,则返回一个dnId。

日志中的方法名

addCallInfo

请求消息

  • 消息头
    表2 消息头参数说明

    序号

    名称

    参数类型

    是否必选

    说明

    1

    Content-Type

    string

    True

    消息主体编码方式,缺省值:application/json; charset=UTF-8

    2

    Guid

    string

    True

    Guid的取值为C5 智能辅助类接口鉴权方式接口返回的guid。

  • 消息体
    表3 消息体参数说明

    序号

    名称

    参数类型

    是否必选

    说明

    1

    accesscode

    string

    True

    接入码。

    2

    subcode

    string

    False

    后续接入码。

    最大长度为24位。

    取值:0123456789*#。

    3

    devicetype

    number

    True

    被叫设备类型:

    1:技能队列

    3:IVR

    4

    deviceId

    number

    True

    对应设备ID。当devicetype为1时,此处为技能队列编号,devicetype为3时,此处为IVR编号。

响应消息

表4 消息体参数说明

序号

名称

参数类型

说明

1

message

string

描述

2

retcode

string

错误码。取值如下:

3

result

object

结果内容。该对象参数说明请参见表5

表5 result参数说明

序号

名称

参数类型

说明

3.1

dnId

number

被叫配置ID编号

如果为空,则返回一个dnId

报文样例

  • 消息头
    Content-Type:application/json; charset=UTF-8
    Guid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.AgentGateway1
  • 请求参数
    {
        "accesscode": 1008,
        "subcode": "101",
        "devicetype": 1,
        "deviceId": 1
    }
  • 响应参数
    {
        "result": [
            {
                "dnId": 10
            }
        ],
        "message": "success",
        "retcode": "0"
    }

相关文档