anchor.diff:  -export([
   	 start/5
   	]).
  +
  +-export([test/0]).
   
   %%--------------------------------------------------------------------
   %% Include files
  
positive.code: %%           send a 500 response in case we have no destinations left.
  %% Returns : NewState = state record()
  %%--------------------------------------------------------------------
  start_next_client_transaction(#state{cancelled=false}=State) ->
      case State#state.dstlist of
  	[_LastDst] ->
  	    logger:log(debug, "sippipe: There are no more destinations to try for this target - " ++
  		       "telling server transaction to answer 500 No reachable destination"),
  	    %% RFC3261 #16.7 bullet 6 says we SHOULD generate a 500 if a 503 is the best we've got
  	    transactionlayer:send_response_handler(State#state.serverhandler, 500, "No reachable destination"),
  	    State#state{clienttransaction_pid	= none,
  			branch			= none,
  			dstlist			= []
  		       };
  	[_FailedDst | DstList] ->
  	    case get_next_sipdst(DstList, State#state.approxmsgsize) of
  		[FirstDst | _] = NewDstList when is_record(FirstDst, sipdst) ->
  
negative.code: 		    logger:log(debug, "sippipe: There are no more destinations to try for this target - " ++
  			       "telling server transaction to answer '500 No reachable destination'"),
  		    %% RFC3261 #16.7 bullet 6 says we SHOULD generate a 500 if a 503 is the best we've got
  		    {siperror, 500, "No reachable destination", []}
  	    end
      end.
  
  