Here’s an example how to do it with FreePBX https://wiki.freepbx.org/display/FDT/Remote+BLF’s+using+PJSIP
Once you can monitor the hints on both servers you should be able to use the same dialplan logic you posted above.
Here’s an example how to do it with FreePBX https://wiki.freepbx.org/display/FDT/Remote+BLF’s+using+PJSIP
Once you can monitor the hints on both servers you should be able to use the same dialplan logic you posted above.