[Asterisk-Users] Validating a phone number

2005-07-17 Thread Peter Hsu
I'm concerned about people dialing out of our asterisk server to numbers 
they shouldn't be dialing.


Is there a concrete algorithm for determining whether a phone number is 
normal.  i.e. calling this phone number would result in a normal long 
distance rate.


It seems like the pattern 1NXXNXX for the U.S. is fairly commonly used, 
but it wouldn't catch erroneous phone numbers such as 1411XXX (and the 
other X11 numbers)


Is it just a matter of checking for these invalid area codes?  If so, is 
there a list anywhere that I could check against?


I tried googling this topic, but it's hard to find anything with such common 
keywords.  If anyone can direct me to a good resource, I'd appreciate it as 
well.


On athe same topic, I'm worried about area codes like 809.  Are there any 
other such area codes that should be avoided?


Thanks,
Peter Hsu

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Validating a phone number

2005-07-17 Thread trixter http://www.0xdecafbad.com
On Sun, 2005-07-17 at 00:01 -0700, Peter Hsu wrote:
 I'm concerned about people dialing out of our asterisk server to numbers 
 they shouldn't be dialing.
 
 Is there a concrete algorithm for determining whether a phone number is 
 normal.  i.e. calling this phone number would result in a normal long 
 distance rate.
 
 It seems like the pattern 1NXXNXX for the U.S. is fairly commonly used, 
 but it wouldn't catch erroneous phone numbers such as 1411XXX (and the 
 other X11 numbers)
 

normally those dont work with a 1 before them, but I cant say that is a
guarantee with all providers.

19xx is normally premium service and has a sometimes steep charge.
1700xxx is another number that normally places a higher than normal
charge to callers for calling.

In america there are some numbers that appear normal but are premium
service numbers, there are some in NJ that charge $5 to call in the 201
area code but they can exist in other states as well.

You may want to filter numbers that would fit the 1NXX... format but
arent in the US or Canada either.  There was a company that had a
number )I forget where somewhere in the caribean) that was part of the
NANPA (ie 1NXX) but charged $2511/minute to callers.  Because they are
not in the US the FTC rules about declaring that it is a premium service
number and the charges when first called do not apply.  There are only a
couple area codes 809 seems to come to mind but I cant guarantee that.

In short you might investigate a phone company service blocker for
premium service numbers and try your best to block what you can but it
would be impossible for someone without SS7 network access to see what
the rate of the call is since these numbers can hide virtually anywhere.


 I tried googling this topic, but it's hard to find anything with such common 
 keywords.  If anyone can direct me to a good resource, I'd appreciate it as 
 well.
 
NANPA manages all the numbers in the north american numbering plan, if
memory serves their page is nanpa.org and they used to have rate center
information available on their page for free that you can download (and
you would need to parse it and continually get updates as new exchanges
are allocated).


 On athe same topic, I'm worried about area codes like 809.  Are there any 
 other such area codes that should be avoided?
 

Ahh glad you brought that up, see above.  I think there are a couple of
them, but I dont know off hand what they are..  try googling 'toll fraud
809' and see if that works.

-- 
Trixter http://www.0xdecafbad.com Bret McDanel
UK +44 870 340 4605   Germany +49 801 777 555 3402
US +1 360 207 0479 or +1 516 687 5200
FreeWorldDialup: 635378


signature.asc
Description: This is a digitally signed message part
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [Asterisk-Users] Validating a phone number

2005-07-17 Thread The Prohacker
I think the address is http://nanpa.com/ nanpa.org is photography site :)

On 7/17/05, trixter http://www.0xdecafbad.com [EMAIL PROTECTED]
 wrote:
NANPA manages all the numbers in the north american numbering plan, ifmemory serves their page is 
nanpa.org and they used to have rate centerinformation available on their page for free that you can download (andyou would need to parse it and continually get updates as new exchanges
are allocated).
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [Asterisk-Users] Validating a phone number

2005-07-17 Thread Mike M
On Sun, Jul 17, 2005 at 12:15:06AM -0700, trixter http://www.0xdecafbad.com 
wrote:
 
 In short you might investigate a phone company service blocker for
 premium service numbers and try your best to block what you can but it
 would be impossible for someone without SS7 network access to see what
 the rate of the call is since these numbers can hide virtually anywhere.

The cost of a call is not available from any SS7 service that I know of.

 NANPA manages all the numbers in the north american numbering plan, if
 memory serves their page is nanpa.org and they used to have rate center
 information available on their page for free that you can download (and
 you would need to parse it and continually get updates as new exchanges
 are allocated).

http://www.nanpa.com/area_codes/index.html

You'll have to make a white list.
 
 
  On athe same topic, I'm worried about area codes like 809.  Are there any 
  other such area codes that should be avoided?
  
 
 Ahh glad you brought that up, see above.  I think there are a couple of
 them, but I dont know off hand what they are..  try googling 'toll fraud
 809' and see if that works.

809 is a valid area code.  Read this:
http://www.lincmad.com/telesleaze.html
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users