Call/Invite

1)InvitePstnUser(会中通过pstn电话邀请成员)

接口支持最低版本号:3.9.150

此接口异步返回调用结果,需要订阅 Invite 事件
sub_event: InvitePstnUser

request

{
    "jsonrpc": "2.0",
    "id": "xxx",
    "method": "Call/Invite",
    "params": {
        "action": "`InvitePstnUser`",
        "action_params": {
            "phone_number": "18819460928", //手机号
            "country_code": "0086", //国家码
            "show_country_code": "86", //显示在页面的国家码
            "nickname": "" //用户昵称,可为空
        }
    }
}

response

{
    "method": "Call/Invite",
    "result": {
        "error_code": 0,
        "action": "InvitePstnUser",
        "message": ""
    },
    "id": "xxx",
    "jsonrpc": "2.0"
}

2)CancelPstnInvite(取消会中通过pstn电话邀请成员)

接口支持最低版本号:3.9.150

此接口异步返回调用结果,需要订阅 Invite 事件
sub_event: CancelPstnInvite

request

{
    "jsonrpc": "2.0",
    "id": "AY4WDEC6E8IE5ML",
    "method": "Call/Invite",
    "params": {
        "action": "`CancelPstnInvite`",
        "action_params": {
            "phone_number": "18819460928"
        }
    }
}

response

{
    "method": "Call/Invite",
    "result": {
        "error_code": 0,
        "action": "`CancelPstnInvite`",
        "message": ""
    },
    "id": "AY4WDEC6E8IE5ML",
    "jsonrpc": "2.0"
}

3)PstnDial(非会中通过pstn呼叫)

接口支持最低版本号:3.9.150

此接口异步返回调用结果,需要订阅 Invite 事件
sub_event: PstnDial

request

{
    "jsonrpc": "2.0",
    "id": "xxx",
    "method": "Call/Invite",
    "params": {
        "action": "PstnDial",
        "action_params": {
            "phone_number": "18819460928"
        }
    }
}

response

{
    "method": "Call/Invite",
    "result": {
        "error_code": 0,
        "action": "PstnDial",
        "message": ""
    },
    "id": "WHI34M3VW4I86G2",
    "jsonrpc": "2.0"
}

4)PstnHangUp(挂断会前通过pstn的呼叫)

接口支持最低版本号:3.9.150

此接口异步返回调用结果,需要订阅 Invite 事件
sub_event: PstnHangUp

request

{
    "jsonrpc": "2.0",
    "id": "xxx",
    "method": "Call/Invite",
    "params": {
        "action": "PstnHangUp",
        "action_params": {
            "phone_number": "18819460928"
        }
    }
}

response

{
    "method": "Call/Invite",
    "result": {
        "error_code": 0,
        "action": "PstnHangUp",
        "message": ""
    },
    "id": "xxx",
    "jsonrpc": "2.0"
}

5)StartPstnQuickMeeting(会前pstn电话波动后进入快速会议)

接口支持最低版本号:3.9.150

此接口异步返回调用结果,需要订阅 Invite 事件
sub_event: StartPstnQuickMeeting

request

{
    "jsonrpc": "2.0",
    "id": "xxx",
    "method": "Call/Invite",
    "params": {
        "action": "StartPstnQuickMeeting",
    }
}

response

{
    "method": "Call/Invite",
    "result": {
        "error_code": 0,
        "action": "StartPstnQuickMeeting",
        "message": ""
    },
    "id": "QQWLMU3XKAEUC2I",
    "jsonrpc": "2.0"
}

6)LeavePstnMeeting(挂断并离开pstn通话页面-非会中页面)

接口支持最低版本号:3.9.150

此接口异步返回调用结果,需要订阅 Invite 事件
sub_event: LeavePstnMeeting

request

{
    "jsonrpc": "2.0",
    "id": "3FSWYMVSZRUXJXF",
    "method": "Call/Invite",
    "params": {
        "action": "LeavePstnMeeting",
        "action_params": {
            "phone_number": "18819460928"
        }
    }
}

response

{
    "method": "Call/Invite",
    "result": {
        "error_code": 0,
        "action": "LeavePstnMeeting",
        "message": ""
    },
    "id": "3FSWYMVSZRUXJXF",
    "jsonrpc": "2.0"
}

7)HandleInvitation(处理会议邀请)

接口支持最低版本号:3.9.150

此接口异步返回调用结果,需要订阅 Invite 事件,此接口目前只支持处理 Rooms 邀请 Rooms 的场景,暂不支持处理云会议邀请 Rooms
sub_event: UpdateInviteJoinMeetingStatus

request

{
    "jsonrpc":"2.0",
    "id":"xxx",
    "method":"Call/Invite",
    "params":{
        "action":"HandleInvitation",
        "action_params":{
			"invitation_type": int,  // 邀请类型
			"invitation_action": int  // 处理动作
        }
    }
}

response

{
	"jsonrpc": "2.0",
    "id":"xxx",
    "method":"Call/Invite",
    "result":{
        "error_code":0,
        "message":"",
        "action":"HandleInvitation"
    }
}
invitation_action 描述
0 接受邀请
1 拒绝邀请
下载 Call/Invite.pdf
Copyright(C)2023 HFBangFu Inc. All Rights Reserved 皖ICP备12017563号-5