SIPRequest sipRequest = new SIPRequest();
sipRequest.setMethod(method);
sipRequest.setRequestURI( sipUri );
sipRequest.setHeader(via); // branch gets set when sending
try {
sipRequest.setHeader( new MaxForwards(70) );
} catch (InvalidArgumentException e) {
}
sipRequest.setHeader(cseq);
sipRequest.setHeader(from);
sipRequest.setHeader(to);