anchor.diff:  		    {_, {siperror, Status, SipReason}} ->
   			logger:log(error, "sipproxy: Branch with pid ~p FAILED : ~p ~s",
   				   [Pid, Status, SipReason]),
  -			SPR = #sp_response{status=Status, reason=SipReason, created=true},
  +			SPR = #sp_response{status  = Status,
  +					   reason  = SipReason,
  +					   created = true
  +					  },
   			targetlist:set_endresult(ThisTarget, SPR);
   		    {_, {siperror, Status, SipReason, ExtraHeaders}} ->
   			%% We currently have no means to do anything intelligent with
  
positive.code:     throw({error, sipproxy_cant_create_auth_response});
  check_forward_immediately(Request, SPResponse, Branch, State)
    when is_record(Request, request), is_record(SPResponse, sp_response), is_record(State, state) ->
      {Method, URI} = {Request#request.method, Request#request.uri},
      {Status, Reason} = {SPResponse#sp_response.status, SPResponse#sp_response.reason},
      case forward_immediately(Method, Status, State) of
  	{true, NewState} ->
  	    Parent = NewState#state.parent,
  	    logger:log(debug, "sipproxy: Forwarding response '~p ~s' (in response to ~s ~s) to my parent (pid ~p) "
  		       "immediately", [Status, Reason, Method, sipurl:print(URI), Parent]),
  	    %% RFC 3261 16.7 bullet 5 (Check response for forwarding) says we MUST process any
  	    %% response chosen for immediate forwarding as described in
  	    %% "Aggregate Authorization Header Field Values" through "Record-Route".
  
negative.code:     ReasonStr = lists:flatten( io_lib:format("SIP; cause=~p; text=~p", [Status, Reason]) ),
      ExtraHeaders = [{"Reason", [ReasonStr]}],
      NewTargets = cancel_pending_targets(State#state.targets, ExtraHeaders),
      State#state{targets = NewTargets}.
  
  %%--------------------------------------------------------------------
  %% Function: printable_responses(Responses)
  