Event/Invite
1)CallStateUpdated(Pstn呼叫状态变化通知)
接口支持最低版本号:3.9.150
{
"sub_event": "CallStateUpdated",
"method": "Event/Invite",
"result": {
"error_code": 0,
"data": {
"dial_ui_state": 1, //拨号状态,值对应表见下表
"phone_number": "008618819460928",
"error_msg": "", //失败原因文字描述
"result": 0,
"type": 0, //见下文
"user_id": "", //邀请成功后,用户id, 若有
"failed_type": 3, 见下文
"nickname": "xxx"
},
"message": "成功"
},
"jsonrpc": "2.0"
}
dial_ui_state | 拨号转为UI描述 |
---|---|
0 | kStateDial |
1 | kStateDialing |
2 | kStateDialSucceed |
type | 拨号逻辑状态 | 描述 |
---|---|---|
0 | kStateUnknown | - |
1 | kStateRing | 拨号响铃中 |
2 | kStateSuccess | 拨号成功 |
3 | kStateFailed | 拨号失败 |
4 | kStateHangup | 拨号挂断 |
failed_type值描述
kInviteStatusTypeInviting = 1,
kInviteStatusTypeFailed = 2,
kInviteStatusTypeRefused = 3,
kInviteStatusTypeInMeeting = 4,
kInviteStatusTypeCancelInvite = 5,
kInviteStatusTypeRefuse = 6,
kInviteStatusTypeBusy = 7,
kInviteStatusTypeUnregistered = 8,
kInviteStatusTypeRouteUnreachable = 9,
kInviteStatusTypeConnectioFailure = 10,
kInviteStatusTypeRefusedAfterAnswered = 11,
kInviteStatusTypeWaitingAnswer = 12,
kInviteStatusTypeTelecomOperatorsError = 13,
kInviteStatusTypeUnknown = 100,
kInviteStatusTypeHangup = 10100,
kInviteStatusTypeSystemBusy = 10101,
kInviteStatusTypeTimeout = 10102,
kInviteStatusTypeClientNoAnswer = 10103,
kInviteStatusTypeCalleeIsBusy = 10200,
2)DialErrorUpdated(Pstn呼叫失败描述文字更新)
接口支持最低版本号:3.9.150
{
"sub_event": "DialErrorUpdated",
"method": "Event/Invite",
"result": {
"error_code": 0,
"data": "呼叫失败,用户已挂断",
"message": "成功"
},
"jsonrpc": "2.0"
}
3)PSTNHangUp(Rooms主动挂断成功通知)
接口支持最低版本号:3.9.150
{
"sub_event": "PSTNHangUp",
"method": "Event/Invite",
"result": {
"error_code": 0,
"message": "成功"
},
"jsonrpc": "2.0"
}
4)ReceivedInviteJoinMeeting (收到邀请入会)
接口支持最低版本号:3.9.150
{
"jsonrpc":"2.0",
"method":"Event/Meeting",
"result":{
"error_code":0,
"message":"",
"sub_event":"ReceivedInviteJoinMeeting",
"data":[
{
"inviter_nick_name":"xxx", // 邀请者用户名称
"meeting_password":"xxx", // 会议密码
"meeting_code":"xxx", // 会议号
"buttons":{
"negative":"拒绝",
"positive":"接受"
},
"invite_type":1, // 邀请类型
"meeting_title":" xxx" // 会议主题
}
]
}
}
5)UpdateInviteJoinMeetingStatus ( 邀请入会结果)
接口支持最低版本号:3.9.150
{
"jsonrpc":"2.0",
"method":"Event/Meeting",
"sub_event":"UpdateInviteJoinMeetingStatus",
"result":{
"error_code":0,
"message":"",
"data":{
"status":0 // 邀请入会状态,参考下表
}
}
}
status | 描述 |
---|---|
0 | 其他状态 |
1 | 成功加入 |
2 | 正在邀请别人 |
3 | 忽略邀请 |
4 | Room 被使用中 |
5 | Room 正在被邀请 |
6 | 重复邀请 |
下载 Event/Invite.pdf
Copyright(C)2023 HFBangFu Inc. All Rights Reserved
皖ICP备12017563号-5