anchor.diff:  
   %%--------------------------------------------------------------------
   %% Function: fetch_contacts(SipUser, Do_GRUU, To)
  -%%           SipUser = string(), SIP authentication user - key in
  -%%                     location database
  -%%           Do_GRUU = bool(), add gruu= parameters or not?
  -%%           To      = list() of string(), REGISTER request To header
  -%% Descrip.: find all the locations where a specific sipuser can be
  -%%           located (e.g. all the users phones)
  +%%           SipUser    = string(), SIP authentication user - key in
  +%%                        location database
  +%%           Do_GRUU    = bool(), add gruu= parameters or not?
  +%%           DoOutbound = bool(), is outbound enabled?
  +%%           To         = list() of string(), REGISTER request To
  +%%                        header
  +%% Descrip.: Find all the locations where a specific sipuser can be
  +%%           located (e.g. all the users phones).
   %% Returns : {ok, GRUUs, Contacts}
   %%           GRUUs    = bool(), true if one or more of the contacts
   %%                      were equipped with 'gruu' contact parameters
   %%           Contacts = list() of string(), formated as a contact
   %%                      field-value (see RFC 3261)
   %%--------------------------------------------------------------------
  -fetch_contacts(SipUser, Do_GRUU, To) ->
  +fetch_contacts(SipUser, Do_GRUU, DoOutbound, To) ->
       {ok, Locations} = phone:get_sipuser_locations(SipUser),
  -    {ContainsGRUUs, Contacts} = locations_to_contacts(Locations, SipUser, Do_GRUU, To),
  +    {ContainsGRUUs, Contacts} = locations_to_contacts(Locations, SipUser, Do_GRUU,
  +						      DoOutbound, To, util:timestamp()),
       {ok, ContainsGRUUs, Contacts}.
   
  -%% return: list() of string() (contact:print/1 of contact record())
  -locations_to_contacts(Locations, SipUser, Do_GRUU, To) ->
  -    locations_to_contacts2(Locations, util:timestamp(), SipUser, Do_GRUU, To, false, []).
  -
  -locations_to_contacts2([], _Now, _SipUser, _Do_GRUU, _To, GRUUs, Res) ->
  +%% Returns: {GRUUs, Contacts}
  +%%          GRUUs    = bool()
  +%%          Contacts = list() of string(), (contact:print/1 of contact record())
  +locations_to_contacts(Locations, SipUser, Do_GRUU, DoOutbound, To, Timestamp) ->
  +    locations_to_contacts2(Locations, Timestamp, SipUser, Do_GRUU, DoOutbound, To, false, []).
  +
  +locations_to_contacts2([], _Now, _SipUser, _Do_GRUU, _DoOutbound, _To, GRUUs, Res) ->
       {GRUUs, Res};
  -locations_to_contacts2([#siplocationdb_e{expire = never} | T], Now, SipUser, Do_GRUU, To, GRUUs, Res) ->
  +locations_to_contacts2([#siplocationdb_e{expire = never} | T], Now, SipUser, Do_GRUU, DoOutbound, To, GRUUs, Res) ->
       %% Don't include static contacts which never expire
  -    locations_to_contacts2(T, Now, SipUser, Do_GRUU, To, GRUUs, Res);
  -locations_to_contacts2([#siplocationdb_e{expire = Expire} = H | T], Now, SipUser, Do_GRUU, To, GRUUs, Res)
  +    locations_to_contacts2(T, Now, SipUser, Do_GRUU, DoOutbound, To, GRUUs, Res);
  +locations_to_contacts2([#siplocationdb_e{expire = Expire} = H | T], Now, SipUser, Do_GRUU, DoOutbound, To, GRUUs, Res)
     when is_integer(Expire) ->
       Location = H#siplocationdb_e.address,
   
  
positive.code: 
      autotest:mark(?LINE, "process_updates/2 - 27.2"),
      %% verify the contacts in the response
      ok = test_verify_contacts(25, 30, [PU_Contact27Str], PU_Contacts27_CRes),
  
      autotest:mark(?LINE, "process_updates/2 - 27.3"),
      %% verify the record in the location database
  
negative.code:     autotest:mark(?LINE, "process_updates/2 - 27.1"),
      %% test client replacing previous registration with new flow
      PU_Contact27Str = "<sip:new@192.0.2.10:1213>",
      PU_Contacts27_OBstr = ";+sip.instance=\"" ++ PU_Contacts26_Instance ++ "\";reg-id=4711",
      PU_Contacts27 = contact:parse([PU_Contact27Str ++ PU_Contacts27_OBstr ++ ";expires=30"]),
      PU_Header27 = keylist:set("CSeq", ["2701 REGISTER"], PU_RegReq1#reg_request.header),
      PU_RegReq27 = PU_RegReq26#reg_request{header	= PU_Header27,
  					  origin	= #siporigin{sipsocket = #sipsocket{id = "PU_test27_socketid"}}
  