DrHyde / perl-modules-Number-Phone

Number::Phone and friends
24 stars 31 forks source link

Some numbers aren't recognized as Dutch numbers #141

Closed waterkip closed 6 months ago

waterkip commented 6 months ago

Hi,

I'm running into an issue with a Dutch number 067xxxxxx which is not recognized as a Dutch number. The module doesn't accept it. According to Dutch legislation this number is a Videotex and access to data services on other networks

I generated the stub code and I see the following:

                'mobile' => '
          (?:
            6[1-58]|
            970\\d
          )\\d{7}
        ',
                'pager' => '66\\d{7}',
                'personal_number' => '',
                'specialrate' => '(90[069]\\d{4,7})|(

It would be nice if the following ranges are supported as network_services:

waterkip commented 6 months ago

Never mind, I see https://github.com/google/libphonenumber/blob/master/FAQ.md#unsupported / What about M2M (machine to machine) numbers?

From how I read it, these numbers are M2M numbers and therefore unsupported. Closing.

DrHyde commented 6 months ago

libphonenumber is mostly concerned with things a user would do with a mobile phone - it's part of Android - which is why it lacks support for some things.

If you want a more fully-featured Number::Phone::NL module that goes beyond what libphonenumber supports (there are already a few of those on the CPAN) then you can do that. If you decide to do that, and you want help with it, please don't hesitate to ask.

waterkip commented 6 months ago

Yes I read the FAQ and I also have regular users. So why people are trying to submit M2M numbers is unknown to me. If needed I'll make a Phone::Number::NL module. I don't feel the immediate need to do it. Dutch law is pretty clear about the number plan, so I don't see a reason to add M2M numbers in our system.