ChatterBox.Client.Universal.Background.Voip.VoipCoordinator.StartOutgoingCall C# (CSharp) Method

StartOutgoingCall() public method

public StartOutgoingCall ( OutgoingCallRequest request ) : void
request ChatterBox.Client.Common.Communication.Voip.Dto.OutgoingCallRequest
return void
        public void StartOutgoingCall(OutgoingCallRequest request)
        {
            var capabilities = VoipPhoneCallMedia.Audio;
            if (request.VideoEnabled)
            {
                capabilities |= VoipPhoneCallMedia.Video;
            }
            var vCC = VoipCallCoordinator.GetDefault();
            VoipCall = vCC.RequestNewOutgoingCall(request.PeerUserId, request.PeerUserId, "ChatterBox Universal",
                capabilities);
            if (VoipCall != null)
            {
                SubscribeToVoipCallEvents();

                VoipCall.NotifyCallActive();
            }
        }