Brazil Number [ +55-519684XXXX ]

1,331 views
Skip to first unread message

vinay pal

unread,
Sep 27, 2022, 9:06:13 AM9/27/22
to libphonenumber-discuss
Hello Team, 

I am facing an issue while validating provided Brazilian number. 

It is a valid number but throws an error while validating.

Regards, 
Vinay Pal 

Rohini Nidhi

unread,
Sep 28, 2022, 4:01:33 AM9/28/22
to libphonenum...@googlegroups.com
Hi,

Thank you for using libphonenumber!

In Brazil, Mobile numbers are generally of length 11-digits.

+55 519684XXXX- We are supporting 11-digit numbers of this range, but the reference number given in the bug is of length 10-digit. We were unable to get valid numbers and evidence which support 10-digit length whereas 11-digit numbers are supported on the basis of IR21 and ITU. 

If you would like to discuss, please share any working numbers or official evidence you may have. See our guidelines:
https://github.com/google/libphonenumber/blob/master/CONTRIBUTING.md#provide-supporting-evidence.

Regards,
Rohini Nidhi

--
You received this message because you are subscribed to the Google Groups "libphonenumber-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libphonenumber-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/libphonenumber-discuss/4f1965f4-d8df-441f-8867-f1ba98f26742n%40googlegroups.com.

vinay pal

unread,
Sep 28, 2022, 9:15:12 AM9/28/22
to libphonenum...@googlegroups.com
Thanks, Nidhi, 

Provided sample number works fine with lib version - 8.9.12, but with latest version >> 8.12.56 , it fails.

Regards,
Vinay Pal  
Mobile -8553473983 


Rohini Nidhi

unread,
Oct 4, 2022, 1:48:07 AM10/4/22
to libphonenum...@googlegroups.com
Hi,

Sorry for the delay in response.

Brazil went through renumbering and since 2016 all the mobile numbers are 11 digits in length, see https://en.wikipedia.org/wiki/Telephone_numbers_in_Brazil and https://www.itu.int/dms_pub/itu-t/oth/02/02/T020200001D0003PDFE.pdf

However, we still support a few mobile numbers of length 10-digits which are actually 'mobile radio service
numbers'. These numbers usually have 3rd digit as '7' i.e +55-51 7684 XXXX, see demo http://libphonenumber.appspot.com/phonenumberparser?number=%2B55-51+7684+XXXX

If you still think +55-519684XXXX is valid then please provide official evidence.See our guidelines:

vinay pal

unread,
Oct 6, 2022, 5:22:43 AM10/6/22
to libphonenum...@googlegroups.com
Thanks for the reply Nidhi, 

It was helpful.

Regards,
Vinay Pal  
Mobile -8553473983 

You received this message because you are subscribed to a topic in the Google Groups "libphonenumber-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/libphonenumber-discuss/SEL2VwQZNuE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to libphonenumber-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/libphonenumber-discuss/CAP02FDk2M93ECawSSiCed0Nq027TV1Ogg1%2Bzwr3KDmiE8LVgVQ%40mail.gmail.com.

Rudy Anconi

unread,
Nov 6, 2024, 1:29:32 PM11/6/24
to libphonenumber-discuss
The issue is when the person registered on the Whatsapp platform back then when the 10-digits numbers were common, even today, to send a message to this person the Whatsapp API only accepts the old number format.

I'm integrating my message system to whatsapp and I having this problem. The library tells me the 10-digits number is a invalid number.

MATEUS PFEFFER

unread,
Mar 25, 2025, 11:09:59 AMMar 25
to libphonenumber-discuss
Have you had any success in validating numbers for the WhatsApp platform? I'm facing the same problem at the moment.
Reply all
Reply to author
Forward
0 new messages