anchor.diff:  %%--------------------------------------------------------------------
   %% Function: remove_unsuitable_locations(URL, Locations)
   %%           URL      = sipurl record(), Request-URI of request
  -%%           Location = list() of sipurl record()
  +%%           Location = list() of siplocationdb_e record()
   %% Descrip.: Apply local policy for what locations are good to use for
   %%           a particular Request-URI. The default action we do here
   %%           is to remove non-SIPS locations if the Request-URI is
   %%           SIPS, unless we are configured not to.
  -%% Returns : list() of sipurl()
  +%% Returns : list() of siplocationdb_e record()
   %%--------------------------------------------------------------------
   remove_unsuitable_locations(#sipurl{proto="sips"}, Locations) when is_list(Locations) ->
       case sipserver:get_env(ssl_require_sips_registration, true) of
  
positive.code: 			    logger:log(debug, "Lookup: Regexp-route lookup of ~p -> ~p", [sipurl:print(URL), Loc]),
  		            Loc
  		    end;
  		[{BestLocation, _, _, _}] ->
  		    {proxy, BestLocation};
  		_ ->
  		    %% More than one location registered for this address, check for appserver...
  		    %% (appserver is the program that handles forking of requests)
  		    local:lookupappserver(URL)
  
negative.code: %%           none
  %%           URL = sipurl record()
  %%--------------------------------------------------------------------
  lookupregexproute(Input) ->
      Routes = database_regexproute:list(),
      Sortedroutes = lists:sort(fun (Elem1, Elem2) ->
  				      Prio1 = lists:keysearch(priority, 1, Elem1#regexproute.flags),
  