[Serusers] e164 lookups..confused

Iqbal iqbal at gigo.co.uk
Mon Apr 25 20:11:07 CEST 2005


To answer my own question [:digit] and all come from the NAPTR record in 
the DNS

just in case anyone needs to manually query a nameserver to check the 
e164 entry here how

EG number is 445600000000

1. reverse it, and puts dots in it :-)  0.0.0.0.0.0.0.0.6.5.4.4
2. add the server address u wish to lookup eg e164.info, or e164.arpa or 
whatever
so we have 0.0.0.0.0.0.0.0.6.5.4.4.e164.info
3. do a nslookup, set type=any and type in the above

4. you should get something like

0.0.0.0.0.0.0.0.6.5.4.4.e164.info       naptr = 100 10 "u" "E2U+sip" 
"!^[+\\*]*(44560000[[:digit:]]*)!sip:\\1 at public.sip.magrathea.net!" .

0.0.0.0.0.0.0.0.6.5.4.4.e164.info       naptr = 100 10 "u" 
"E2U+voice:sip" 
"!^[+\\*]*(44560000[[:digit:]]*)!sip:\\1 at public.sip.magrathea.net!" .

Iqbal

Iqbal wrote:

> but with the same setupo I also tried
>
> enum_query(): No NAPTR record found for 
> 0.0.0.0.0.0.0.0.6.5.4.4.e164.arpa.
> 2(27896) enum_query(): order 100, pref 10, flen 1, flags 'u', slen 7, 
> services 'E2U+sip', rlen 63, regexp 
> '!^[+\*]*(44560000[[:digit:]]*)!sip:\1 at public.sip.magrathea.net!'
> 2(27896) reg_replace(): pattern: '^[+\*]*(44560000[[:digit:]]*)', 
> replacement: 'sip:\1 at public.sip.magrathea.net', string: '+445600000000'
> 2(27896) enum_query(): resulted in replacement: 
> 'sip:445600000000 at public.sip.magrathea.net'
> 2(27896) TOI: rewrite_uri: Rewriting Request-URI with 
> 'sip:445600000000 at public.sip.magrathea.net'
> 2(27896) enum_query(): order 100, pref 10, flen 1, flags 'u', slen 13, 
> services 'E2U+voice:sip', rlen 63, regexp 
> '!^[+\*]*(44560000[[:digit:]]*)!sip:\1 at public.sip.magrathea.net!'
>
> and the replace statement is different, where does the [:digit] part 
> come in,
>
> Iqbal
>
> Juha Heinanen wrote:
>
>> Iqbal writes:
>>
>> > '!^\+3522619161(.*)$!sip:\1 at siprelay.e164.info!'
>>
>> \1 would be replaced by whatever follows +3522619161 in request uri,
>> which in your example seems to be nothing.
>>
>> -- juha
>>
>> .
>>
>>  
>>
>
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
> .
>




More information about the sr-users mailing list