[Serusers] ENUM service

Jiri Kuthan jiri at iptel.org
Wed Aug 20 14:01:13 CEST 2003


At 01:42 PM 8/20/2003, radan wrote:
>I don't think so.
>When I choose ordynary user i.e anji I have in  syslog:
>Aug 20 13:29:37 tel /usr/sbin/ser[1648]: running enum
>Aug 20 13:29:37 tel /usr/sbin/ser[1648]: enum_query(): uri user is not an E164 number

Well, I can't tell more than I see in your logs: "uri user is not an E164 number."

There is a number validation procedure, the number apparently fails for some
of the conditions (shorter than 2, longer than 17, not beginning with '+' or 
containing non-digits in the middle). That's it.

-jiri

inline int is_e164(str* _user)
{
    int i;
    char c;

    if ((_user->len > 2) && (_user->len < 17) && ((_user->s)[0] == '+')) {
        for (i = 1; i <= _user->len; i++) {
            c = (_user->s)[i];
            if (c < '0' && c > '9') return -1;
        }
        return 1;
    }
    return -1;
}



>When I choose +48583471077 - nothing in my logs and user not found
>> 
>
>> >The zone is correct (received from dns query for my DNS enum)
>> >7.7.0.1.7.4.3.8.5.8.4.e164.arpa. 259200 IN NAPTR 100 10 "u" "sip+e2u" "!^.*$!sip:radan at gda.pl!"
>> 
>> Is it some local DNS map? I can't reach it.
>
>Yes it is my local DNS. Try host -t naptr 7.7.0.1.7.4.3.8.5.8.4.e164.arpa dns.task.gda.pl
>> 
>> serinstall at sipser:~> host -t naptr 7.7.0.1.7.4.3.8.5.8.4.e164.arpa
>> Host 7.7.0.1.7.4.3.8.5.8.4.e164.arpa not found: 3(NXDOMAIN)
>> 
>> -jiri 
>
>Andrzej

--
Jiri Kuthan            http://iptel.org/~jiri/ 




More information about the sr-users mailing list