/// <summary> /// Accepts an incoming call /// </summary> public static Task <Ok> AcceptCallAsync( this Client client, int callId = default, CallProtocol protocol = default) { return(client.ExecuteAsync(new AcceptCall { CallId = callId, Protocol = protocol })); }
/// <summary> /// Creates a new call /// </summary> public static Task <CallId> CreateCallAsync( this Client client, long userId = default, CallProtocol protocol = default, bool isVideo = default) { return(client.ExecuteAsync(new CreateCall { UserId = userId, Protocol = protocol, IsVideo = isVideo })); }
/// <summary> /// Creates a new call /// </summary> public static Task <CallId> CreateCallAsync(this Client client, int userId = default(int), CallProtocol protocol = default(CallProtocol)) { return(client.ExecuteAsync(new CreateCall { UserId = userId, Protocol = protocol, })); }
public static eConf.eProtocol GetEconfProtocol(CallProtocol _protocol) { eConf.eProtocol protocol = eConf.eProtocol.ePROTOCOL_SIP; switch (_protocol) { case CallProtocol.Sip: protocol = eConf.eProtocol.ePROTOCOL_SIP; break; } return(protocol); }