public void OutgoingCall(object sender, CallEventArgs e) { if (State != PortState.Connected) { return; } State = PortState.Busy; CurrentCallId = Guid.NewGuid(); e.Id = CurrentCallId; Console.WriteLine(@"Port -> OutgoingCall: id {0}", CurrentCallId); PortCallEvent?.Invoke(sender, e); }
public void IncomingCall(string number, string incomingNumber) { PortCallEvent?.Invoke(this, new CallEventArgs(number, incomingNumber)); }
protected virtual void DoIncomingCallEvent(int number, int objectNumber) { PortCallEvent?.Invoke(this, new CallArgsEvent(number, objectNumber)); }