{"action":"created","issue":{"url":"https://api.github.com/repos/googlei18n/libphonenumber/issues/2123","repository_url":"https://api.github.com/repos/googlei18n/libphonenumber","labels_url":"https://api.github.com/repos/googlei18n/libphonenumber/issues/2123/labels{/name}","comments_url":"https://api.github.com/repos/googlei18n/libphonenumber/issues/2123/comments","events_url":"https://api.github.com/repos/googlei18n/libphonenumber/issues/2123/events","html_url":"https://github.com/googlei18n/libphonenumber/issues/2123","id":295423239,"number":2123,"title":"Bug: New (Italian? ) phone number that's valid, yet the library can't detect it as valid","user":{"login":"AndroidDeveloperLB","id":5357526,"avatar_url":"https://avatars0.githubusercontent.com/u/5357526?v=4","gravatar_id":"","url":"https://api.github.com/users/AndroidDeveloperLB","html_url":"https://github.com/AndroidDeveloperLB","followers_url":"https://api.github.com/users/AndroidDeveloperLB/followers","following_url":"https://api.github.com/users/AndroidDeveloperLB/following{/other_user}","gists_url":"https://api.github.com/users/AndroidDeveloperLB/gists{/gist_id}","starred_url":"https://api.github.com/users/AndroidDeveloperLB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndroidDeveloperLB/subscriptions","organizations_url":"https://api.github.com/users/AndroidDeveloperLB/orgs","repos_url":"https://api.github.com/users/AndroidDeveloperLB/repos","events_url":"https://api.github.com/users/AndroidDeveloperLB/events{/privacy}","received_events_url":"https://api.github.com/users/AndroidDeveloperLB/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-08T08:28:13Z","updated_at":"2018-02-09T21:20:13Z","closed_at":null,"author_association":"NONE","body":"There is a phone number we've found, which seems to be valid (I can call it), yet the library says it's invalid:\r\n+393901194828795\r\n\r\nThe check in this case (starting with \"+\") is as such:\r\n\r\n```java\r\n// input is String phoneNumberStr\r\n\r\n                final PhoneNumberUtil phoneNumberUtil = PhoneNumberUtil.getInstance();\r\n                try {\r\n                    PhoneNumber internationalPhoneNumber = phoneNumberUtil.parse(phoneNumberStr, \"\");\r\n                    if (internationalPhoneNumber != null && phoneNumberUtil.isValidNumber(internationalPhoneNumber))\r\n                        return internationalPhoneNumber;\r\n                } catch (Exception ex) {\r\n                }\r\n               return null\r\n```\r\n\r\nSo if the returned value is null, it means the phone number is invalid.\r\n\r\nIt's probably a spam phone number. Seems to be from Italy.\r\nI've tested on some websites, and they also claim it's invalid:\r\nhttps://www.textmagic.com/free-tools/phone-validator\r\nhttps://numverify.com/\r\n\r\nI've also tried to call it (meaning to dial this phone number). On one device, it said the phone is blocked by the carrier. On another, it succeeded calling.\r\n\r\nWhat is going on?\r\nCould an invalid phone number still be call-able ? "},"comment":{"url":"https://api.github.com/repos/googlei18n/libphonenumber/issues/comments/364570840","html_url":"https://github.com/googlei18n/libphonenumber/issues/2123#issuecomment-364570840","issue_url":"https://api.github.com/repos/googlei18n/libphonenumber/issues/2123","id":364570840,"user":{"login":"AndroidDeveloperLB","id":5357526,"avatar_url":"https://avatars0.githubusercontent.com/u/5357526?v=4","gravatar_id":"","url":"https://api.github.com/users/AndroidDeveloperLB","html_url":"https://github.com/AndroidDeveloperLB","followers_url":"https://api.github.com/users/AndroidDeveloperLB/followers","following_url":"https://api.github.com/users/AndroidDeveloperLB/following{/other_user}","gists_url":"https://api.github.com/users/AndroidDeveloperLB/gists{/gist_id}","starred_url":"https://api.github.com/users/AndroidDeveloperLB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndroidDeveloperLB/subscriptions","organizations_url":"https://api.github.com/users/AndroidDeveloperLB/orgs","repos_url":"https://api.github.com/users/AndroidDeveloperLB/repos","events_url":"https://api.github.com/users/AndroidDeveloperLB/events{/privacy}","received_events_url":"https://api.github.com/users/AndroidDeveloperLB/received_events","type":"User","site_admin":false},"created_at":"2018-02-09T21:20:13Z","updated_at":"2018-02-09T21:20:13Z","author_association":"NONE","body":"@kkeshava Attached video with sound.\r\n[VID_20180209_230842.zip](https://github.com/googlei18n/libphonenumber/files/1712432/VID_20180209_230842.zip)\r\n\r\nWeird thing is that soon after I got a Hebrew (my main language) voice telling me they blocked me from calling this number of outside of the country. I've checked the settings of my account at the carrier, and it was fine : it should allow me to call outside of my country.\r\n\r\nSo this check might be faulty for some reason.\r\n\r\nIn any case, this doesn't explain how the user got a phone call from this number."}}
{"actor":{"display_login":"AndroidDeveloperLB"}}