code: @Override
  	public Request createRequest(Request origRequest) throws SipException {
  		Request request = super.createRequest(origRequest);
          if (wrappedDialog == null) {
  			// hack uri and address headers
  			final SIPRequest sipRequest = (SIPRequest) request;
  			final SleeSipProviderImpl provider = ra.getProviderWrapper();
  			final HeaderFactory headerFactory = provider.getHeaderFactory();
  			try {
  				// hack request with local addresses
  				final URI requestURI = (URI) toAddress.getURI().clone();
  				if(requestURI.isSipURI()) {
  					((SipUri)requestURI).clearUriParms();					
  				}
  				sipRequest.setRequestURI(requestURI);
  				final FromHeader fromHeader = headerFactory.createFromHeader(
  						fromAddress, getLocalTag());
  				sipRequest.setFrom(fromHeader);
  				final ToHeader toHeader = headerFactory.createToHeader(
  						toAddress, null);
  				sipRequest.setTo(toHeader);
  			} catch (Exception e) {
  				throw new SipException(e.getMessage(), e);
  			}
  		}
  		return request;
  	}
docs: /* (non-Javadoc)
  @see org.mobicents.slee.resource.sip11.wrappers.DialogWrapper#createRequest(javax.sip.message.Request)