Hi,
--------------------- --------------------
| Freeswitch 1 | |Freeswitch 2 |
------------------------------------> | |----------------------------------------------------------->| |<------------------------------------------
(user 100 registered to FS1) | | | | (user 200 registered to FS2)
-------------------- --------------------
Freeswitch 1:
------------------
Created a gateway ( with User 2222) in external sip_profile which registers to Freeswitch2
User 100 registers to Freeswitch1 in external sip_profile.
Public dialplan is as below
<extension name=gw_To_fs2">
<condition field="destination_number" expression="^200$">
<action application="set" data="dialed_extension=$1"/>
<action application="set" data="dialed_domain=IP of FS2"/>
<action application="bridge" data="sofia/gateway/sip_provider_1/${dialed_extension}"/>
</condition>
</extension>
Freeswitch 2:
------------------
User 200 registers to Freeswitch2 in external sip_profile.
Public dialplan is as below
<extension name="client_1">
<condition field="destination_number" expression="^200$">
<action application="set" data="dialed_domain=IP of FS2"/>
<action application="set" data="dialed_extension=$1"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="bridge" data="user/${dialed_extension}@${dialed_domain}"/>
</condition>
</extension>
Query:
---------
I am able to call 200 from user 100 using gateway (configured on Freeswitch1 and registered on Freeswitch2)
How can I call User 100 from from user 200 without confuring a gateway on Freeswitch2?
--
regards,
akhil