NERoom SDK V1.32.0
载入中...
搜索中...
未找到
sip_ctrl_interface.h
浏览该文件的文档.
1// Copyright (c) 2022 NetEase, Inc. All rights reserved.
2// Use of this source code is governed by a MIT license that can be
3// found in the LICENSE file.
10#ifndef SIP_CTRL_INTERFACE_H
11#define SIP_CTRL_INTERFACE_H
12
13#include <string>
14#include "base_ctrl_interface.h"
15#include "base_type_defines.h"
16
17namespace neroom {
18
24public:
30
31public:
35 ~INERoomSIPController() override = default;
36
45 virtual void callByNumber(const std::string& number,
46 const std::string& countryCode,
47 const std::string& name,
48 const GetSIPUserUuidCallback& callback) = 0;
55 virtual void callByUserUuids(const std::list<std::string>& userUuids, const NECallback<>& callback) = 0;
62 virtual void callByUserUuid(const std::string& userUuid, const NECallback<>& callback) = 0;
69 virtual void removeCall(const std::string& userUuid, const NECallback<>& callback) = 0;
76 virtual void cancelCall(const std::string& userUuid, const NECallback<>& callback) = 0;
83 virtual void hangUpCall(const std::string& userUuid, const NECallback<>& callback) = 0;
89 virtual void callOutRoomSystem(const NERoomSystemDevice& device, const CallSIPUserUuidCallback& callback) = 0;
90};
91
92} // namespace neroom
93
94#endif // SIP_CTRL_INTERFACE_H
基础控制器头文件
基本类型定义头文件
NECallback< NERoomSIPCallInfo > CallSIPUserUuidCallback
virtual void callByUserUuids(const std::list< std::string > &userUuids, const NECallback<> &callback)=0
根据用户uuid进行呼叫
NECallback< NERoomSIPCallInfo > GetSIPUserUuidCallback
获取SIP用户的userUuid
~INERoomSIPController() override=default
构造函数
virtual void hangUpCall(const std::string &userUuid, const NECallback<> &callback)=0
挂断呼叫
virtual void callByUserUuid(const std::string &userUuid, const NECallback<> &callback)=0
对已经发起但是未接通的通话再次发起呼叫
virtual void removeCall(const std::string &userUuid, const NECallback<> &callback)=0
移除呼叫
virtual void cancelCall(const std::string &userUuid, const NECallback<> &callback)=0
取消正在进行的呼叫,无论是正在响铃还是等待响铃都可以使用
virtual void callOutRoomSystem(const NERoomSystemDevice &device, const CallSIPUserUuidCallback &callback)=0
呼叫指定房间设备
virtual void callByNumber(const std::string &number, const std::string &countryCode, const std::string &name, const GetSIPUserUuidCallback &callback)=0
根据手机号码进行呼叫
std::function< void(int, const std::string &, const TResultParam &...)> NECallback
通用回调