I now have 2 servers, pbx on 10.1.0.50 and pbx1 on 10.1.0.153
I have configured IAX and they talk to each other quite happily.
This is the scenario:
Building A has the ISDN lines and pbx
Building B has pbx1 and a VPN connection to building A
I want all EXTERNAL calls from building B (pbx1) to go via the VPN to building A and out of pbx.
I want all INTERNAL calls made in building B NOT to go via building A but to be handled by pbx1.
Can this be done and if so how?