Ecuador Mobile Phone Number

593 views
Skip to first unread message

Pooge

unread,
Dec 5, 2012, 1:40:03 PM12/5/12
to libphonenum...@googlegroups.com
  I do believe that the Area Code of 95 is a valid Ecuador Mobile  Area Code, but the lib does not process it correctly.   I parse 95 xxx-xxxx.  I am expecting to get the national number of xxx-xxxx back, but I get the whole number back.

Lara Rennie

unread,
Dec 5, 2012, 7:30:39 PM12/5/12
to libphonenum...@googlegroups.com
Can you please provide the code you are using so we can see what is happening here?

We do accept 95 9XX-XXXX, but note that the 3rd digit must be a 9. Do you have a real number that doesn't have 9 as the third digit?


2012/12/5 Pooge <gdpo...@gmail.com>

Pooge

unread,
Dec 6, 2012, 10:11:35 AM12/6/12
to libphonenum...@googlegroups.com
 i was incorrect with the number.   It is  593-9-899-1234.    I think I saw that a single "9" was once a valid prefix/area code for a mobile number?  This is a real number.
  I am using libphonenumber-5.2.jar

Shaopeng

unread,
Dec 7, 2012, 5:31:20 AM12/7/12
to libphonenum...@googlegroups.com
We do support this prefix, but the number you give seems to be one digit too short. According to the publications from CONATEL in 2008, mobile numbers are 9 digits long instead of 8:

http://www.itu.int/dms_pub/itu-t/oth/02/02/T020200003D0001PDFE.pdf

Are you sure this is a real number which you can call and get connected?

Pooge

unread,
Dec 7, 2012, 9:57:29 AM12/7/12
to libphonenum...@googlegroups.com
    If i add the 8th digit  to create  593-99-899-1234 or 593-98-899-1234, the Parse function of PhoneUtil correctly gives me:
        Country Code = 593
        National Number = 99-899-1234  or 98-899-1234
        Phone Number Type = Mobile
 
So my original number is an invalid number.  I get:
        Country Code 593
        National Number = 593989901234
        Phone Number Type = Unknown

 Other than the NumberType being set to "Unknown", is there another way to find out if this number is completely invalid?  Something to tell me that it does not fit a certain format?

Thanks for your help.   I am not surprised that my data is invalid.  I just wanted to confirm that.




On Wednesday, December 5, 2012 1:40:03 PM UTC-5, Pooge wrote:

Shaopeng Jia (贾少鹏)

unread,
Dec 7, 2012, 10:05:10 AM12/7/12
to libphonenum...@googlegroups.com
You can easily do that with the demo here:


Cheers,

Shaopeng
--
Shaopeng Jia
贾少鹏
Senior Software Engineer - Îñţérñåţîöñåļîžåţîöñ
Google Switzerland GmbH |Identifikationsnummer: CH-020.4.028.116-1
Reply all
Reply to author
Forward
0 new messages