Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dutch public services numbers: eg. 140418 #271

Closed
AlexionCRM opened this issue Jun 5, 2023 · 2 comments
Closed

Dutch public services numbers: eg. 140418 #271

AlexionCRM opened this issue Jun 5, 2023 · 2 comments
Labels

Comments

@AlexionCRM
Copy link

In The Netherlands we have special "public services numbers", starting with 14

  • eg. 140418
  • Is there an option to allow these numbers?

NB This number can't be dialed from outside The Netherlands, so somethin like this +31140418 is NOT available.

@daviddrysdale
Copy link
Owner

Looks like it mostly works already (as a "universal access number" (UAN)), both here:

Python 3.7.6 (default, Jan  8 2020, 13:42:34) 
>>> import phonenumbers
>>> x = phonenumbers.parse("140418", "NL")
>>> x
PhoneNumber(country_code=31, national_number=140418, extension=None, italian_leading_zero=None, number_of_leading_zeros=None, country_code_source=0, preferred_domestic_carrier_code=None)
>>> phonenumbers.is_valid_number(x)
True
>>> numtype = phonenumbers.number_type(x)
>>> phonenumbers.PhoneNumberType.to_string(numtype)
'UAN'

and upstream.

What are you finding doesn't work?

@AlexionCRM
Copy link
Author

AlexionCRM commented Jun 6, 2023

Hi David, I'll have my colleague look into it, seems ok :-)

They will look into it in July (very busy with stuff now)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants