Giter Club home page Giter Club logo

Comments (4)

daviddrysdale avatar daviddrysdale commented on August 22, 2024

Hi, You closed this before I could take a look -- did you figure out your problem?

from python-phonenumbers.

jaross avatar jaross commented on August 22, 2024

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.

daviddrysdale avatar daviddrysdale commented on August 22, 2024

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.

jaross avatar jaross commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.