anchor.diff:  	    end;
   	Unknown ->
   	    logger:log(error, "Appserver: Unexpected result from lookup_address_to_users(~p) : ~p",
  -	    		[sipurl:print(LookupURL), Unknown]),
  +		       [sipurl:print(LookupURL), Unknown]),
   	    throw({siperror, 500, "Server Internal Error"})
       end.
   
  
positive.code: 	    Pid;
  	_ ->
  	    logger:log(error, "Appserver glue: ~s ~p is not alive, garbage collected.",
  	    		[Descr, Pid]),
  	    none
      end.
  
  
negative.code:     {Status, Reason, _, _} = Response,
      if
  	Status >= 200, Status =< 299 ->
  	    %% XXX change to debug level
  	    logger:log(normal, "Appserver glue: Forwarding 'late' 2xx response, ~p ~s to INVITE ~s statelessly",
  		       [Status, Reason, sipurl:print(URI)]),
  	    transportlayer:send_proxy_response(none, Response);
  	true ->
  	    logger:log(error, "Appserver glue: NOT forwarding non-2xx response ~p ~s to INVITE ~s - " ++
  		       "a final response has already been forwarded (sipproxy should not do this!)",
  		       [Status, Reason, sipurl:print(URI)])
      end,
      State;
  handle_sipproxy_response(Response, State) when record(State, state), State#state.completed == true ->
      {Method, URI, _, _} = State#state.request,
      {Status, Reason, _, _} = Response,
      logger:log(error, "Appserver glue: NOT forwarding response ~p ~s to non-INVITE request ~s ~s - " ++
  	       "a final response has already been forwarded (sipproxy should not do this!)",
  	       [Status, Reason, Method, sipurl:print(URI)]),
      State;
  handle_sipproxy_response(Response, State) when record(State, state) ->
      {Method, URI, _, _} = State#state.request,
      {Status, Reason, _, _} = Response,
      CallHandler = State#state.callhandler,
      logger:log(debug, "Appserver glue: Forwarding response ~p ~s to ~s ~s to CallHandler ~p",
  	       [Status, Reason, Method, sipurl:print(URI), CallHandler]),
      transactionlayer:send_proxy_response_handler(CallHandler, Response),
      if
  	Status >= 200 ->
  