anchor.diff:      end.
   
   %%--------------------------------------------------------------------
  -%% Function: ack_non_1xx_or_2xx_response_to_invite(Method, Response,
  -%%                                                 State)
  +%% Function: ack_response_to_invite(Method, Response, State)
   %%           Method   = string()
   %%           Response = response record()
   %%           State    = state record()
   %% Descrip.: Send an ACK if this is an INVITE transaction and the
  -%%           response received was a 3xx, 4xx, 5xx or 6xx.
  -%% Returns : NewState = state record()
  -%%--------------------------------------------------------------------
  -ack_non_1xx_or_2xx_response_to_invite(#response{status=Status}=Response, State)
  +%%           response received was a 3/4/5/6xx.
  +%% Returns : NewState = state record()
  +%%--------------------------------------------------------------------
  +ack_response_to_invite(#response{status=Status}=Response, State)
     when is_record(State, state), Status >= 300, Status =< 699 ->
       LogTag = State#state.logtag,
       Request = State#state.request,
       URI = Request#request.uri,
  -    logger:log(debug, "~s: ACK-ing 3xx, 4xx, 5xx or 6xx response ~p ~s to INVITE ~s (in state '~p')",
  +    logger:log(debug, "~s: ACK-ing 3/4/5/6xx response '~p ~s' to INVITE ~s (in state '~p')",
   	       [LogTag, Status, Response#response.reason, sipurl:print(URI), State#state.sipstate]),
       generate_ack(Response, State),
       State.
  
positive.code: 	calling ->
  	    fake_request_timeout(State);
  	proceeding when Method == "INVITE" ->
  	    logger:log(debug, "~s: Sending of original request (INVITE ~s) timed out in state " ++
  		       "'proceeding' - cancel original request",
  		       [LogTag, sipurl:print(URI)]),
  	    cancel_request(State);
  	proceeding ->
  	    fake_request_timeout(State);
  
negative.code: 		%% Cancel/reset INVITE request expire timer when receiving provisional responses
  		update_invite_expire(Status, NewState1);
  	    "INVITE" when Status >= 300, Status =< 699  ->
  		%% ACK any 3/4/5/6xx responses if they are responses to an INVITE
  		%% and we are in either 'calling' or 'proceeding' state
  		ack_response_to_invite(Response, NewState1);
  	    _ ->
  		NewState1
  	end,
  