예제 #1
0
 //------------------------ Tc_OnInviteReceived ---------------------//
 // Invite received
 private void Tc_OnInviteReceived(object sender, AxTrueConf_CallXLib._ITrueConfCallXEvents_OnInviteReceivedEvent e)
 {
     WriteLog(String.Format("Info : {0} : InviteReceived !!!", DateTime.Now.ToString("g")));
     labelInfo.Content = "Invite is received";
     // accept incoming invitation
     tc.accept();
 }
예제 #2
0
 private void Tc_OnInviteReceived(object sender, _ITrueConfCallXEvents_OnInviteReceivedEvent e)
 {
     if (appState != 5)
     {
         tc.accept();
     }
     WriteLog(String.Format("Info : {0} : Incoming call or invitation. Event details - {1}", DateTime.Now.ToString("g"), e.eventDetails));
 }
예제 #3
0
        private void Sdk_OnInviteReceived(object sender, _ITrueConfCallXEvents_OnInviteReceivedEvent e)
        {
            sdk.accept(); //accept incoming calls and invitations
            dynamic data = JsonConvert.DeserializeObject(e.eventDetails);

            mainModel.PeerID     = (string)data.peerId; //get call interlocutor  ID
            mainModel.SelectedID = mainModel.PeerID;
        }