Phone validation for South Africa

146 views
Skip to first unread message

Max Alexeev

unread,
Feb 12, 2014, 10:09:29 AM2/12/14
to libphonenum...@googlegroups.com
I use version 5.9 of library (here is pom.xml fragment): 

<dependency>
    <groupId>com.googlecode.libphonenumber</groupId>
    <artifactId>libphonenumber</artifactId>
    <version>5.9</version>
</dependency>

When I check phone +27614260808 it is parsed successfully (area/region codes are extracted normally), but then when I call PhoneNumberUtil.isValidNumber it doesn't pass the validation. This phone is real and currently in use. I may just ignore validation for this specific area code, but it would be a lousy workaround. Please advise possible solutions. 

David Yonge-Mallo

unread,
Feb 12, 2014, 10:48:36 AM2/12/14
to libphonenum...@googlegroups.com
Hi,

Our library seems to recognise that number as a valid mobile number from ZA. You can verify this using the online demos: 



--
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.
For more options, visit https://groups.google.com/groups/opt_out.



--
David Yonge-Mallo
Software Engineer - Google Zürich

Max Alexeev

unread,
Feb 12, 2014, 12:17:39 PM2/12/14
to libphonenum...@googlegroups.com
My fault, just figured out that tests were on environment with outdated 5.0 version. In any case, thanks a lot for your response!
Reply all
Reply to author
Forward
0 new messages