Hi
managed to get a few lookups happening, and this was the return I got from the lookup
get_record: lookup(1.6.1.9.1.6.2.2.5.3.e164.arpa, 35) failed 4(27898) enum_query(): No NAPTR record found for 1.6.1.9.1.6.2.2.5.3.e164.arpa. 5(27899) udp_rcv_loop: probing packet received from 80.46.109.145 5118 4(27898) enum_query(): order 100, pref 10, flen 1, flags 'u', slen 7, services 'E2U+SIP', rlen 46, regexp '!^+3522619161(.*)$!sip:\1@siprelay.e164.info!' 4(27898) reg_replace(): pattern: '^+3522619161(.*)$', replacement: 'sip:\1@siprelay.e164.info', string: '+3522619161' 4(27898) enum_query(): resulted in replacement: 'sip:@siprelay.e164.info' 4(27898) TOI: rewrite_uri: Rewriting Request-URI with 'sip:@siprelay.e164.info'
Now is that because there is a error in the enum module in ser , although I have managed to get other lookups working, the reg_replace seems to be okay anyone see if theres an error, I am querying the dns manually also, to see if there is error in record
Iqbal
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@public.sip.magrathea.net!' 2(27896) reg_replace(): pattern: '^[+*]*(44560000[[:digit:]]*)', replacement: 'sip:\1@public.sip.magrathea.net', string: '+445600000000' 2(27896) enum_query(): resulted in replacement: 'sip:445600000000@public.sip.magrathea.net' 2(27896) TOI: rewrite_uri: Rewriting Request-URI with 'sip:445600000000@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@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@siprelay.e164.info!'
\1 would be replaced by whatever follows +3522619161 in request uri, which in your example seems to be nothing.
-- juha
.
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@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@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@public.sip.magrathea.net!' 2(27896) reg_replace(): pattern: '^[+*]*(44560000[[:digit:]]*)', replacement: 'sip:\1@public.sip.magrathea.net', string: '+445600000000' 2(27896) enum_query(): resulted in replacement: 'sip:445600000000@public.sip.magrathea.net' 2(27896) TOI: rewrite_uri: Rewriting Request-URI with 'sip:445600000000@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@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@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@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
.