REST API文档

高级配置-模块配置

系统模块

参数说明
kFreeSWITCH 模块名称
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 示例:
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 示例:
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 示例:
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

XCC

字段说明:

字段说明
disabled是否启用,0启用,1不启用
name名称
params参数信息
description描述
action按动作查询
startDate按起始时间查询

params中参数说明;

参数说明
disabled是否启用,0启用,1不启用
k参数名称
v参数值
realm参数对应域
ref_id对应的XCC 配置 ID

realm说明:

realm说明
XCC-SETTINGSXCC 设置项参数
XCC-BINDINGS绑定哪些事件,被绑定的事件才会被获取到
XCC-SUBS订阅哪些事务
XCC-CDR话单事件中的参数
XCC-CHANNEL订阅哪些通道变量
XCC-DIALPLAN订阅DIALPLAN中参数

查看 profile

  • 请求 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"
  }
]

查看 profile 的配置参数

  • 请求 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
}

创建 profile

  • 请求 URL/api/xcc_profiles
  • 请求方式POST
  • Body 信息
{
  "name": "test",
  "disabled": "0",
  "template": "default"
}
  • 返回值
{
  "message": "success",
  "code": 200,
  "data": "2"
}

修改 profile

  • 请求 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
}

在某个 profile 内的新增参数

  • 请求 URL/api/xcc_profiles/$id/params
  • 请求方式POST
  • Body 信息
{
  "k": "test",
  "v": "11",
  "realm": "XCC-CDR"
}
  • 返回值
{
  "message": "success",
  "code": 200,
  "data": 1840
}

修改指定 profile 的参数配置

  • 请求 URL/api/xcc_profiles/$id/params/$param_id
  • 请求方式PUT
  • Body 信息
{
  "action": "toggle"
}

{
  "k": "test",
  "v": "true"
}
  • 返回值
{
  "code": 200,
  "message": "success",
  "data": "1840"
}

删除 profile 内的某个参数

  • 请求 URL/api/xcc_profiles/$id/params/$params_id
  • 请求方式DELETE
  • Body 信息:无
  • 返回值
{
  "code": 200,
  "data": "1840",
  "message": "success"
}

删除 profile

  • 请求 URL/api/xcc_profiles/$id
  • 请求方式DELETE
  • Body 信息:无
  • 返回值
{
  "code": 200,
  "data": "2",
  "message": "success"
}

XCC—RTC

查看 XCC-RTC 配置

  • 请求 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"
  }
]

查看 XCC-RTC 的配置参数

  • 请求 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"
}

创建 XCC-RTC profile

  • 请求 URL/api/xcc_rtc
  • 请求方式POST
  • Body 信息
{
  "name": "test",
  "disabled": "1",
  "template": "default"
}
  • 返回值
{
  "message": "success",
  "data": 3,
  "code": 200
}

修改 XCC-RTC profile

  • 请求 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
}

删除 XCC-RTC profile

  • 请求 URL/api/xcc_rtc/$id
  • 请求方式DELETE
  • Body 信息:无
  • 返回值
{
  "code": 200,
  "data": "2",
  "message": "success"
}

微信小程序

查看微信小程序的 profile 列表

  • 请求 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
  }
]

查看 profile 的配置参数

  • 请求 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"
}

创建微信小程序的 profile

  • 请求 URL/api/wxapp_profiles
  • 请求方式POST
  • Body 信息
参数说明
name名称
description描述
template模板
{
  "name": "test",
  "description": "测试",
  "template": "default"
}
  • 返回值
{
  "code": 200,
  "data": 2,
  "message": "success"
}

修改 profile 的名字或开关状态

  • 请求 URL/api/wxapp_profiles/$id
  • 请求方式PUT
  • Body 信息
参数说明
name名称
description描述
disabled是否启用,0 为启用,1 为不启用
{
  "name": "default"
}

{
  "disabled": "1"
}
  • 返回值
{
  "code": 200,
  "data": "2",
  "message": "success"
}

修改微信小程序的 profile 参数配置

  • 请求 URL/api/wxapp_profiles/$id/params/$param_id
  • 请求方式PUT
  • Body 信息
参数说明
v需要修改的参数内容
action变更启用状态,固定为"toggle"

修改参数内容:

{
  "v": "context-1"
}

变更参数启用状态:

{
  "action": "toggle"
}
  • 返回值
{
  "code": 200,
  "data": "1878",
  "message": "success"
}

删除 profile

  • 请求 URL/api/wxapp_profiles/$id
  • 请求方式DELETE
  • Body 信息:无
  • 返回值
{
  "code": 200,
  "data": "2",
  "message": "success"
}

EventSocket

查看 Socket 事件列表

  • 请求 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"
		}
		...
	]
}

创建 Socket 事件参数

  • 请求 URL/api/event_socket
  • 请求方式POST
  • Body 信息
参数说明
k参数名称
v参数内容
{
  "k": "test",
  "v": "test"
}
  • 返回值
{
  "code": 200,
  "message": "success",
  "data": 1889
}

启用/禁用 Socket 事件参数

  • 请求 URL/api/event_socket/:param_id
  • 请求方式PUT
  • Body 信息
参数说明
action变更启用状态,固定为"toggle"
{
  "action": "toggle"
}
  • 返回值
{
  "data": "1889",
  "code": 200,
  "message": "success"
}

修改 Socket 事件参数

  • 请求 URL/api/event_socket/$param_id
  • 请求方式PUT
  • Body 信息
参数说明
v要修改的参数内容
{
  "v": "test—11"
}
  • 返回值
{
  "code": 200,
  "message": "success",
  "data": "1889"
}

删除 profile

  • 请求 URL/api/event_socket/$param_id
  • 请求方式DELETE
  • Body 信息:无
  • 返回值
{
  "data": "1889",
  "code": 200,
  "message": "success"
}

XUI

查看 XUI 列表

  • 请求 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": ""
  }
]

查看指定 XUI 列表

  • 请求 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"
}

创建 XUI 列表

  • 请求 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"
}

修改 XUI 列表名称或描述

  • 请求 URL/api/xui_profiles/$id
  • 请求方式PUT
  • Body 信息
参数说明
name名称
description描述
{
  "name": "test1",
  "description": "test1"
}
  • 返回值
{
  "code": 200,
  "data": "2",
  "message": "success"
}

启用/禁用 XUI 配置

  • 请求 URL/api/xui_profiles/toggle/:id
  • 请求方式PUT
  • Body 信息
参数说明
action变更启用状态,固定为"toggle"
{
  "action": "toggle"
}
  • 返回值
{
  "code": 200,
  "message": "success",
  "data": "2"
}

创建 XUI-SETTINGS 参数

  • 请求 URL/api/xui_profiles/$id/settings
  • 请求方式POST
  • Body 信息
参数说明
k参数名称
v参数内容
{
  "k": "test1",
  "v": "test1"
}
  • 返回值
{
  "data": 1896,
  "message": "success",
  "code": 200
}

修改 XUI-SETTINGS 参数

  • 请求 URL/api/xui_profiles/$id/settings/param_id
  • 请求方式PUT
  • Body 信息
参数说明
v要修改的参数内容
{
  "v": "test"
}
  • 返回值
{
  "data": "1896",
  "code": 200,
  "message": "success"
}

删除 XUI-SETTINGS 参数

  • 请求 URL/api/xui_profiles/$id/settings/$param_id
  • 请求方式DELETE
  • Body 信息:无
  • 返回值
{
  "data": "1896",
  "code": 200,
  "message": "success"
}

创建 XUI-BINDINGS 参数

  • 请求 URL/api/xui_profiles/$id/bindings
  • 请求方式POST
  • Body 信息
参数说明
k参数名称
v参数内容
{
  "k": "test",
  "v": "999"
}
  • 返回值
{
  "message": "success",
  "data": 37,
  "code": 200
}

修改 XUI-BINDINGS 参数

  • 请求 URL/api/xui_profiles/$id/bindings/$param_id
  • 请求方式PUT
  • Body 信息
参数说明
v要修改的参数内容
{
  "v": "test"
}
  • 返回值
{
  "data": "37",
  "code": 200,
  "message": "success"
}

删除 XUI-BINDINGS 参数

  • 请求 URL/api/xui_profiles/$id/bindings/$param_id
  • 请求方式DELETE
  • Body 信息:无
  • 返回值
{
  "code": 200,
  "data": "37",
  "message": "success"
}

删除 profile

  • 请求 URL/api/xui_profiles/$id
  • 请求方式DELETE
  • Body 信息:无
  • 返回值
{
  "code": 200,
  "message": "success",
  "data": "2"
}

Verto

查看 Verto 基本信息

  • 请求 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
}]

查看指定Verto 的配置参数

  • 请求 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"
}

查看指定 Verto 的vhost信息

  • 请求 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"
}]

创建 Verto profile

  • 请求 URL/api/verto_profiles
  • 请求方式POST
  • Body 信息
{
  "name": "test",
  "template": "default"
}
  • 返回值
{
  "id": 3
}

修改 Verto

  • 请求 URL/api/verto_profiles/$id
  • 请求方式PUT
  • Body 信息
{
  "description": "default profile",
  "name": "default"
}
  • 返回值
{
  "code": 200,
  "data": "2",
  "message": "success"
}

创建 Verto 配置中参数

  • 请求 URL/api/verto_profiles/$id/param
  • 请求方式POST
  • Body 信息
{
  "k": "test",
  "v": "test"
}
  • 返回值
{
  "code": 200,
  "message": "success",
  "data": 1877
}

修改 Verto 配置中参数

  • 请求 URL/api/verto_profiles/$id/param/$param_id
  • 请求方式PUT
  • Body 信息
{
  "action": "toggle"
}

{
  "v": "true"
}
  • 返回值
{
  "message": "success",
  "code": 200,
  "data": "2152"
}

启用/禁用 Verto 的 Setting 参数

  • 请求 URL/api/verto_profiles/setting/$param_id
  • 请求方式PUT
  • Body 信息
{
  "action": "toggle"
}
  • 返回值
{
  "code": 200,
  "message": "success",
  "data": "544"
}

删除 Verto 配置中参数

  • 请求 URL/api/verto_profiles/$id/param/$params_id
  • 请求方式DELETE
  • Body 信息:无
  • 返回值
{
  "message": "success",
  "data": "2152",
  "code": 200
}

删除 Verto profile

  • 请求 URL/api/verto_profiles/$id
  • 请求方式DELETE
  • Body 信息:无
  • 返回值
{
  "code": 200,
  "data": "2",
  "message": "success"
}

UniMRCP

查看 UniMRCP 基本信息

  • 请求 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"
	}
]

查看指定 UniMRCP 的配置参数

  • 请求 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"
}

查看 UniMRCP 的settings信息

  • 请求 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
	}
]

创建 UniMRCP

  • 请求 URL/api/unimrcp_profiles
  • 请求方式POST
  • Body 信息
{
  "name": "test",
  "template": "voxeo-prophecy8.0-mrcp1",
  "version": "2"
}
  • 返回值
{
	"data": 5,
	"message": "success",
	"code": 200
}

修改 UniMRCP

  • 请求 URL/api/unimrcp_profiles/$id
  • 请求方式PUT
  • Body 信息
{
  "version": "2",
  "name": "default"
}
  • 返回值
{
  "code": 200,
  "data": "2",
  "message": "success"
}

创建 UniMRCP 配置中各种类型参数

  • 请求 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
}

修改 UniMRCP 配置中参数

  • 请求 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"
}

删除 UniMRCP 配置中参数

  • 请求 URL/api/unimrcp_profiles/$id/params/$params_id
  • 请求方式DELETE
  • Body 信息:无
  • 返回值
{
  "message": "success",
  "data": "2152",
  "code": 200
}

删除 UniMRCP

  • 请求 URL/api/unimrcp_profiles/$id
  • 请求方式DELETE
  • Body 信息:无
  • 返回值
{
  "code": 200,
  "data": "2",
  "message": "success"
}
高级配置-系统管理