Is it possible to connect PBX to another PBX?

We have a basic PBX (Panasonic KX TDA-200), which connect all external numbers and it is our main server. There is a new building to which it is impossible to stretch the line and so it was decided to purchase a VoIP server (asterisk).
Can this VoIP server is connected to PBX?
An example of how we would like to do: When calling from external numbers fall within the PBX, the PBX forwards on a man, but it turns out you need to transfer the call to the other person that uses VoIP, you need to collect 0422 (0 indicates that you want to route the call to VoIP, and the rest is the number of man).
But if the VoIP user is required to reach the outside line, he enters 0-9-number, where 0 is the connection to the PBX, and 9-use of external lines.
July 8th 19 at 16:11
3 answers
July 8th 19 at 16:13
Right: Now asterisk is the core PBX. Panasonic to use as a simple FXS gateway.
All incoming. All voice me. All on asterisk.
To connect better on the E1 stream (though it depends on the number of people on the Panasonic)
July 8th 19 at 16:15
Had only to replace the motherboard TDA to TDE and no crutches not think I had. Would be distributed VoIP with Panasonic and.
July 8th 19 at 16:17
It is better to connect a cloud PBX no matter where they are subscribers.

Find more questions by tags ATSVoIP