发起呼叫
POST
/rsc/api/v2/user/calls
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
fromEndpoint
object (CallEndpointForm)
邀请端点
name
string
邀请方的昵称
type
string
必需
targetInfos
array[object (CallEndpointInfo) {3}] | null
邀请的用户列表
id
string
必需
ip就是该设备的id, 则该值为sip&127.0.0.1, h323则为h323&127.0.0.1
也可以使用注册设备的 deviceId
<= 150 字符
type
integer
必需
name
string | null
被呼叫方的名称
<= 30 字符
code
string | null
会议号
示例
{
"fromEndpoint": {
"id": "e0991ac3-6cbc-431b-9e3f-5fccf660b19f",
"name": "呼叫 人的名称",
"type": "browser"
},
"targetInfos": [
{
"id": "h323&172.20.74.57",
"type": 3,
"name": "被呼叫人的名称"
}
],
"code": "88888888"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/rsc/api/v2/user/calls' \
--header 'Content-Type: application/json' \
--data-raw '{
"fromEndpoint": {
"id": "e0991ac3-6cbc-431b-9e3f-5fccf660b19f",
"name": "呼叫 人的名称",
"type": "browser"
},
"targetInfos": [
{
"id": "h323&172.20.74.57",
"type": 3,
"name": "被呼叫人的名称"
}
],
"code": "88888888"
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}