Comments (4)
Hi, You closed this before I could take a look -- did you figure out your problem?
from python-phonenumbers.
I am not sure so I decided to close it (I should have left a comment...
sorry)
so, considered a number +1 404 483 abcd which is a valid number. Now, go to
a region that accepts international prefix 00. this number is valid there
as 001404483abcd and 0011404483... The second form was strange to me but I
think I was wrong and should not have issued the ticket. Anyway I could not
confirm it works or not this way from a 00-prefix region.
Sorry
js
On Thu, Jun 13, 2013 at 9:36 AM, David Drysdale [email protected]:
Hi, You closed this before I could take a look -- did you figure out your
problem?—
Reply to this email directly or view it on GitHubhttps://github.com//issues/20#issuecomment-19391971
.
from python-phonenumbers.
I've not worked through the details, but I'd guess this is because 1+10D is a valid way of dialling US numbers within the US. So 00114044831234 becomes:
- 00 for international dialling
- 1 for NANPA country code
- 1 for US dialling prefix (I think historically used to indicate long-distance calls)
- 404 for NPA
- 483 for NXX
- 1234 for subscriber.
By the way, a good place to check validation results is http://libphonenumber.appspot.com/. That runs the upstream Java code, so if it shows the same results it implies there's nothing specific to the Python version involved.
from python-phonenumbers.
Thank you!
js
On Fri, Jun 14, 2013 at 1:50 AM, David Drysdale [email protected]:
I've not worked through the details, but I'd guess this is because 1+10D
is a valid way of dialling US numbers within the US. So 00114044831234
becomes:
- 00 for international dialling
- 1 for NANPA country code
- 1 for US dialling prefix (I think historically used to indicate
long-distance calls)- 404 for NPA
- 483 for NXX
- 1234 for subscriber.
By the way, a good place to check validation results is
http://libphonenumber.appspot.com/. That runs the upstream Java code, so
if it shows the same results it implies there's nothing specific to the
Python version involved.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/20#issuecomment-19440410
.
from python-phonenumbers.
Related Issues (20)
- Question regarding the 'isValid' method of this library. HOT 1
- number_type returns 0 for CoutryCode and NationalNumber on DE region HOT 1
- A Kuwait number is parsed as invalid. HOT 1
- How to define your own format? HOT 1
- French fictitious phone number blocks fail the is_valid_number check HOT 3
- Carrier response returns blank info HOT 2
- Carrier Name not returning HOT 1
- Not getting carrier name of US numbers HOT 2
- Prefix at RFC 3966 HOT 2
- number works with parse; fails with PhoneNumberMatcher HOT 2
- Is it possible to know phone number type? HOT 1
- Fuzzing python-phonenumbers on OSS-Fuzz HOT 3
- Phone Number parsing incorrectly HOT 1
- Customize pattern for a region HOT 1
- Error when using is_possible_number() HOT 2
- Validate a phone number string against E164 standard HOT 1
- region_code_for_number returning None for Some Valid US numbers. HOT 1
- brazil number encountered as invalid even though the client claims it is HOT 1
- Support for ISO3166-1 country codes HOT 2
- United States area code 557 is not working in python-phonenumbers HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-phonenumbers.