anchor.diff: +%% Note: the #phone.requristr field must always be created with
  +%% url_to_requristr/1, otherwise functions that match againts
  +%% requristr, like get_sipuser_location_binding/2 will fail.
   %%
   %%--------------------------------------------------------------------
   
  
positive.code:     sipserver:get_env(databaseservers).
  
  %%--------------------------------------------------------------------
  %% Function: insert_phone/5
  %% Descrip.: Inserts an entry for a number (SIP user) in the location
  %%           database.
  %% Returns : The result of the mnesia:transaction()
  %%--------------------------------------------------------------------
  insert_phone(SipUser, Flags, Class, Expire, Address) when is_record(Address, sipurl) ->
      %% We store locations as strings in the location database, since any
      %% datastructure could have to be changed in the future
      LocationStr = sipurl:print(Address),
      %% URIstr is not a valid location for this user, it is used to find the user of
      %% a location.
      URIstr = url_to_requristr(Address),
      db_util:insert_record(#phone{number = SipUser, flags = Flags, class = Class,
  			 expire = Expire, address = LocationStr,
  			 requristr = URIstr}).
  
  %%--------------------------------------------------------------------
  %% Function: insert_purge_phone/5
  %% Descrip.: Removes all entrys matching on the number (SIP user),
  %%           class and address, then inserts a new entry in the
  %%           location database.
  %% Returns : The result of the mnesia:transaction()
  %%--------------------------------------------------------------------
  insert_purge_phone(SipUser, Flags, Class, Expire, Address) when is_record(Address, sipurl) ->
      %% We store locations as strings in the location database, since any
      %% datastructure could have to be changed in the future
      LocationStr = sipurl:print(Address),
  
negative.code: %% Descrip.: Removes all entrys matching a number (SIP user),
  %%           and class from the location database.
  %% Returns : The result of the mnesia:transaction()
  %% XXX only used in admin_www.erl
  %%--------------------------------------------------------------------
  purge_class_phone(Number, Class) ->
      Fun = fun() ->
  