Skip to content

fix: add PT m2m#4004

Closed
mdmourao wants to merge 2 commits into
google:masterfrom
mdmourao:fix/PT-m2m
Closed

fix: add PT m2m#4004
mdmourao wants to merge 2 commits into
google:masterfrom
mdmourao:fix/PT-m2m

Conversation

@mdmourao
Copy link
Copy Markdown

  • Country: PT
  • Example number(s) and/or range(s): +35149XXXXXXXXXX
  • Number type ("fixed-line", "mobile", "short code", etc.): mobile (m2m)
  • For short codes, cost and dialing restrictions: NA
  • Where or whom did you get the number(s) from: ANACOM
  • Authoritative evidence (e.g. national numbering plan, operator announcement): ANACOM
    pdf
    ANACOM 1
    ANACOM 2
  • Link from demo (http://libphonenumber.appspot.com) showing error: DEMO

@google-cla
Copy link
Copy Markdown

google-cla Bot commented May 27, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@mdmourao
Copy link
Copy Markdown
Author

@mdmourao mdmourao requested a review from a team as a code owner May 27, 2026 13:52
@mdmourao
Copy link
Copy Markdown
Author

the pattern is: 49 XXX XXXX XXX

source: NOS

@mdmourao
Copy link
Copy Markdown
Author

mdmourao commented May 27, 2026

NEW Results for +351499300003676

Phone Number entered: +351499300003676

Default Country entered: PT

Language entered: en

Parsing Result (parseAndKeepRawInput())
country_code351
national_number499300003676
extension
country_code_sourceFROM_NUMBER_WITH_PLUS_SIGN
italian_leading_zerofalse
number_of_leading_zeros1
raw_input+351499300003676
preferred_domestic_carrier_code
Validation Results
Result from isPossibleNumber()true
Result from isPossibleNumberWithReason()IS_POSSIBLE
Result from isValidNumber()true
Result from isValidNumberForRegion()true
Phone Number regionPT
Result from getNumberType()MOBILE
Formatting Results
E164 format+351499300003676
Original format+351 49 930 0003 676
National format49 930 0003 676
International format+351 49 930 0003 676
Out-of-country format from US011 351 49 930 0003 676
Out-of-country format from CH00 351 49 930 0003 676
Format for mobile dialing (calling from US)+351 49 930 0003 676
Format for national dialing with preferred carrier code and empty fallback carrier code49 930 0003 676
AsYouTypeFormatter Results
Char entered: '+' Output: "+
Char entered: '3' Output: "+3
Char entered: '5' Output: "+35
Char entered: '1' Output: "+351
Char entered: '4' Output: "+351 4
Char entered: '9' Output: "+351 49
Char entered: '9' Output: "+351 49 9
Char entered: '3' Output: "+351 49 93
Char entered: '0' Output: "+351 49 930
Char entered: '0' Output: "+351 49 930 0
Char entered: '0' Output: "+351 49 930 00
Char entered: '0' Output: "+351 49 930 000
Char entered: '3' Output: "+351 49 930 0003
Char entered: '6' Output: "+351 49 930 0003 6
Char entered: '7' Output: "+351 49 930 0003 67
Char entered: '6' Output: "+351 49 930 0003 676
PhoneNumberOfflineGeocoder Results
LocationPortugal
PhoneNumberToTimeZonesMapper Results
Time zone(s)[Atlantic/Azores, Europe/Lisbon]
PhoneNumberToCarrierMapper Results
Carrier

@jdegger
Copy link
Copy Markdown

jdegger commented May 28, 2026

@kkeshava
Copy link
Copy Markdown
Contributor

Hi,

Thanks for reporting this! This is actually addressed in our documentation:

https://github.com/google/libphonenumber/blob/master/FAQ.md#what-about-m2m-machine-to-machine-numbers

As a result, we'll close this issue, but let us know if we may clarify the answer and update documentation.

@kkeshava kkeshava closed this May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants