Beispiel #1
0
 internal void ConnectConfirmation(ConnectConfirmation confirmation, MessageAsyncResult result)
 {
     if (confirmation.Succeeded)
     {
         ConnectRequest request    = (ConnectRequest)result.Request;
         Connection     connection = new Connection(_application, this, confirmation.Identifier.PLCI, request.CalledPartyNumber, request.CallingPartyNumber);
         Connections.InternalAdd(connection);
         connection.Inititator = true;
         connection.Status     = ConnectionStatus.D_ConnectPending;
         result.InvokeCallback(connection);
     }
     else
     {
         result.InvokeCallback(new CapiException(confirmation.Info));
     }
 }
 /// <summary>
 /// Local confirmation of the connect request.
 /// </summary>
 /// <param name="header"></param>
 /// <param name="confirmation"></param>
 internal abstract void ConnectConfirmation(ConnectConfirmation confirmation, MessageAsyncResult result);