Thomas Miller
2005-Apr-24 11:15 UTC
[Asterisk-Users] sm bounty validate length of e164/e212 number for all countries
I am building a simple form validation that needs to do a simple validation on the _length_ of a phone number. As we all know, different countries have different phone number lengths. For example, Australia phone numbers can be either 6 or 7 digits, while USA phone numbers are always 10 digits. I need a *CSV or database* of any kind that will simply give me the min and max for the phone number length. I need current data, but it does not have to be up to the minute. My form validation is _not_ going to be strict. It will just say "Your country of origin is Australia. You only entered 5 digits, but Australian phone numbers are usually 6 or 7 digits. Do you want to proceed?" If you can help me get this data, I will provide a small bounty for your help. I really appreciate it. The data I need is available at http://www.numberingplans.com/index.php?goto=download but it is way more data then I need, and $5000 per month. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Adam Goryachev
2005-Apr-25 07:20 UTC
[Asterisk-Users] sm bounty validate length of e164/e212 number for all countries
On Sun, 2005-04-24 at 11:15 -0700, Thomas Miller wrote:> For example, Australia phone numbers can be either 6 > or 7 digits, while USA phone numbers are always 10 > digits.No, they aren't.... Most 'local' phone numbers are 8 digits, long distance (ie, including area code) they are 10 digits. That will also cover mobile phone numbers. Then, you get to deal with 4 digits numbers (1223/information/etc) and 6 digit numbers 13xxxx (destination routed based on callers location (by exchange)). You could also add 000, which is 3 digits, and I am sure there are other rather unique numbers which don't really fit into any of that... I just can't recall them off the top of my head... Anyway, this doesn't help you with your request, but... it isn't as easy as you might think/home :) Regards, Adam -- -- Adam Goryachev Website Managers Ph: +61 2 9345 4395 adam@websitemanagers.com.au Fax: +61 2 9345 4396 www.websitemanagers.com.au