anchor.diff:  %%           none
   %%           URL = sipurl record()
   %%--------------------------------------------------------------------
  -lookupregexproute(Input) ->
  +lookupregexproute(Input) when is_list(Input) ->
       Routes = database_regexproute:list(),
  +    lookupregexproute2(Input, Routes).
  +
  +lookupregexproute2(Input, Routes) ->
       Sortedroutes = lists:sort(fun (Elem1, Elem2) ->
   				      Prio1 = lists:keysearch(priority, 1, Elem1#regexproute.flags),
   				      Prio2 = lists:keysearch(priority, 1, Elem2#regexproute.flags),
  
positive.code:     [Unsuitable_LDBE4] =
  	remove_unsuitable_locations(Unsuitable_URL2, [Unsuitable_LDBE1, Unsuitable_LDBE4]),
  
      ok.
  
negative.code:     %% Check if Number is all digits
      case util:isnumeric(Number) of
  	true ->
  	    Regexps = sipserver:get_env(number_to_pstn, []),
  	    lookupnumber2(Number, Regexps);
  	false ->
  	    %% Number was not numeric
  	    error
      end.
  
  %% part of lookupnumber/1
  lookupnumber2(Number, Regexps) when is_list(Number), is_list(Regexps) ->
      %% Try to rewrite Number using configured regexp 'number_to_pstn'
      case util:regexp_rewrite(Number, Regexps) of
  	Res when is_list(Res) ->
  	    %% Check to see if what we got is a parseable URL
  	    case sipurl:parse_url_with_default_protocol("sip", Res) of
  		URL when is_record(URL, sipurl) ->
  		    %% Check if it is a local URL or a remote
  		    case homedomain(URL#sipurl.host) of
  			true ->
  			    {proxy, URL};
  			false ->
  			    {relay, URL}
  		    end;
  		_ ->
  		    logger:log(error, "Lookup: Rewrite of number ~p using 'number_to_pstn' did not "
  			       "result in a parseable URL : ~p", [Number, Res]),
  		    error
  	    end;
  	nomatch ->
  	    %% Regexp did not match
  	    none
      end.
      
  %%--------------------------------------------------------------------
  %% Function: rewrite_potn_to_e164(Number)
  %%           Number = string()
  