Example #1
0
 protected virtual void OnIncomingRequest(object sender, IncommingRequest request)
 {
     if (IncommingCallRequest!=null)
     {
         IncommingCallRequest(sender, request);
     }
     ServerIncomingRequest = request;
 }
Example #2
0
 protected virtual void OnOutgoingCall(object sender,PhoneNumber target)
 {
     if(OutgoingConnection!=null)
     {
         ServerIncomingRequest = new Requests.OutgoingRequest() { Source = this.Number, Target = target };
         OutgoingConnection(sender, ServerIncomingRequest);
     }
 }
Example #3
0
 public void Drop()
 {
     if (ServerIncomingRequest != null)
     {
         if (IsOnline)
         {
             OnOffline(this, null);
         }
         OnIncomingRespond(this, new Respond.Respond() { Source = Number, State = Respond.RespondState.Drop, Request = ServerIncomingRequest });
         ServerIncomingRequest = null;
     }
 }