private void GetCallInformation(object sender, GetCallInfoEventArgs e) { if (e.Type == CallInformationType.Incoming) { if (sender is Port) { (sender as Port).MessageToTerminal(ThisBillingSystem.GetIncomingCallsHistory(e.OutgoingPhoneNumber)); } } if (e.Type == CallInformationType.Outgoing) { if (sender is Port) { (sender as Port).MessageToTerminal(ThisBillingSystem.GetOutgoingCallsHistory(e.OutgoingPhoneNumber)); } } if (e.Type == CallInformationType.All) { if (sender is Port) { (sender as Port).MessageToTerminal(ThisBillingSystem.GetAllCallsHistory(e.OutgoingPhoneNumber)); } } if (e.Type == CallInformationType.Filtered) { if (sender is Port) { (sender as Port).CallEnumerableToTerminal(ThisBillingSystem.Get()); } } }
private void GetCallInfoFromATE(object sender, GetCallInfoEventArgs e) { OnGetCallInfoConnectEvent(e.OutgoingPhoneNumber, e.Type); }