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); }
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()); }