anchor.diff:  	    %% supposed to send as a result of the initial SUBSCRIBE? Subsequent SUBSCRIBE?
   	    State;
   	{ok, Body, ExtraHeaders, NewPkgState} when is_list(Body); is_binary(Body), is_list(ExtraHeaders) ->
  -	    case ({Body, ExtraHeaders} == State#state.last_notify_content) of
  +	    CompareWith = {Body, ExtraHeaders, State#state.subscription_state},
  +	    case (CompareWith == State#state.last_notify_content) of
   		true ->
   		    logger:log(debug, "Subscription: Supressed sending of NOTIFY identical (essentially) "
   			       "to the last one we sent."),
   		    State;
   		false ->
   		    NewState1 = send_notify_request(State, Body, ExtraHeaders),
  -		    NewState1#state{last_notify_content = {Body, ExtraHeaders},
  +		    NewState1#state{last_notify_content = CompareWith,
   				    event_pkg_state     = NewPkgState
   				   }
   	    end
  
positive.code:     Now = util:timestamp(),
  
      {NewSubState, SubscriptionState} =
  	case (State#state.expires =< Now) of
  	    true ->
  		%% "A subscription is destroyed when a notifier sends a NOTIFY request
  		%%  with a "Subscription-State" of "terminated"." RFC3265 #3.3.4
  		{terminated, "terminated;reason=timeout"};
  	    false ->
  		SubStr = lists:concat([State#state.subscription_state, ";expires=", State#state.expires - Now]),
  		{State#state.subscription_state, lists:flatten(SubStr)}
  	end,
  
      ExtraHeaders1 =
  
negative.code: 	false ->
  	    process_timer_signal(send_notify, undefined, State)
      end;
  
  %%--------------------------------------------------------------------
  %% Function: handle_cast({terminate, Mode}, State)
  %%           Mode = atom(), shutdown | graceful | ...
  %% Descrip.: Terminate the subscription since the eventserver is
  %%           shutting down.
  %% Returns :    {stop, Reason, State}
  %%--------------------------------------------------------------------
  handle_cast({terminate, Mode}, State) when is_atom(Mode) ->
      NewState =
  	case State#state.subscription_state of
  	    S when S == active; S == pending ->
  		logger:log(debug, "Subscription: Deactivating subscription"),
  		prepare_and_send_notify(State#state{subscription_state = deactivated});
  	    _ ->
  		State
  	end,
      {stop, normal, NewState};
  
  handle_cast(Msg, State) ->
      logger:log(error, "Subscription: Received unknown gen_server cast : ~p", [Msg]),
  