anchor.diff:      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 = contact:parse([PU_Contact27Str ++ ";+sip.instance=\"" ++ PU_Contacts26_Instance ++
  -				   "\";reg-id=4711;expires=30"]),
  +    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"}}
  
positive.code: 
      autotest:mark(?LINE, "process_updates/2 - 28.1"),
      %% test client makes second REGISTER to other node
      PU_Contacts28 = contact:parse([PU_Contact27Str ++ ";+sip.instance=\"" ++ PU_Contacts26_Instance ++
  				   "\";reg-id=4712;expires=30"]),
      %% same CSeq (sent to another node, right?) but different Call-Id
      PU_Header28_1 = keylist:set("CSeq", ["2701 REGISTER"], PU_RegReq1#reg_request.header),
      PU_Header28 = keylist:set("Call-Id", ["2345-some-other-call-id"], PU_Header28_1),
  
negative.code:     43200 = get_register_expire(86400),
  
  
      %% locations_to_contacts(Locations, SipUser, Do_GRUU, DoOutbound, To, Timestamp)
      %%--------------------------------------------------------------------
      autotest:mark(?LINE, "locations_to_contacts/6 - 0"),
      LTC_Now1 = util:timestamp(),
      LTC_L1 = #siplocationdb_e{expire = LTC_Now1 + 1, address = sipurl:parse("sip:ft@one.example.org")},
      LTC_L2 = #siplocationdb_e{expire = LTC_Now1 + 2, address = sipurl:parse("sip:ft@two.example.org")},
      LTC_L3 = #siplocationdb_e{expire = never, address = sipurl:parse("sip:ft@static.example.org")},
  
      LTC_L4 = #siplocationdb_e{address  = sipurl:parse("sip:ft@uac.example.org"),
  				sipuser  = "ft.test",
  				instance = "<urn:test:abc>",
  				flags    = [],
  				expire   = LTC_Now1 + 10
  			       },
  
      autotest:mark(?LINE, "locations_to_contacts/6 - 1"),
      LTC_To = ["<sip:testuser@example.org>"],
      %% test basic case
      {false, ["<sip:ft@one.example.org>;expires=1", "<sip:ft@two.example.org>;expires=2"]} =
  	locations_to_contacts([LTC_L2, LTC_L1], "testuser", false, false, LTC_To, LTC_Now1),
  
      autotest:mark(?LINE, "locations_to_contacts/6 - 2"),
      %% test that we ignore entrys that never expire
      {false, []} = locations_to_contacts([LTC_L3], "testuser", false, false, LTC_To, LTC_Now1),
  
      autotest:mark(?LINE, "locations_to_contacts/6 - 3"),
      %% test that we ignore entrys that never expire together with other entrys
      {false, ["<sip:ft@one.example.org>;expires=1", "<sip:ft@two.example.org>;expires=2"]} =
  	locations_to_contacts([LTC_L2, LTC_L3, LTC_L1], "testuser", false, false, LTC_To, LTC_Now1),
  
      autotest:mark(?LINE, "locations_to_contacts/6 - 4"),
      %% test simple case, instance id but no reg_id parameter
      {false, ["<sip:ft@uac.example.org>;expires=10"]} =
  	locations_to_contacts([LTC_L4], "ft.test", false, false, LTC_To, LTC_Now1),
  
      autotest:mark(?LINE, "locations_to_contacts/6 - 5"),
      LTC_L5 = LTC_L4#siplocationdb_e{flags = [{reg_id, 1}]
  				   },
      %% test simple case, outbound
      {false, ["<sip:ft@uac.example.org>;expires=10;+sip.instance=\"<urn:test:abc>\";reg-id=1"]} =
  	locations_to_contacts([LTC_L5], "ft.test", false, true, LTC_To, LTC_Now1),
  
      autotest:mark(?LINE, "locations_to_contacts/6 - 6"),
      %% test same thing, outbound disabled
      {false, ["<sip:ft@uac.example.org>;expires=10"]} =
  	locations_to_contacts([LTC_L5], "ft.test", false, false, LTC_To, LTC_Now1),
  
  
      %% to_url(LDBE)
  