Good day!
I have been looking for a tool for a long time so that you can quickly find out if a particular phone number belongs to a particular telecom operator and / or region.
I always used
MTT for these tasks, which, in principle, was always enough.
But I wanted something more simple and fast.

If you, like me, were interested in something like that, I ask for cat.
At one time I wanted to write an MTT output parser and give it in a structured format. But all did not reach the hands.
Most recently I discovered that the information I was interested in (it turns out!) Is freely available on the
Rossvyaz website, and there is also a search in the registry.
It so happened that I had a little bit of free time and a desire to download "for myself."
As a result, all the publicly available registries were downloaded from the Rossvyaz website, parsed, and exported to the database for subsequent convenient search.
What came out of all this can be viewed
here .
The available information can be obtained in XML format on request of the form:
innum.ru/cgi-bin/info.pl?number=79193410000 and get an answer of the form:
')
<?xml version="1.0" encoding="UTF-8"?> <info> <data> <begin>3400000</begin> <end>3599999</end> <operator> </operator> <prefix>919</prefix> <region> </region> </data> </info>
In order to avoid habr-effect, there is a restriction - 10 "unique" requests from one IP-address per hour.
After the query is completed, the result is placed in the cache for 8 (eight) hours. During these 8 hours, the request is not considered “unique” and you will continue to receive answers on this request without any restrictions.
As for the practical application, I plan to connect this web service to the office Asterisk (for example, via FastAGI).
I will be glad to any wishes / suggestions and reasoned criticism in the comments.
Thanks for attention.
UPD: a user
who, unfortunately, is not on the habre Matthew_w wrote an
application for Windows Phone that uses this web service.
We are waiting for similar software for other mobile platforms ;-)