NonInviteServerTransaction constructor

NonInviteServerTransaction(
  1. PitelUA ua,
  2. Transport? transport,
  3. IncomingRequest request
)

Implementation

NonInviteServerTransaction(
    PitelUA ua, Transport? transport, IncomingRequest request) {
  id = request.via_branch;
  this.ua = ua;
  this.transport = transport;
  this.request = request;
  last_response = IncomingMessage();
  request.server_transaction = this;

  state = TransactionState.TRYING;

  ua.newTransaction(this);
}