anchor.diff:      end.
   
   
  -%% @doc Gets the dialog object corresponding to a request
  --spec get_dialog(nksip:request()|nksip:response(), nksip:call()) ->
  +%% @doc Gets the dialog object corresponding to a request or subscription and a call
  +-spec get_dialog(nksip:request()|nksip:response()|nksip:subscription(), nksip:call()) ->
       nksip:dialog()|error.
   
   get_dialog(#sipmsg{dialog_id=DialogId}, #call{}=Call) ->
       case nksip_call_dialog:find(DialogId, Call) of
           not_found -> error;
           Dialog -> {ok, Dialog}
  -    end.
  +    end;
  +
  +get_dialog({uses_subs, _Subs, Dialog}, _) ->
  +    Dialog.
   
   
   %% @doc Gets all started dialog ids.
  
positive.code: 
  
  %% @doc Gets app's name
  -spec app_name(nksip:request()|nksip:id()) -> 
      term().
  
  app_name(Req) -> 
      (app_id(Req)):name().
  
  
  %% @doc Gets thel Call-ID of a dialog
  
negative.code: 
  
  %% @doc Finds all existing dialogs having a `Call-ID'.
  -spec get_all(term()|nksip:app_id(), nksip:call_id()) ->
      [nksip:id()].
  
  get_all(App, CallId) ->
  