Exemple #1
0
 protected virtual void AnswerToEvent(AnswerEvent eventArgs)
 {
     AnswerEvent?.Invoke(this, new AnswerEvent(
                             eventArgs.TelephoneNumber,
                             eventArgs.TargetTelephoneNumber,
                             eventArgs.InCall,
                             eventArgs.Id));
 }
Exemple #2
0
 public void TakeAnswer(object sender, AnswerEvent e)
 {
     id = e.Id;
     if (e.InCall == CallStatus.Answered)
     {
         Console.WriteLine("  {0}{0}{0} Go dialog: from {2} to {1}, at the end click any button.....", ((char)'\u25BA'), e.TelephoneNumber, e.TargetTelephoneNumber);
         Console.ReadKey();
         EndCall();
     }
     else if (e.InCall == CallStatus.Rejected)
     {
         Console.WriteLine("  {0}{0}{0} Rejected!", ((char)'\u25BA'));
     }
 }
Exemple #3
0
 private void AnswerTo(object sender, AnswerEvent e)
 {
     AnswerToEvent(e);
 }
Exemple #4
0
 protected virtual void UpAnswerEvent(int targetNumber, CallStatus status, Guid id)
 {
     AnswerEvent?.Invoke(this, new AnswerEvent(phoneNumber, targetNumber, status, id));
 }