Mexico Mobile

371 views
Skip to first unread message

Doris Schwartzblat

unread,
Jan 22, 2018, 7:22:25 PM1/22/18
to libphonenumber-discuss
Hi. I see there have been several tickets on this over time, but they all appear to be closed. In our use case, our customers enter their mobile number in international format. After validating, we drop the country code from the resulting E164 formatted number to create the corresponding SMS/text address. The only exception we have come across so far is Mexico. It seems the requirement for a "1" after the country code for mobile voice is carrier specific. (For SMS, the "1" has to be dropped.) For example, based on a test we conducted:

+52 55 3xxx xxxx only works without the 1 (Telcel)
+52 1 55 2xxx xxxx only works with the 1 (AT&T)

Using the parser demo, both variations show as valid. If there is a "1", the number is identified as mobile. The same number without the "1" is identified as fixed. A few months ago, you shared this link with me: https://sns.ift.org.mx:8081/sns-frontend/planes-numeracion/descarga-publica.xhtml, but it wasn't completely clear to me how to make use of this. Will the Library be able to identify these carrier differences in the future?

Thanks very much for your help.

Aravind Penmetsa

unread,
Jan 24, 2018, 8:44:39 PM1/24/18
to libphonenum...@googlegroups.com

Hi,


Thank you for taking the time to improve libphonenumber!


As per our test results dialling MX phone numbers in E.164 format always works. E.164 format for MX mobile numbers: +<Country_Code><1><National_Subscriber_Number>. International prefix 1 can only be present in MX mobile numbers that are in E.164 format. So removing just country code does not change the format to national format.


For your use case i.e formatting MX number to send SMS, we suggest you to use PhoneNumberUtil.formatNumberForMobileDialing() API as it results number in E.164 format for all MX numbers.


Presently library is not able to detect the right phone number type MX phone numbers. We aren't classifying beyond mobile token(prefix 1 before the number) absence/presence at the moment. See our FAQ for more details.


We will be able to return right phone number type (fixed-line/mobile) only after we update our metadata based on this complete official numbering plan. This can be effectively done after we change metadata to new format. We have plans to do this by Q3 2018.


Thanks & Regards,

Aravind




--
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-discuss+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Thanks & Regards,
Aravind
Reply all
Reply to author
Forward
0 new messages