We recommend to install 2 seperate 3cx system in both office and set a pbx systemin both office first.
then if you have installed 3cx version 4 alpa release you will see trunking option for 2 3cx system using that you can trunk both of your ofice pbx system.