[asterisk-users] Phone Number Validation
jg
webaccounts173 at jgoettgens.de
Tue Mar 29 05:28:13 CDT 2016
> Hi Everyone,
> I need to develop a service which tells me whether a given phone number is in service and is
> valid or not. It can be international number. This is basically to clean the list of leads we
> have. Is there any service which can give me the required information?
>
> I currently have an international numbering plan database which only tells me if the given
> phone number is in valid format up to a certain area code. But I need to know whether it will
> ring or not. Any help will be appreciated.
>
>
Hi!
I am doing something similar. Country codes are available from ITU-T. Country codes are
available for every country, except for the North American Numbering Plan, which covers
essentially North America. NANP numbers have a simple structure (with little oddities), which is
not generally valid outside their domain, so it is difficult to check the validity of numbers
(unless you are willing to work through the regulations of every country you want to cover).
For example, a complete German phone number, including the equivalent of NPA and NXX, can be
between 5 and 15 digits. The system is (almost) strictly hierarchical, but requires detailed
knowledge, i.e. you do need an algorithm that figures out the area code. There are also separate
number ranges for mobile phone numbers.
In practice there can be more than 15 numbers, depending on the country, and whether the
regulators are not particularly strict in enforcing a specific length of phone numbers (for ISDN
lines).
Generally, you cannot know whether dialing a number will ring the other end, or not. If all
channels are already occupied for a T1 or E1 connection, the last exchange station will already
signal unavailability, i.e. "user busy" may be signaled by the user or the network.
jg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160329/bebc3f2a/attachment.html>
More information about the asterisk-users
mailing list