In the famous hymn it is sung: "We will destroy the whole world of violence: To the very foundation, and then: We will build our new world ...".
In telephony, this principle does not work. Each new generation of equipment integrates with the previous ones, so that a young man from his newest smartphone could call the village of his grandfather, which is an ancient rural PBX.
Until recently, more than 1.5 million subscribers remained in Moscow, connected to the coordinate PBX, built on analog relays, registers and markers.
About how for 3 months 150 Moscow PBX managed to switch to IP-segment, will this article.
A bit of history or why in the phone number 7 digits
Some associate this with magic, attributing sacred meaning to the seven. Someone says that the human brain best remembers sequences of up to 7 characters.
')
But in reality, it was determined in the first half of the twentieth century, when engineers came to the conclusion that the optimal capacity of a city PBX should not exceed 10,000 numbers. In this case, the optimum cost of switching equipment and cable facilities (copper subscriber and inter-station lines) was achieved.
In small towns, a 5-digit numbering was introduced: the first digit is the PBX index, then the number of thousands, hundreds, ten and units for the subscriber line within this PBX. At the same time, all PBXs were connected according to the principle “each with each”.
In larger cities began to introduce special Incoming Communication Nodes (UAS), defining areas. Subscribers did not connect to such UAS, they worked as a transit for receiving incoming calls to the District Station (RATS), thus a 6-digit numbering was obtained.

In the largest cities, outgoing communication nodes (MIS) were introduced, which accumulated outgoing telephone traffic from the PBX of their area and sent it to the necessary directions. This formed a 7-digit numbering.
This entire complex system was required in order to reduce the volume of cables buried in the ground, and to increase the workload of inter-station connecting lines.
Analog stations
Before the advent of digital stations, all switching was based on the principle of steps: at each stage (steps) a free line was searched in the right direction.
The first step - AI (subscriber search) is needed to get a “station response” and start dialing. Next come the group search steps: GI1, GI2, GI3 to search for a route by the first digits of the number to other PBXs or within this PBX. Then the steps of CD and AB search the telephone line of the called subscriber by the last digits of the number.

The first exchanges were built using decade-step finders (who were looking for free telephone channels in a bunch of lines). Decade finders, as it is not difficult to guess, were controlled by a ten-day (pulse) dialing from a telephone. Such stations appeared in the late 1940s, but still operate in sufficient numbers in the vast expanses of our Motherland. Even in Moscow and St. Petersburg, the last ATS-DSh were dismantled only in the 21st century.
But still their number is not large and is gradually reduced, but the most popular PBXs of the coordinate type in Russia remain an order of magnitude larger. And the process of their modernization is a real difficulty due to large financial and time costs.
Modernization
Replacing an analog telephone station with a digital one, as a rule, entails the complete dismantling of an existing PBX, including subscriber cross and the installation of a new digital switch. The process can take up to a month, and the payback period exceeds 20 years if the station is located in a residential area or in a rural area where subscribers do not use additional services (such as forwarding or conference call).
But the preservation of the remnants of the last century on the network also translates into an operator for a host of problems: maintaining the station, which occupies several floors, requires payment for electricity, the maintenance of a staff of special engineers. Accounting for the cost of local calls without the use of additional equipment is generally not possible (in the USSR, the charge was charged only for long-distance calls). In addition, advanced subscribers are gradually migrating to alternative and mobile operators.

In this connection, the task of cheap and fast modernization of coordinate automatic telephone exchanges appeared.
To this end, we developed the Mediating Numbering Plan (MPN) complex, which on the one hand connected to analog PBX equipment, and on the other hand, was included in the IP telephony network, integrating into the modern NGN / IMS hierarchy.
We took advantage of the fact that analog PBXs are built on the principle of steps. When the subscriber makes an outgoing call, immediately after the subscriber search stage (AI), the Outgoing String Sets (LSP) are located — they generate a “long beep” and accept dialing. When incoming calls are made to the subscriber, the incoming string sets are installed before the AI ​​- through them the subscriber is selected according to the last three digits of the number, and they also form the ringing voltage to the subscriber line.
Instead of these analog modules, we installed new, but interacting with an AI stage using the same multi-wire interfaces, imitating old IShK and VShK. In the same way, the new modules generate the “Station Answer”, receive a dialing number, send a ringing signal, but contain an analog-to-digital converter inside themselves that allows voice to be transmitted over digital channels.
The difficulty was that, usually, a digital PBX is a set of telecommunication cards installed in the basket. For connecting lines, baskets are packed with the appropriate modules plus one control board, as in the figure below (the control board is on the right). Control signals to the modules are transmitted along the rear wall of the basket.

Typical coordinate PBX is not so compact. It consists of a set of two-meter cabinets, located in the hall of 300 square meters. The cabinets with ISHK and VShK that we are interested in are evenly distributed over this area and the prospect of pulling piles of cables to a single basket was not very bright.
In this regard, we have invented to abandon the management of new modules directly through the basket. We decided to place digital IShK and VShK directly in the cabinets of analog PBX, and transmit control signals along digital TDM paths. Instead of hundreds of wires from each cabinet, it was necessary to throw only one two-park.
The photo shows the appearance of the updated modules. The construct was designed specifically for installation in analog cabinets. Above and below the modules are not yet dismantled analog blocks.

All IShK and VShK were connected by digital paths to the ITG control boards, which convert from IP to digital paths with time division channels. ITG modules, in addition to management, perform the functions of a media gateway connecting a TDM network to an IP network.
Above all this is a pair of servers that implement monitoring and control of the NAM equipment and interaction with the central switch of the IP network (IMS core). They also perform the functions of the border controller of sessions, so that one PBX for the core looks like a single route. Schematically, the equipment MPN is marked on the figure in blue:

Few details
It was not without completely unexpected difficulties. The first is to determine the number of the subscriber. When picking up the handset, the subscriber connects to the BCH, and 2000 subscribers can reach the same BCH. To determine the number, a special caller ID is used, which gives the number digits when receiving a tone frequency of 500 Hz. Previously, the caller ID number was requested only when entering the intercity, but for local connections it was not required. Now, all calls began to pass through the IMS core and calls with the number “anonymous” became unacceptable. It took very hard work, both from our side and from the engineers of the AO equipment in order to ensure 100% recognizable signals. The signals, of course, are analog, transmitted by a multi-frequency code.
The second difficulty is paired subscribers. A unique invention of Soviet telephonists, which allowed connecting two phones one copper pair. In this case, paired phones differ only in the number of thousands or hundreds. The pairing of subscribers is made through a diode isolation. And for an incoming call, the ringing voltage is polarized relative to either the wire “a” or the wire “b”. Modernization of the PBX did not involve interference in the subscriber cross, and we had to implement the work with this archaism, finalizing the solution at the hardware and software level. Were installed blocks, polarizing, with an incoming call, bell voltage relative to the wire "a" or wire "b".
The third difficulty, or rather, the task is the organization of a monitoring and maintenance system. Plus training staff. The station engineers who (under the hour) worked for 20 years with analog modules had to learn how to work with the “digital”, to understand the basic principles of TDM and IP telephony. It took about 1 month, even a manual was published with the participation of SPbGUT, but as a result, everything went well.
What was the result?
1. Most of the analog equipment in Moscow was dismantled. Transit hubs (UIS and UVS) are completely dismantled.
2. By saving a small part of the analog equipment, it was not necessary to get into the subscriber cross, i.e. instead of re-soldering 10,000 double-conductors, we had to switch the standard pads in 45 cabinets of IShK and MSC.
3. The duration of switching one PBX to the new scheme averaged 3 days. 153 PBXs in Moscow were switched in about 3 months.
4. Now all subscribers have access to the benefits of digital telephony, including DTMF dialing, digital caller ID, additional services, etc.
5. For the operator, analog subscribers have become fully digital with the possibility of billing, service management, switching on / off using the same principles from the IMS core.
6. Electricity consumption has fallen. The number of attendants decreased. The outflow of subscribers has decreased.
Instead of conclusion
The modernization is certainly temporary, as it retains some (albeit small) analog equipment. However, it is a remarkable technical solution that allows solving important tactical tasks and concentrating on strategic ones, such as the introduction of PON, which is now being actively implemented in Moscow.