anchor.diff:  	    request_to_me(THandler, Request, LogStr);
   	_ ->
   	    logger:log(error, "~s: incomingproxy: Invalid Location ~p", [LogTag, Location]),
  -	    transactionlayer:send_response_request(Request, 500, "Server Internal Error")
  +	    transactionlayer:send_response_handler(THandler, 500, "Server Internal Error")
       end.
   
   proxy_request(THandler, Request, DstURL, Parameters) ->
  
positive.code: 	stale ->
  	    logger:log(debug, "Relay: STALE authentication, sending challenge"),
  	    ExtraHeaders = [{"Proxy-Authenticate", sipheader:auth_print(sipauth:get_challenge(), true)}],
  	    transactionlayer:send_response_request(Request, 407, "Proxy Authentication Required", ExtraHeaders);
  	false ->
  	    logger:log(debug, "Relay: Sending challenge"),
  	    logger:log(normal, "~s: incomingproxy: Relay ~s -> 407 Proxy Authorization Required", [LogTag, sipurl:print(DstURI)]),
  	    ExtraHeaders = [{"Proxy-Authenticate", sipheader:auth_print(sipauth:get_challenge(), false)}],
  	    transactionlayer:send_response_request(Request, 407, "Proxy Authentication Required", ExtraHeaders);
  	Unknown ->
  	    logger:log(error, "relay_request: Unknown result from sipauth:get_user_verified_proxy() :~n~p", [Unknown]),
  	    transactionlayer:send_response_request(Request, 500, "Server Internal Error")
      end.
  
  response(Status, Reason, Header, Body, Socket, FromIP) ->
  
negative.code: % call verify_homedomain_user() to make sure the user is
  % authorized and authenticated to use this From: address
  request(Method, URL, Header, Body, Socket, FromIP) ->
      Request = {Method, URL, Header, Body},
      {_, FromURI} = sipheader:from(keylist:fetch("From", Header)),
      {_, _, Host, _, _} = FromURI,
      case local:homedomain(Host) of
  	true ->
  	    LogStr = sipserver:make_logstr({request, Method, URL, Header, Body}, FromIP),
  	    case verify_homedomain_user(Socket, Request, LogStr) of
  		true ->
  		    do_request(Request, Socket, FromIP);
  		false ->
  		    logger:log(normal, "~s -> 403 Forbidden", [LogStr]),
  		    transactionlayer:send_response_request(Request, 403, "Forbidden");
  		Unknown ->
  		    logger:log(error, "~s: Unknown result from verify_homedomain_user() :~n~p",
  		    		[LogStr, Unknown]),
  		    transactionlayer:send_response_request(Request, 500, "Server Internal Error")
  	    end;
  	_ ->
  	    do_request(Request, Socket, FromIP)
      end.
  
  verify_homedomain_user(Socket, Request, LogStr) ->
  