BogheApp.SessionWindow.buttonCallOrAnswer_Click C# (CSharp) Method

buttonCallOrAnswer_Click() private method

private buttonCallOrAnswer_Click ( object sender, RoutedEventArgs e ) : void
sender object
e RoutedEventArgs
return void
        private void buttonCallOrAnswer_Click(object sender, RoutedEventArgs e)
        {
            if (Strings.Text_Call.Equals(this.buttonCallOrAnswer.Tag) && this.AVSession == null)
            {
                this.AVSession = MyAVSession.CreateOutgoingSession(this.sipService.SipStack, MediaType.AudioVideo);
                this.AVSession.MakeCall(this.remotePartyUri);
            }
            else if (this.AVSession != null)
            {
                this.AVSession.AcceptCall();
            }
        }