NERoomSIPController
@objcMembers
public class NERoomSIPController : NERoomInviteBaseController
SIP外呼控制器
-
Declaration
Swift
override public var isSupported: Bool { get }
-
根据手机号码进行呼叫
Since
1.28.0Declaration
Swift
public func callByNumber(_ phoneNumber: String, countryCode: String, name: String?, callback: NECallback<NERoomSIPCallInfo>?)
Parameters
number
对方手机号
countryCode
国家码
name
入会名字
callback
接口调用回调
-
根据用户id进行呼叫
Since
1.28.0Declaration
Swift
public func callByUserUuid(userUuid: String, callback: NECallback<AnyObject>?)
Parameters
userUuid
对方用户id
callback
接口调用回调
-
根据用户uuid列表进行批量呼叫
Since
1.28.0Declaration
Swift
public func callByUserUuids(_ userUuids: [String], callback: NECallback<AnyObject>?)
Parameters
userUuids
对方用户id,支持同时呼叫多个user
callback
接口调用回调
-
移除呼叫
Since
1.28.0Declaration
Swift
public func removeCall(userUuid: String, callback: NECallback<AnyObject>?)
Parameters
userUuid
对方用户id
callback
接口调用回调
-
取消正在进行的呼叫,无论是正在响铃还是等待响铃都可以使用,取消后成员状态会变成已取消,但不移出成员列表
Since
1.28.0Declaration
Swift
public func cancelCall(userUuid: String, callback: NECallback<AnyObject>?)
Parameters
userUuid
对方用户id
callback
接口调用回调
-
挂断通话,挂断后成员将被踢出会议并移出列表
Since
1.28.0Declaration
Swift
public func hangUpCall(userUuid: String, callback: NECallback<AnyObject>?)
Parameters
userUuid
对方用户id
callback
接口调用回调
-
呼叫指定房间设备
Declaration
Swift
public func callOutRoomSystem(device: NERoomSystemDevice, callback: NECallback<NERoomSIPCallInfo>?)
Parameters
device
设备
callback
回调