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: 	    logger:log(debug, "Routing: request_to_homedomain_not_sipuser: Calling request_to_homedomain on "
  		       "result of local:lookup_homedomain_url (local URL ~s)",
  		       [sipurl:print(NewURL)]),
  	    request_to_homedomain(NewURL, loop);
  	{relay, Dst} ->
  	    logger:log(debug, "Routing: request_to_homedomain_not_sipuser: Turning relay into proxy, original "
  		       "request was to a local domain"),
  
negative.code: %%           {forward, Proto, Host, Port} |
  %%           none
  %%--------------------------------------------------------------------
  request_to_homedomain(URL, LogTag) when is_record(URL, sipurl) ->
      request_to_homedomain(URL, LogTag, init).
  
  request_to_homedomain(URL, LogTag, Recursing) when is_record(URL, sipurl) ->
      URLstr = sipurl:print(URL),
      logger:log(debug, "Routing: Request to homedomain, URI ~p", [URLstr]),
  
      case local:lookupuser(URL) of
  	none ->
  	    logger:log(debug, "Routing: ~s is one of our users, answering '480 Temporarily Unavailable'",
  		       [sipurl:print(URL)]),
  	    {response, 480, "Users location currently unknown"};
  	nomatch ->
  	    request_to_homedomain_not_sipuser(URL, LogTag, Recursing);
  	{ok, Users, Res} when is_list(Users) ->
  	    request_to_homedomain_log_result(URLstr, Res),
  
  	    %% Generate a request_info event with some information about this request
  	    L = [{to_users, Users}],
  	    event_handler:request_info(normal, LogTag, L),
  
  	    Res
      end.
  
  request_to_homedomain_log_result(URLstr, {A, U}) when is_atom(A), is_record(U, sipurl) ->
      logger:log(debug, "Routing: lookupuser on ~p -> ~p to ~p", [URLstr, A, sipurl:print(U)]);
  request_to_homedomain_log_result(URLstr, {forward, Proto, Host, Port}) ->
      logger:log(debug, "Routing: lookupuser on ~p -> forward to ~p:~s:~p", [URLstr, Proto, Host, Port]);
  request_to_homedomain_log_result(URLstr, Res) ->
      logger:log(debug, "Routing: lookupuser on ~p -> ~p", [URLstr, Res]).
  
  %%--------------------------------------------------------------------
  %% Function: request_to_homedomain_not_sipuser(URL, LogTag, Recursing)
  %%           URL       = sipurl record()
  %%           LogTag    = string()
  %%           Recursing = init | loop, have we recursed already?
  %% 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
  