clone method

Implementation

@override
InitialOutgoingInviteRequest clone() {
  InitialOutgoingInviteRequest request =
      InitialOutgoingInviteRequest(ruri, ua);

  headers.forEach((String? name, dynamic value) {
    request.headers[name] = List<dynamic>.from(headers[name]);
  });

  request.body = body;
  request.extraHeaders = utils.cloneArray(extraHeaders);
  request.to = to;
  request.from = from;
  request.call_id = call_id;
  request.cseq = cseq;

  request.transaction = transaction;

  return request;
}