receiveRequest method

void receiveRequest(
  1. IncomingRequest request
)

Implementation

void receiveRequest(IncomingRequest request) {
  // Check in-dialog request.
  if (!_checkInDialogRequest(request)) {
    return;
  }

  // ACK received. Cleanup _ack_seqnum.
  if (request.method == SipMethod.ACK && _ack_seqnum != null) {
    _ack_seqnum = null;
  }
  // INVITE received. Set _ack_seqnum.
  else if (request.method == SipMethod.INVITE) {
    _ack_seqnum = request.cseq;
  }

  _owner!.receiveRequest(request);
}