参数 | 说明 |
---|
k | FreeSWITCH 模块名称 |
disabled | 是否启用 0-启用 1-不启用 |
status | 状态 false-未运行 true-运行 |
- 请求 URL:
/api/modules
- 请求方式:
GET
- Body 信息:无
- 返回值:
[
{
"deleted_at": "",
"updated_at": "2022-05-16 09:51:32",
"v": "",
"id": 79,
"k": "mod_console",
"created_at": "2022-05-16 09:51:32",
"realm": "MODULES",
"ref_id": 0,
"disabled": 0
},
{
"deleted_at": "",
"updated_at": "2022-05-16 09:51:32",
"v": "",
"id": 80,
"k": "mod_graylog2",
"created_at": "2022-05-16 09:51:32",
"realm": "MODULES",
"ref_id": 0,
"disabled": 1
}
...
]
curl -XGET -H "X-XTRA-AUTH-ID: 62dd0173-4916-4b1c-b958-546e4d7c91fe" 192.168.1.100:8081/api/modules
- 请求 URL:
/api/modules
- 请求方式:
POST
- Body 信息:
{
"k": "mod_test",
"disabled": "1"
}
curl -POST -H "X-XTRA-AUTH-ID: 69ee9c54-734b-11e7-a262-b5df20245f60" \
-d '{"k": "mod_test","disabled": "1"}' \
-H "Content-Type: application/json" http://192.168.1.100:8081/api/modules
{
"code": 200,
"message": "success",
"data": 1754
}
- 请求 URL:
/api/modules/$id
- 请求方式:
PUT
- Body 信息:
{
"k": "mod_testtwo"
}
curl -XPUT -H "X-XTRA-AUTH-ID: 62dd0173-4916-4b1c-b958-546e4d7c91fe" \
-H "Content-Type: application/json" \
-d '{"k": "mod_testtwo"}' \
192.168.1.100:8081/api/modules/1754
{
"message": "success",
"code": 200,
"data": "1754"
}
- 请求 URL:
/api/modules/$id
- 请求方式:
DELETE
- Body 信息:无
- 返回值:
{
"data": "1754",
"message": "success",
"code": 200
}
示例:
curl -H "X-XTRA-AUTH-ID: 62dd0173-4916-4b1c-b958-546e4d7c91fe" -XDELETE 192.168.1.100:8081/api/modules/1754
字段说明:
字段 | 说明 |
---|
disabled | 是否启用,0启用,1不启用 |
name | 名称 |
params | 参数信息 |
description | 描述 |
action | 按动作查询 |
startDate | 按起始时间查询 |
params中参数说明;
参数 | 说明 |
---|
disabled | 是否启用,0启用,1不启用 |
k | 参数名称 |
v | 参数值 |
realm | 参数对应域 |
ref_id | 对应的XCC 配置 ID |
realm说明:
realm | 说明 |
---|
XCC-SETTINGS | XCC 设置项参数 |
XCC-BINDINGS | 绑定哪些事件,被绑定的事件才会被获取到 |
XCC-SUBS | 订阅哪些事务 |
XCC-CDR | 话单事件中的参数 |
XCC-CHANNEL | 订阅哪些通道变量 |
XCC-DIALPLAN | 订阅DIALPLAN中参数 |
- 请求 URL:
/api/xcc_profiles
- 请求方式:
GET
- Body 信息:无
- 返回值:
[
{
"disabled": 0,
"id": 1,
"description": "default",
"updated_at": "2022-05-16 09:51:32",
"deleted_at": "",
"created_at": "2022-05-16 09:51:32",
"name": "xcc"
}
]
- 请求 URL:
/api/xcc_profiles/$id
- 请求方式:
GET
- Body 信息:无
- 返回值:
{
"description": "default",
"created_at": "2022-05-16 09:51:32",
"params": [
{
"disabled": "0",
"created_at": "2022-05-16 09:51:32",
"realm": "XCC-SETTINGS",
"k": "debug",
"deleted_at": "",
"id": "478",
"v": "0",
"ref_id": "1",
"updated_at": "2022-05-16 09:51:32"
},
{
"disabled": "0",
"created_at": "2022-05-16 09:51:32",
"realm": "XCC-SETTINGS",
"k": "mq-type",
"deleted_at": "",
"id": "479",
"v": "NATS",
"ref_id": "1",
"updated_at": "2022-05-16 09:51:32"
}
...
],
"deleted_at": "",
"id": 1,
"name": "xcc",
"updated_at": "2022-05-16 09:51:32",
"disabled": 0
}
- 请求 URL:
/api/xcc_profiles
- 请求方式:
POST
- Body 信息:
{
"name": "test",
"disabled": "0",
"template": "default"
}
{
"message": "success",
"code": 200,
"data": "2"
}
- 请求 URL:
/api/xcc_profiles/$id
- 请求方式:
PUT
- Body 信息:
{
"name": "test",
"disabled": "0"
}
注:当携带disabled
参数的时候,会返回全部的配置内容
{
"message": "success",
"code": 200,
"data": [
{
"name": "xcc",
"description": "default",
"disabled": 1,
"deleted_at": "",
"id": 1,
"updated_at": "2023-03-11 03:47:17",
"created_at": "2023-03-03 02:46:42"
},
{
"name": "test2",
"description": "",
"disabled": 1,
"deleted_at": "",
"id": 2,
"updated_at": "2023-03-11 03:47:17",
"created_at": "2023-03-11 02:38:09"
}
]
}
不携带`disabled`参数时:
{
"data": "2",
"message": "success",
"code": 200
}
- 请求 URL:
/api/xcc_profiles/$id/params
- 请求方式:
POST
- Body 信息:
{
"k": "test",
"v": "11",
"realm": "XCC-CDR"
}
{
"message": "success",
"code": 200,
"data": 1840
}
- 请求 URL:
/api/xcc_profiles/$id/params/$param_id
- 请求方式:
PUT
- Body 信息:
{
"action": "toggle"
}
或
{
"k": "test",
"v": "true"
}
{
"code": 200,
"message": "success",
"data": "1840"
}
- 请求 URL:
/api/xcc_profiles/$id/params/$params_id
- 请求方式:
DELETE
- Body 信息:无
- 返回值:
{
"code": 200,
"data": "1840",
"message": "success"
}
- 请求 URL:
/api/xcc_profiles/$id
- 请求方式:
DELETE
- Body 信息:无
- 返回值:
{
"code": 200,
"data": "2",
"message": "success"
}
- 请求 URL:
/api/xcc_rtc
- 请求方式:
GET
- Body 信息:无
- 返回值:
[
{
"description": "default profile",
"id": 1,
"name": "default",
"disabled": 0,
"created_at": "2022-05-16 09:51:32",
"deleted_at": "",
"updated_at": "2022-05-16 09:51:32"
}
]
- 请求 URL:
/api/xcc_rtc/$id
- 请求方式:
GET
- Body 信息:无
- 返回值:
{
"deleted_at": "",
"id": 1,
"updated_at": "2022-05-16 09:51:32",
"params": [
{
"updated_at": "2022-05-16 09:51:32",
"deleted_at": "",
"disabled": "0",
"created_at": "2022-05-16 09:51:32",
"id": "566",
"ref_id": "1",
"v": "$${domain}",
"k": "force-register-domain",
"realm": "XCC-RTC-DEFAULT"
},
{
"updated_at": "2022-05-16 09:51:32",
"deleted_at": "",
"disabled": "0",
"created_at": "2022-05-16 09:51:32",
"id": "567",
"ref_id": "1",
"v": "true",
"k": "userauth",
"realm": "XCC-RTC-DEFAULT"
}
...
],
"name": "default",
"disabled": 0,
"created_at": "2022-05-16 09:51:32",
"description": "default profile"
}
- 请求 URL:
/api/xcc_rtc
- 请求方式:
POST
- Body 信息:
{
"name": "test",
"disabled": "1",
"template": "default"
}
{
"message": "success",
"data": 3,
"code": 200
}
- 请求 URL:
/api/xcc_rtc/$id
- 请求方式:
PUT
- Body 信息:
{
"description": "default profile",
"name": "default"
}
{
"code": 200,
"data": "2",
"message": "success"
}
创建 XCC-RTC 配置中 Default Profile
- 请求 URL:
/api/xcc_rtc/$id/params
- 请求方式:
POST
- Body 信息:
{
"name": "test",
"realm": "XCC-RTC-DEFAULT",
"value": "test"
}
{
"code": 200,
"message": "success",
"data": 1877
}
修改 XCC-RTC 配置中 Default Profile
- 请求 URL:
/api/xcc_rtc/$id/params/$param_id
- 请求方式:
PUT
- Body 信息:
{
"action": "toggle"
}
或
{
"k": "test",
"v": "true"
}
{
"message": "success",
"code": 200,
"data": "2152"
}
启用/禁用 XCC-RTC 的 Setting 参数
- 请求 URL:
/api/params/$param_id
- 请求方式:
PUT
- Body 信息:
{
"action": "toggle"
}
{
"code": 200,
"message": "success",
"data": "544"
}
删除 XCC-RTC 配置中 Default Profile
- 请求 URL:
/api/xcc_rtc/:id/params/$params_id
- 请求方式:
DELETE
- Body 信息:无
- 返回值:
{
"message": "success",
"data": "2152",
"code": 200
}
- 请求 URL:
/api/xcc_rtc/$id
- 请求方式:
DELETE
- Body 信息:无
- 返回值:
{
"code": 200,
"data": "2",
"message": "success"
}
- 请求 URL:
/api/wxapp_profiles
- 请求方式:
GET
- Body 信息:无
- 返回值:
[
{
"name": "wxapp",
"created_at": "2022-05-16 09:51:32",
"deleted_at": "",
"disabled": 0,
"description": "default",
"updated_at": "2022-05-16 09:51:32",
"id": 1
}
]
- 请求 URL:
/api/wxapp_profiles/$id
- 请求方式:
GET
- Body 信息:无
- 返回值:
{
"disabled": 0,
"deleted_at": "",
"params": [
{
"ref_id": "1",
"id": "704",
"realm": "WX-APP",
"disabled": "0",
"deleted_at": "",
"k": "context",
"created_at": "2022-05-16 09:51:32",
"updated_at": "2022-05-16 09:51:32",
"v": "context-1"
},
{
"ref_id": "1",
"id": "705",
"realm": "WX-APP",
"disabled": "0",
"deleted_at": "",
"k": "use-auth",
"created_at": "2022-05-16 09:51:32",
"updated_at": "2022-05-16 09:51:32",
"v": "true"
}
...
],
"id": 1,
"description": "default",
"created_at": "2022-05-16 09:51:32",
"updated_at": "2022-05-16 09:51:32",
"name": "wxapp"
}
- 请求 URL:
/api/wxapp_profiles
- 请求方式:
POST
- Body 信息:
参数 | 说明 |
---|
name | 名称 |
description | 描述 |
template | 模板 |
{
"name": "test",
"description": "测试",
"template": "default"
}
{
"code": 200,
"data": 2,
"message": "success"
}
- 请求 URL:
/api/wxapp_profiles/$id
- 请求方式:
PUT
- Body 信息:
参数 | 说明 |
---|
name | 名称 |
description | 描述 |
disabled | 是否启用,0 为启用,1 为不启用 |
{
"name": "default"
}
或
{
"disabled": "1"
}
{
"code": 200,
"data": "2",
"message": "success"
}
- 请求 URL:
/api/wxapp_profiles/$id/params/$param_id
- 请求方式:
PUT
- Body 信息:
参数 | 说明 |
---|
v | 需要修改的参数内容 |
action | 变更启用状态,固定为"toggle" |
修改参数内容:
{
"v": "context-1"
}
变更参数启用状态:
{
"action": "toggle"
}
{
"code": 200,
"data": "1878",
"message": "success"
}
- 请求 URL:
/api/wxapp_profiles/$id
- 请求方式:
DELETE
- Body 信息:无
- 返回值:
{
"code": 200,
"data": "2",
"message": "success"
}
- 请求 URL:
/api/event_socket
- 请求方式:
GET
- Body 信息:无
- 返回值:
{
"pageCount": 1,
"rowCount": 8,
"page": 1,
"data": [
{
"id": 202,
"updated_at": "2022-05-16 09:51:32",
"v": "127.0.0.1",
"ref_id": 0,
"realm": "EVENT-SOCKET",
"created_at": "2022-05-16 09:51:32",
"disabled": 0,
"deleted_at": "",
"k": "listen-ip"
},
{
"id": 203,
"updated_at": "2022-05-16 09:51:32",
"v": "1",
"ref_id": 0,
"realm": "EVENT-SOCKET",
"created_at": "2022-05-16 09:51:32",
"disabled": 1,
"deleted_at": "",
"k": "debug"
}
...
]
}
- 请求 URL:
/api/event_socket
- 请求方式:
POST
- Body 信息:
{
"k": "test",
"v": "test"
}
{
"code": 200,
"message": "success",
"data": 1889
}
- 请求 URL:
/api/event_socket/:param_id
- 请求方式:
PUT
- Body 信息:
参数 | 说明 |
---|
action | 变更启用状态,固定为"toggle" |
{
"action": "toggle"
}
{
"data": "1889",
"code": 200,
"message": "success"
}
- 请求 URL:
/api/event_socket/$param_id
- 请求方式:
PUT
- Body 信息:
{
"v": "test—11"
}
{
"code": 200,
"message": "success",
"data": "1889"
}
- 请求 URL:
/api/event_socket/$param_id
- 请求方式:
DELETE
- Body 信息:无
- 返回值:
{
"data": "1889",
"code": 200,
"message": "success"
}
- 请求 URL:
/api/xui_profiles
- 请求方式:
GET
- Body 信息:无
- 返回值:
[
{
"id": 1,
"description": "default",
"created_at": "2022-05-16 09:51:32",
"updated_at": "2022-05-16 09:51:32",
"disabled": 0,
"name": "xui",
"deleted_at": ""
}
]
- 请求 URL:
/api/xui_profiles/:id
- 请求方式:
GET
- Body 信息:无
- 返回值:
{
"description": "default",
"created_at": "2022-05-16 09:51:32",
"name": "xui",
"params": [
{
"created_at": "2022-05-16 09:51:32",
"realm": "XUI-SETTINGS",
"v": "0",
"k": "debug",
"updated_at": "2022-05-16 09:51:32",
"id": "721",
"ref_id": "1",
"deleted_at": "",
"disabled": "0"
}
...
[
{
"k": "CHANNEL_CREATE",
"realm": "XUI-BINDINGS",
"v": "",
"o": "0",
"updated_at": "2022-05-16 09:51:32",
"created_at": "2022-05-16 09:51:32",
"id": "13",
"ref_id": "1",
"deleted_at": "",
"disabled": "0"
}
...
]
],
"id": 1,
"disabled": 0,
"deleted_at": "",
"updated_at": "2022-05-16 09:51:32"
}
- 请求 URL:
/api/xui_profiles
- 请求方式:
POST
- Body 信息:
参数 | 说明 |
---|
name | 名称 |
description | 描述 |
template | 模板 |
disabled | 是否启用,1 为不启用,0 为启用 |
{
"disabled": "1",
"name": "222",
"template": "default",
"description": "test"
}
{
"data": 2,
"code": 200,
"message": "success"
}
- 请求 URL:
/api/xui_profiles/$id
- 请求方式:
PUT
- Body 信息:
{
"name": "test1",
"description": "test1"
}
{
"code": 200,
"data": "2",
"message": "success"
}
- 请求 URL:
/api/xui_profiles/toggle/:id
- 请求方式:
PUT
- Body 信息:
参数 | 说明 |
---|
action | 变更启用状态,固定为"toggle" |
{
"action": "toggle"
}
{
"code": 200,
"message": "success",
"data": "2"
}
- 请求 URL:
/api/xui_profiles/$id/settings
- 请求方式:
POST
- Body 信息:
{
"k": "test1",
"v": "test1"
}
{
"data": 1896,
"message": "success",
"code": 200
}
- 请求 URL:
/api/xui_profiles/$id/settings/param_id
- 请求方式:
PUT
- Body 信息:
{
"v": "test"
}
{
"data": "1896",
"code": 200,
"message": "success"
}
- 请求 URL:
/api/xui_profiles/$id/settings/$param_id
- 请求方式:
DELETE
- Body 信息:无
- 返回值:
{
"data": "1896",
"code": 200,
"message": "success"
}
- 请求 URL:
/api/xui_profiles/$id/bindings
- 请求方式:
POST
- Body 信息:
{
"k": "test",
"v": "999"
}
{
"message": "success",
"data": 37,
"code": 200
}
- 请求 URL:
/api/xui_profiles/$id/bindings/$param_id
- 请求方式:
PUT
- Body 信息:
{
"v": "test"
}
{
"data": "37",
"code": 200,
"message": "success"
}
- 请求 URL:
/api/xui_profiles/$id/bindings/$param_id
- 请求方式:
DELETE
- Body 信息:无
- 返回值:
{
"code": 200,
"data": "37",
"message": "success"
}
- 请求 URL:
/api/xui_profiles/$id
- 请求方式:
DELETE
- Body 信息:无
- 返回值:
{
"code": 200,
"message": "success",
"data": "2"
}
- 请求 URL:
/api/verto_profiles
- 请求方式:
GET
- Body 信息:无
- 返回值:
[{
"name":"default-v4",
"created_at":"2024-07-10 02:53:14",
"disabled":0,
"deleted_at":"",
"updated_at":"2024-07-10 02:53:14",
"description":"default-v4",
"id":1
}]
- 请求 URL:
/api/verto_profiles/$id
- 请求方式:
GET
- Body 信息:无
- 返回值:
{
"description": "default-v4",
"params": [
{
"k": "bind-local",
"disabled": "0",
"created_at": "2024-07-10 02:53:14",
"realm": "VERTO-PROFILE",
"id": "2000",
"ref_id": "1",
"v": "$${local_ip_v4}:$${VERTO_WS_PORT}",
"deleted_at": "",
"updated_at": "2024-07-10 02:53:14"
},
{
"k": "bind-local-secure",
"disabled": "0",
"created_at": "2024-07-10 02:53:14",
"realm": "VERTO-PROFILE",
"id": "2001",
"ref_id": "1",
"v": "$${local_ip_v4}:$${VERTO_WSS_PORT}",
"deleted_at": "",
"updated_at": "2024-07-10 02:53:14"
},
{
"k": "force-register-domain",
"disabled": "0",
"created_at": "2024-07-10 02:53:14",
"realm": "VERTO-PROFILE",
"id": "2002",
"ref_id": "1",
"v": "$${domain}",
"deleted_at": "",
"updated_at": "2024-07-10 02:53:14"
},
{
"k": "secure-combined",
"disabled": "0",
"created_at": "2024-07-10 02:53:14",
"realm": "VERTO-PROFILE",
"id": "2003",
"ref_id": "1",
"v": "$${certs_dir}/wss.pem",
"deleted_at": "",
"updated_at": "2024-07-10 02:53:14"
},
{
"k": "secure-chain",
"disabled": "0",
"created_at": "2024-07-10 02:53:14",
"realm": "VERTO-PROFILE",
"id": "2004",
"ref_id": "1",
"v": "$${certs_dir}/wss.pem",
"deleted_at": "",
"updated_at": "2024-07-10 02:53:14"
},
{
"k": "userauth",
"disabled": "0",
"created_at": "2024-07-10 02:53:14",
"realm": "VERTO-PROFILE",
"id": "2005",
"ref_id": "1",
"v": "true",
"deleted_at": "",
"updated_at": "2024-07-10 02:53:14"
},
{
"k": "blind-reg",
"disabled": "0",
"created_at": "2024-07-10 02:53:14",
"realm": "VERTO-PROFILE",
"id": "2006",
"ref_id": "1",
"v": "false",
"deleted_at": "",
"updated_at": "2024-07-10 02:53:14"
},
{
"k": "mcast-ip",
"disabled": "0",
"created_at": "2024-07-10 02:53:14",
"realm": "VERTO-PROFILE",
"id": "2007",
"ref_id": "1",
"v": "224.1.1.1",
"deleted_at": "",
"updated_at": "2024-07-10 02:53:14"
},
{
"k": "mcast-port",
"disabled": "0",
"created_at": "2024-07-10 02:53:14",
"realm": "VERTO-PROFILE",
"id": "2008",
"ref_id": "1",
"v": "1337",
"deleted_at": "",
"updated_at": "2024-07-10 02:53:14"
},
{
"k": "rtp-ip",
"disabled": "0",
"created_at": "2024-07-10 02:53:14",
"realm": "VERTO-PROFILE",
"id": "2009",
"ref_id": "1",
"v": "$${local_ip_v4}",
"deleted_at": "",
"updated_at": "2024-07-10 02:53:14"
},
{
"k": "ext-rtp-ip",
"disabled": "0",
"created_at": "2024-07-10 02:53:14",
"realm": "VERTO-PROFILE",
"id": "2010",
"ref_id": "1",
"v": "$${ext_rtp_ip}",
"deleted_at": "",
"updated_at": "2024-07-10 02:53:14"
},
{
"k": "local-network",
"disabled": "0",
"created_at": "2024-07-10 02:53:14",
"realm": "VERTO-PROFILE",
"id": "2011",
"ref_id": "1",
"v": "localnet.auto",
"deleted_at": "",
"updated_at": "2024-07-10 02:53:14"
},
{
"k": "outbound-codec-string",
"disabled": "0",
"created_at": "2024-07-10 02:53:14",
"realm": "VERTO-PROFILE",
"id": "2012",
"ref_id": "1",
"v": "opus,vp8",
"deleted_at": "",
"updated_at": "2024-07-10 02:53:14"
},
{
"k": "inbound-codec-string",
"disabled": "0",
"created_at": "2024-07-10 02:53:14",
"realm": "VERTO-PROFILE",
"id": "2013",
"ref_id": "1",
"v": "opus,vp8",
"deleted_at": "",
"updated_at": "2024-07-10 02:53:14"
},
{
"k": "apply-candidate-acl",
"disabled": "0",
"created_at": "2024-07-10 02:53:14",
"realm": "VERTO-PROFILE",
"id": "2014",
"ref_id": "1",
"v": "localnet.auto",
"deleted_at": "",
"updated_at": "2024-07-10 02:53:14"
},
{
"k": "apply-candidate-acl:1",
"disabled": "0",
"created_at": "2024-07-10 02:53:14",
"realm": "VERTO-PROFILE",
"id": "2015",
"ref_id": "1",
"v": "wan_v4.auto",
"deleted_at": "",
"updated_at": "2024-07-10 02:53:14"
},
{
"k": "apply-candidate-acl:2",
"disabled": "0",
"created_at": "2024-07-10 02:53:14",
"realm": "VERTO-PROFILE",
"id": "2016",
"ref_id": "1",
"v": "rfc1918.auto",
"deleted_at": "",
"updated_at": "2024-07-10 02:53:14"
},
{
"k": "apply-candidate-acl:3",
"disabled": "0",
"created_at": "2024-07-10 02:53:14",
"realm": "VERTO-PROFILE",
"id": "2017",
"ref_id": "1",
"v": "any_v4.auto",
"deleted_at": "",
"updated_at": "2024-07-10 02:53:14"
},
{
"k": "timer-name",
"disabled": "0",
"created_at": "2024-07-10 02:53:14",
"realm": "VERTO-PROFILE",
"id": "2018",
"ref_id": "1",
"v": "soft",
"deleted_at": "",
"updated_at": "2024-07-10 02:53:14"
},
{
"k": "xui-auth",
"disabled": "0",
"created_at": "2024-07-10 02:53:14",
"realm": "VERTO-PROFILE",
"id": "2019",
"ref_id": "1",
"v": "hash",
"deleted_at": "",
"updated_at": "2024-07-10 02:53:14"
},
{
"k": "options-cross-domain",
"disabled": "0",
"created_at": "2024-07-10 02:53:14",
"realm": "VERTO-PROFILE",
"id": "2020",
"ref_id": "1",
"v": "*",
"deleted_at": "",
"updated_at": "2024-07-10 02:53:14"
},
{
"k": "jwt-secret",
"disabled": "1",
"created_at": "2024-07-10 02:53:14",
"realm": "VERTO-PROFILE",
"id": "2021",
"ref_id": "1",
"v": "secret",
"deleted_at": "",
"updated_at": "2024-07-10 02:53:14"
}
],
"name": "default-v4",
"id": 1,
"updated_at": "2024-07-10 02:53:14",
"disabled": 0,
"deleted_at": "",
"created_at": "2024-07-10 02:53:14"
}
- 请求 URL:
/api/verto_profiles/$id/verto_vhosts
- 请求方式:
GET
- Body 信息:无
- 返回值:
- 返回值:
[{
"deleted_at": "",
"updated_at": "2024-07-16 09:19:01",
"id": 4,
"created_at": "2024-07-16 09:19:01",
"ref_id": 4,
"name": "localhost"
}]
- 请求 URL:
/api/verto_profiles
- 请求方式:
POST
- Body 信息:
{
"name": "test",
"template": "default"
}
{
"id": 3
}
- 请求 URL:
/api/verto_profiles/$id
- 请求方式:
PUT
- Body 信息:
{
"description": "default profile",
"name": "default"
}
{
"code": 200,
"data": "2",
"message": "success"
}
- 请求 URL:
/api/verto_profiles/$id/param
- 请求方式:
POST
- Body 信息:
{
"k": "test",
"v": "test"
}
{
"code": 200,
"message": "success",
"data": 1877
}
- 请求 URL:
/api/verto_profiles/$id/param/$param_id
- 请求方式:
PUT
- Body 信息:
{
"action": "toggle"
}
或
{
"v": "true"
}
{
"message": "success",
"code": 200,
"data": "2152"
}
- 请求 URL:
/api/verto_profiles/setting/$param_id
- 请求方式:
PUT
- Body 信息:
{
"action": "toggle"
}
{
"code": 200,
"message": "success",
"data": "544"
}
- 请求 URL:
/api/verto_profiles/$id/param/$params_id
- 请求方式:
DELETE
- Body 信息:无
- 返回值:
{
"message": "success",
"data": "2152",
"code": 200
}
- 请求 URL:
/api/verto_profiles/$id
- 请求方式:
DELETE
- Body 信息:无
- 返回值:
{
"code": 200,
"data": "2",
"message": "success"
}
- 请求 URL:
/api/unimrcp_profiles
- 请求方式:
GET
- Body 信息:无
- 返回值:
[
{
"created_at": "2024-07-10 02:53:14",
"version": "2",
"id": 1,
"deleted_at": "",
"updated_at": "2024-07-10 02:53:14",
"disabled": 0,
"name": "loquendo7-mrcp2"
},
{
"created_at": "2024-07-10 02:53:14",
"version": "1",
"id": 2,
"deleted_at": "",
"updated_at": "2024-07-10 02:53:14",
"disabled": 0,
"name": "nuance-mrcp1"
},
{
"created_at": "2024-07-10 02:53:14",
"version": "2",
"id": 3,
"deleted_at": "",
"updated_at": "2024-07-10 02:53:14",
"disabled": 0,
"name": "ali-mrcp"
}
]
- 请求 URL:
/api/unimrcp_profiles/$id
- 请求方式:
GET
- Body 信息:无
- 返回值:
{
"updated_at": "2024-07-10 02:53:14",
"disabled": 0,
"id": 1,
"deleted_at": "",
"params": [
{
"updated_at": "2024-07-10 02:53:14",
"id": 2047,
"realm": "UNIMRCP-PROFILES",
"v": "auto",
"disabled": 1,
"ref_id": 1,
"deleted_at": "",
"created_at": "2024-07-10 02:53:14",
"k": "client-ext-ip"
},
{
"updated_at": "2024-07-10 02:53:14",
"id": 2048,
"realm": "UNIMRCP-PROFILES",
"v": "auto",
"disabled": 0,
"ref_id": 1,
"deleted_at": "",
"created_at": "2024-07-10 02:53:14",
"k": "client-ip"
},
{
"updated_at": "2024-07-10 02:53:14",
"id": 2049,
"realm": "UNIMRCP-PROFILES",
"v": "5090",
"disabled": 0,
"ref_id": 1,
"deleted_at": "",
"created_at": "2024-07-10 02:53:14",
"k": "client-port"
},
{
"updated_at": "2024-07-10 02:53:14",
"id": 2050,
"realm": "UNIMRCP-PROFILES",
"v": "10.5.5.152",
"disabled": 0,
"ref_id": 1,
"deleted_at": "",
"created_at": "2024-07-10 02:53:14",
"k": "server-ip"
},
{
"updated_at": "2024-07-10 02:53:14",
"id": 2051,
"realm": "UNIMRCP-PROFILES",
"v": "5060",
"disabled": 0,
"ref_id": 1,
"deleted_at": "",
"created_at": "2024-07-10 02:53:14",
"k": "server-port"
},
{
"updated_at": "2024-07-10 02:53:14",
"id": 2052,
"realm": "UNIMRCP-PROFILES",
"v": "1",
"disabled": 1,
"ref_id": 1,
"deleted_at": "",
"created_at": "2024-07-10 02:53:14",
"k": "force-destination"
},
{
"updated_at": "2024-07-10 02:53:14",
"id": 2053,
"realm": "UNIMRCP-PROFILES",
"v": "udp",
"disabled": 0,
"ref_id": 1,
"deleted_at": "",
"created_at": "2024-07-10 02:53:14",
"k": "sip-transport"
},
{
"updated_at": "2024-07-10 02:53:14",
"id": 2054,
"realm": "UNIMRCP-PROFILES",
"v": "FreeSWITCH",
"disabled": 1,
"ref_id": 1,
"deleted_at": "",
"created_at": "2024-07-10 02:53:14",
"k": "ua-name"
},
{
"updated_at": "2024-07-10 02:53:14",
"id": 2055,
"realm": "UNIMRCP-PROFILES",
"v": "FreeSWITCH",
"disabled": 1,
"ref_id": 1,
"deleted_at": "",
"created_at": "2024-07-10 02:53:14",
"k": "sdp-origin"
},
{
"updated_at": "2024-07-10 02:53:14",
"id": 2056,
"realm": "UNIMRCP-PROFILES",
"v": "auto",
"disabled": 1,
"ref_id": 1,
"deleted_at": "",
"created_at": "2024-07-10 02:53:14",
"k": "rtp-ext-ip"
},
{
"updated_at": "2024-07-10 02:53:14",
"id": 2057,
"realm": "UNIMRCP-PROFILES",
"v": "auto",
"disabled": 0,
"ref_id": 1,
"deleted_at": "",
"created_at": "2024-07-10 02:53:14",
"k": "rtp-ip"
},
{
"updated_at": "2024-07-10 02:53:14",
"id": 2058,
"realm": "UNIMRCP-PROFILES",
"v": "4000",
"disabled": 0,
"ref_id": 1,
"deleted_at": "",
"created_at": "2024-07-10 02:53:14",
"k": "rtp-port-min"
},
{
"updated_at": "2024-07-10 02:53:14",
"id": 2059,
"realm": "UNIMRCP-PROFILES",
"v": "5000",
"disabled": 0,
"ref_id": 1,
"deleted_at": "",
"created_at": "2024-07-10 02:53:14",
"k": "rtp-port-max"
},
{
"updated_at": "2024-07-10 02:53:14",
"id": 2060,
"realm": "UNIMRCP-PROFILES",
"v": "50",
"disabled": 1,
"ref_id": 1,
"deleted_at": "",
"created_at": "2024-07-10 02:53:14",
"k": "playout-delay"
},
{
"updated_at": "2024-07-10 02:53:14",
"id": 2061,
"realm": "UNIMRCP-PROFILES",
"v": "200",
"disabled": 1,
"ref_id": 1,
"deleted_at": "",
"created_at": "2024-07-10 02:53:14",
"k": "max-playout-delay"
},
{
"updated_at": "2024-07-10 02:53:14",
"id": 2062,
"realm": "UNIMRCP-PROFILES",
"v": "20",
"disabled": 1,
"ref_id": 1,
"deleted_at": "",
"created_at": "2024-07-10 02:53:14",
"k": "ptime"
},
{
"updated_at": "2024-07-10 02:53:14",
"id": 2063,
"realm": "UNIMRCP-PROFILES",
"v": "PCMU PCMA L16/96/8000",
"disabled": 0,
"ref_id": 1,
"deleted_at": "",
"created_at": "2024-07-10 02:53:14",
"k": "codecs"
},
{
"updated_at": "2024-07-10 02:53:14",
"id": 2064,
"realm": "UNIMRCP-PROFILES",
"v": "application/jsgf",
"disabled": 0,
"ref_id": 1,
"deleted_at": "",
"created_at": "2024-07-10 02:53:14",
"k": "jsgf-mime-type"
}
],
"created_at": "2024-07-10 02:53:14",
"name": "loquendo7-mrcp2",
"version": "2"
}
- 请求 URL:
/api/unimrcp_profiles/settings
- 请求方式:
GET
- Body 信息:无
- 返回值:
- 返回值:
[
{
"created_at": "2024-07-10 02:53:14",
"k": "log-level",
"realm": "UNIMRCP-SETTINGS",
"disabled": 0,
"updated_at": "2024-07-10 02:53:14",
"ref_id": 0,
"deleted_at": "",
"v": "DEBUG",
"id": 2040
},
{
"created_at": "2024-07-10 02:53:14",
"k": "default-tts-profile",
"realm": "UNIMRCP-SETTINGS",
"disabled": 0,
"updated_at": "2024-07-10 02:53:14",
"ref_id": 0,
"deleted_at": "",
"v": "voxeo-prophecy8.0-mrcp1",
"id": 2041
},
{
"created_at": "2024-07-10 02:53:14",
"k": "default-asr-profile",
"realm": "UNIMRCP-SETTINGS",
"disabled": 0,
"updated_at": "2024-07-10 02:53:14",
"ref_id": 0,
"deleted_at": "",
"v": "voxeo-prophecy8.0-mrcp1",
"id": 2042
},
{
"created_at": "2024-07-10 02:53:14",
"k": "enable-profile-events",
"realm": "UNIMRCP-SETTINGS",
"disabled": 0,
"updated_at": "2024-07-10 02:53:14",
"ref_id": 0,
"deleted_at": "",
"v": "false",
"id": 2043
},
{
"created_at": "2024-07-10 02:53:14",
"k": "max-connection-count",
"realm": "UNIMRCP-SETTINGS",
"disabled": 0,
"updated_at": "2024-07-10 02:53:14",
"ref_id": 0,
"deleted_at": "",
"v": "100",
"id": 2044
},
{
"created_at": "2024-07-10 02:53:14",
"k": "offer-new-connection",
"realm": "UNIMRCP-SETTINGS",
"disabled": 0,
"updated_at": "2024-07-10 02:53:14",
"ref_id": 0,
"deleted_at": "",
"v": "1",
"id": 2045
},
{
"created_at": "2024-07-10 02:53:14",
"k": "request-timeout",
"realm": "UNIMRCP-SETTINGS",
"disabled": 0,
"updated_at": "2024-07-10 02:53:14",
"ref_id": 0,
"deleted_at": "",
"v": "3000",
"id": 2046
}
]
- 请求 URL:
/api/unimrcp_profiles
- 请求方式:
POST
- Body 信息:
{
"name": "test",
"template": "voxeo-prophecy8.0-mrcp1",
"version": "2"
}
{
"data": 5,
"message": "success",
"code": 200
}
- 请求 URL:
/api/unimrcp_profiles/$id
- 请求方式:
PUT
- Body 信息:
{
"version": "2",
"name": "default"
}
{
"code": 200,
"data": "2",
"message": "success"
}
- 请求 URL:
/api/unimrcp_profiles/$id/param
- 请求 URL:
/api/unimrcp_profiles/$id/synthparams
- 请求 URL:
/api/unimrcp_profiles/$id/ecogparams
- 请求方式:
POST
- Body 信息:
{
"k": "test",
"v": "test"
}
{
"code": 200,
"message": "success",
"data": 1877
}
- 请求 URL:
/api/unimrcp_profiles/$id/params/$param_id
- 请求方式:
PUT
- Body 信息:
{
"action": "toggle"
}
或
{
"v": "true"
}
{
"message": "success",
"code": 200,
"data": "2152"
}
启用/禁用 UniMRCP 的 Setting 参数
- 请求 URL:
/api/unimrcp_profiles/setting/$param_id
- 请求方式:
PUT
- Body 信息:
{
"action": "toggle"
}
{
"code": 200,
"message": "success",
"data": "544"
}
- 请求 URL:
/api/unimrcp_profiles/$id/params/$params_id
- 请求方式:
DELETE
- Body 信息:无
- 返回值:
{
"message": "success",
"data": "2152",
"code": 200
}
- 请求 URL:
/api/unimrcp_profiles/$id
- 请求方式:
DELETE
- Body 信息:无
- 返回值:
{
"code": 200,
"data": "2",
"message": "success"
}