You can use gateway...
Lets Say you have two Freeswitchs A 192.168.1.10 and B 192.168.2.10
In FS A you have a extension 1001, and in FS B extension 2001
In FS A, you need a gateway in external profile, to connect with FS B, its like:
<include>
<gateway name="gateway-fs-b">
<param name="proxy" value="192.168.2.10"/>
<param name="register" value="true"/>
<param name="username" value="2000"/>
<param name="password" value="1234"/>
</gateway>
</include>
You can read more in
Then when you make a call in FS A, in your dialplan, you need to make a bridge using gateway
<include> <extension name="To FS B">
<condition field="destination_number" expression="(2...)">
<action application="bridge" data="sofia/gateway/gateway-fs-b/${destination_number}"/>
</condition>
</extension>
</include>
Now when you make a Call, to 2XXX, you shoud receive a call in FS-B
In FS B, you need to have extension 2000, used by gateway to register and to make calls
And of course, extension 2001.
If you want to receive Caller ID 1001 of FS A
dont use variables in extension 2000.xml
<variable name="effective_caller_id_name" value="Extension 2000"/>
<variable name="effective_caller_id_number" value="2000"/>
It's a way to do this.
--