[VoIP] Number portability in CNET

Greg Blakely greg at vyger.net
Sat Oct 27 13:48:38 CDT 2007


We do indeed use wildcards.  It can get interesting at times, because,
if you carve out a seven-digit number to a particular individual, you
have to then show what DOESN'T go to that person, because wild-carding
doesn't always work once an exception is made.

The 1-736 prefix is assigned to Don Weig, but Pennsylvania 6-5000 is
carved out for John Covert.  

Here's what it looks like.  Bear in mind that the number is in backwards
order of the way it is dialed.

$ORIGIN std.ckts.info.
*.6.3.7.1       NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
0.0.0.5.6.3.7.1 NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnet at iax2.covert.org/PE6-5000!" . 

This works okay, for the most part, but can lead to the * listing being
looked at first, and the system trying to send the PE6-5000 call to Don
Weig.

This is because DNS lookups alternate between multiple matching entries.

So, to get it right, I'd have to do something like this, which is no big
deal, because I have a script handy that automates things:

*.0.6.3.7.1       NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
*.1.6.3.7.1       NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
*.2.6.3.7.1       NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
*.3.6.3.7.1       NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
*.4.6.3.7.1       NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
;
0.0.0.5.6.3.7.1   NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnet at iax2.covert.org/PE6-5000!" .
;
1.0.0.5.6.3.7.1   NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
2.0.0.5.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
3.0.0.5.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
4.0.0.5.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
5.0.0.5.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
6.0.0.5.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
7.0.0.5.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
8.0.0.5.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
9.0.0.5.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
;
*.1.0.5.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
*.2.0.5.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
*.3.0.5.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
*.4.0.5.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
*.6.0.5.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
*.7.0.5.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
*.8.0.5.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
*.9.0.5.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
;
*.1.5.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
*.2.5.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
*.3.5.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
*.4.5.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
*.5.5.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
*.6.5.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
*.7.5.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
*.8.5.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
*.9.5.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
;
*.6.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
*.7.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
*.8.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
*.9.6.3.7.1	NAPTR   100 10 "u" "E2U+IAX2"
"!^\\+*(.*)$!iax2:cnetguest at sharontel.dyndns.org/\\1!" .
;

So, you can see, it is somewhat involved, but it's not like we have to
re-invent the wheel to do this.


> -----Original Message-----
> From: voip-bounces at ckts.info [mailto:voip-bounces at ckts.info] 
> On Behalf Of Shane Young
> Sent: Saturday, October 27, 2007 11:26 AM
> To: voip at ckts.info
> Subject: Re: [VoIP] Number portability in CNET
> 
> For North america, All 7 digits are queried to the DNS (with 
> the country code 1 as well)
> 
> I beleive (though I haven't actually seen Greg's files) that 
> he uses simple wildcards which work nicely in DNS normally.
> 
> The theory is you could have an entry for the whole 10k block 
> to route one place and add any number of more-specific 
> entries to route to other places.
> 
> Again, very similar to how LNP works.
> 
> There is no technical reason why a whole office code needs to 
> be routed to a particular switch.
> 
> 
> Quoting Steph Kerman <stfkerman at jps.net>:
> 
> > How does this fit in with David's comment?
> >
> > If the full 7-digit number is looked up in ENUM for each 
> call to allow 
> > sharing of office codes doesn't that require ENUM to be updated for 
> > all new line assignments at local switches?  I thought only the 
> > 3-digit office code was being looked up and that there was 
> discussion 
> > about extending this to the thousands digit to allow 
> sharing of office 
> > codes in blocks of 1000 numbers, but that it had not been done.
> >
> > Steph
> >
> > Shane Young wrote:
> >> There is no need to do either.
> >>
> >> Since we always lookup every number in DNS via ENUM, greg 
> just points 
> >> the "ported" number to the new destination.
> >>
> >> It's a lot like the way real LNP works.
> >> --Shane
> >>
> >>
> >> Quoting Steph Kerman <stfkerman at jps.net>:
> >>
> >>
> >>> Send by redirecting at the originating point or send by tandeming 
> >>> through your system?
> >>>
> >>> Steph
> >>>
> >>> David Josephson wrote:
> >>>
> >>>> I think that anyone who has an office code should be able to 
> >>>> provide routing to other CNET numbers, should anyone else have a 
> >>>> desire for a code in that prefix. I am in the process of 
> >>>> constructing a 411 service to live at 555-1212, and I do have 
> >>>> 555-2368 ringing on my desk. But if someone wanted another 555 
> >>>> number I'd be happy to write a line in the dialplan to 
> send calls somewhere else.
> >>>>
> >>>> --
> >>>> David Josephson
> >>>>
> >>>>
> >>>>
> >>> _______________________________________________
> >>> VoIP mailing list
> >>> VoIP at ckts.info
> >>> http://lists.ckts.info/mailman/listinfo/voip
> >>> Project Web Page: http://www.ckts.info/
> >>>
> >>>
> >>
> >> --Shane
> >> +1-821-7311 CNET
> >>
> >> ----------------------------------------------------------------
> >>
> >> _______________________________________________
> >> VoIP mailing list
> >> VoIP at ckts.info
> >> http://lists.ckts.info/mailman/listinfo/voip
> >> Project Web Page: http://www.ckts.info/
> >>
> >>
> > _______________________________________________
> > VoIP mailing list
> > VoIP at ckts.info
> > http://lists.ckts.info/mailman/listinfo/voip
> > Project Web Page: http://www.ckts.info/
> >
> 
> --Shane
> +1-821-7311 CNET
> 
> ----------------------------------------------------------------
> 
> _______________________________________________
> VoIP mailing list
> VoIP at ckts.info
> http://lists.ckts.info/mailman/listinfo/voip
> Project Web Page: http://www.ckts.info/
> 
> 


More information about the VoIP mailing list