anchor.diff:  	 lookup_address_to_users/1,
   	 lookupdefault/1,
   	 lookuppotn/1,
  +	 lookupnumber/1,
   	 lookupenum/1,
   	 lookuppstn/1,
   	 isours/1,
  
positive.code: 	    end
      end;
  lookupenum(Number) ->
      Res = rewrite_potn_to_e164(Number),
      case Res of
          none ->
              none;
          "+" ++ E164 ->
  	    lookupenum("+" ++ E164);
  	_ ->
  	    none
      end.	    
  
      
  lookuppstn("+" ++ E164) ->
      case util:isnumeric(E164) of
  	true ->
  
negative.code: get_remote_party_name(Key, URI) ->
      logger:log(error, "Lookup: Could not get remote party name for non-list argument ~p", [Key]),
      none.
  
  
  %%--------------------------------------------------------------------
  %%% Internal functions
  %%--------------------------------------------------------------------
  
  %% In some places, we allow lookups to result in URL strings without
  %% protocol. First try to parse them as-is, and if that does not work
  %% then make sure there is no protocol specified that we apparently
  %% do not handle, and if not then prepend them with Proto: and try again.
  parse_url_with_default_protocol(Proto, URLstr) ->
      URL1 = sipurl:parse(URLstr),
      case URL1 of
  	{_, _, _, _, _} ->
  	    URL1;
  	_ ->
  	    case string:chr(URLstr, $@) of
  		0 ->
  		    error;
  		AtIndex ->
  		    %% There is an at-sign in there
  		    UserPart = string:substr(URLstr, 1, AtIndex - 1),
  		    case string:chr(UserPart, $:) of
  			0 ->
  			    %% There is no colon in the userpart of URLstr, try with our default protocol
  			    URL2 = sipurl:parse(Proto ++ ":" ++ URLstr),
  			    case URL2 of
  				{_, _, _, _, _} ->
  				    URL2;
  				_ ->
  				    error
  			    end;
  			_ ->
  			    %% There is already a protocol in URLstr, but apparently not one
  			    %% that sipurl:parse() can handle.
  			    error
  		    end
  	    end
      end.
  