Format issue mobile numbers Argentina

228 views
Skip to first unread message

Jaime Eduardo Rivera Contrera

unread,
Apr 17, 2018, 4:49:39 PM4/17/18
to libphonenumber-discuss
Hi, two weeks ago I've reported an issue but I don't understand why my evidence is not enough.

These are examples of that:

+5492646725515
https://libphonenumber.appspot.com/phonenumberparser?number=%2B5492646725515&country=AR
National format 8.8.1: 0264 15-672-5515
National format 8.9.2: 02646 15-72-5515

+5493876848695
https://libphonenumber.appspot.com/phonenumberparser?number=%2B5493876848695&country=AR
National format 8.8.1: 0387 15-684-8695
National format 8.9.2: 03876 15-84-8695

+5493856983756
https://libphonenumber.appspot.com/phonenumberparser?number=%2B5493856983756&country=AR
National format 8.8.1: 0385 15-698-3756
National format 8.9.2: 03856 15-98-3756

+5493585488238
https://libphonenumber.appspot.com/phonenumberparser?number=%2B5493585488238&country=AR
National format 8.8.1: 0358 15-548-8238
National format 8.9.2: 03585 15-48-8238

+5493456263093
https://libphonenumber.appspot.com/phonenumberparser?number=%2B5493456263093&country=AR
National format 8.8.1: 0345 15-626-3093
National format 8.9.2: 03456 15-26-3093


 This is working well:

+5493854127741
https://libphonenumber.appspot.com/phonenumberparser?number=%2B5493854127741&country=AR
National format 8.8.1: 0385 15-412-7741
National format 8.9.2: 0385 15-412-7741


Why you are saying that this is the intended behavior, it is clear for me in these examples that there are something wrong with the area codes, for example:

National format 8.8.1: 0358 15-548-8238
National format 8.9.2: 03585 15-48-8238

Is not the same area code: 0358 vs 03585

You can see the mobile numbers here: 

Ciudad de Río Cuarto
Favor contactarse por presupuestos a:
info...@yahoo.com.ar
0358-4626219
0358-155488238



 

nicolasc...@gmail.com

unread,
Apr 17, 2018, 8:18:12 PM4/17/18
to libphonenumber-discuss
Hi Jaime,

I have recently created a PR to fix Argentina geographic area codes and timezone. https://github.com/googlei18n/libphonenumber/pull/2185

Among these changes you can find updates for Río Cuarto.

To remove:
54358|Río Cuarto

To add:
54358|Río Cuarto, Córdoba
543582|Sampacho, Córdoba
543583|Vicuña Mackenna, Córdoba
543584|La Carlota, Córdoba
543585|Adelia María, Córdoba


According those area codes 03585 belongs to Adelia María, so what I would like to know is if we can find mobile numbers from Río Cuarto starting with 5.
Which one of the following formatting for your example is correct? +54 9 3585 48-8238 (Adelia María) or +54 9 358 548-8238 (Río Cuarto)

Regards,

Nicolas Cirigliano
Argentina

Jaime Eduardo Rivera Contrera

unread,
Apr 17, 2018, 9:31:31 PM4/17/18
to libphonenumber-discuss
Hi Nicolas, thanks for your reply

 " According those area codes 03585 belongs to Adelia María, so what I would like to know is if we can find mobile numbers from Río Cuarto starting with 5.
Which one of the following formatting for your example is correct? +54 9 3585 48-8238 (Adelia María) or +54 9 358 548-8238 (Río Cuarto) "

I would say that +54 9 358 548-8238 (Río Cuarto)  is correct because as you can see in the facebook page they are showing the phone with area code 0358 and it starts with 5:
Ciudad de Río Cuarto
Favor contactarse por presupuestos a:
info...@yahoo.com.ar
0358-4626219
0358-155488238


Correct me if I'm wrong, you're from Argentina and you know better about that topic

Regards


Jaime Rivera
Colombia

Nicolas Cirigliano

unread,
Apr 17, 2018, 10:53:28 PM4/17/18
to libphonenum...@googlegroups.com
We have a case of areas overlapping.

 +54  (9)  358  4xx-xxxx  (Río Cuarto)
 +54  (9)  3584  xx-xxxx  (La Carlota)

 +54  (9)  358  5xx-xxxx  (Río Cuarto)
 +54  (9)  3585  xx-xxxx  (Adelia María)

According the Argentina configuration there is an exception to pick "the most commonly used" (in this case 358 Río Cuarto) when formatting.

Somehow it is not working well.



--
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.



--
Nicolas Cirigliano
Systems Engineer / Java Software Architect
SkypeID nicolascirigliano

Nicolas Cirigliano

unread,
Apr 17, 2018, 11:12:32 PM4/17/18
to libphonenum...@googlegroups.com
The regular expression should match:

3-3-4

358 [0-36-9]
358 4[1-37-9]
358 46[2-8]
258 5[013]
258 548
258 56[0-2]

4-2-4

3584 [45]
3584 60

3585 4[0-39]
3585 5
3585 64




To unsubscribe from this group and stop receiving emails from it, send an email to libphonenumber-discuss+unsubscri...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
Nicolas Cirigliano
Systems Engineer / Java Software Architect
SkypeID nicolascirigliano

Nicolas Cirigliano

unread,
Apr 24, 2018, 3:06:17 AM4/24/18
to libphonenumber-discuss
hi Jaime, I finally got the time to update the pattern for Argentina.

Here it is the PR with the changes: https://github.com/googlei18n/libphonenumber/pull/2192

All the examples you provided will be fixed :)




On Tuesday, April 17, 2018 at 5:49:39 PM UTC-3, Jaime Eduardo Rivera Contrera wrote:

Aravind Penmetsa

unread,
Apr 26, 2018, 4:11:47 AM4/26/18
to libphonenum...@googlegroups.com
Hi Nicolas,

Thanks so much for the metadata changes that you have suggested.
We accept the issue and track this: https://issuetracker.google.com/issues/78443410

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