public SipRequest createInitialRequest(String requestUri, String method,
String profileUri, String callId,
MessageInterceptor messageInterceptor)
throws SipUriSyntaxException {
SipRequest sipRequest = createInitialRequestStart(requestUri, method,
profileUri, callId);
// TODO add route header for outbound proxy give it to xxxHandler to create
// clientTransaction
SipURI outboundProxy = userAgent.getOutboundProxy();
if (outboundProxy != null) {
NameAddress outboundProxyNameAddress =
new NameAddress(outboundProxy.toString());
sipRequest.getSipHeaders().add(new SipHeaderFieldName(RFC3261.HDR_ROUTE),
new SipHeaderFieldValue(outboundProxyNameAddress.toString()), 0);
}
ClientTransaction clientTransaction = null;
if (RFC3261.METHOD_INVITE.equals(method)) {
clientTransaction = inviteHandler.preProcessInvite(sipRequest);