Ejemplo n.º 1
0
        public override async Task OnSdpOfferAsync(RelayMessage message)
        {
            // Re-negotiate the SDP.
            var state = new EstablishIncoming();
            await Context.SwitchState(state);

            // Hand-off the SDP to the new state.
            await state.OnSdpOfferAsync(message);
        }
Ejemplo n.º 2
0
        public override async Task AnswerAsync()
        {
            Context.SendToPeer(RelayMessageTags.CallAnswer, "");

            var establishIncomingState = new EstablishIncoming();
            await Context.SwitchState(establishIncomingState);

            ETWEventLogger.Instance.LogEvent("Call Answered", DateTimeOffset.Now.ToUnixTimeMilliseconds());
        }