anchor.diff:  		 false -> RequestIn#request.header
   	     end,
       Request = RequestIn#request{header = Header},
  -    Location = route_request(Request),
  -    logger:log(debug, "incomingproxy: Location: ~p", [Location]),
       THandler = transactionlayer:get_handler_for_request(Request),
       LogTag = get_branch_from_handler(THandler),
  +    Location = route_request(Request, LogTag),
  +    logger:log(debug, "incomingproxy: Location: ~p", [Location]),
       case Location of
   	none ->
   	    logger:log(normal, "~s: incomingproxy: 404 Not found", [LogTag]),
  
positive.code: %%           {forward, Proto, Host, Port} |
  %%           none
  %%--------------------------------------------------------------------
  request_to_homedomain(URL) when is_record(URL, sipurl) ->
      request_to_homedomain(URL, init).
  
  request_to_homedomain(URL, Recursing) when is_record(URL, sipurl) ->
      logger:log(debug, "Routing: Request to homedomain, URI ~p", [sipurl:print(URL)]),
  
      Loc1 = local:lookupuser(URL),
      logger:log(debug, "Routing: lookupuser on ~p -> ~p", [sipurl:print(URL), Loc1]),
  
      case Loc1 of
  	none ->
  	    logger:log(debug, "Routing: ~s is one of our users, returning Temporarily Unavailable",
  		       [sipurl:print(URL)]),
  	    {response, 480, "Users location currently unknown"};
  	nomatch ->
  	    request_to_homedomain_not_sipuser(URL, Recursing);
  	Loc1 ->
  	    Loc1
      end.
  
  %%--------------------------------------------------------------------
  %% Function: request_to_homedomain_not_sipuser/2
  %% Descrip.: Second part of request_to_homedomain/1. The request
  %%           is not for one of our SIP-users, call
  %%           local:lookup_homedomain_url() and if that does not
  
negative.code: 		    transactionlayer:send_response_request(Request, 500, "Server Internal Error"),
  		    drop
  	    end;
  	false ->
  	    true
      end.
  
  