<div dir="ltr">Probably best to send the call into freeswitch2 and route it to the user within the dialplan.<div><br></div><div>You can also share registration between the servers which would let you call them from freeswitch1 directly. However many firewalls, especially with NAT might not allow you to do so from anywhere except the server they registered to. Therefore routing via freeswitch2 would be more reliable.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 24 September 2014 08:48, akhil garg <span dir="ltr"><<a href="mailto:akhilgarg7@gmail.com" target="_blank">akhilgarg7@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div><br></div><div> --------------------- --------------------</div><div> | Freeswitch 1 | |Freeswitch 2 |</div><div> ------------------------------------> | |----------------------------------------------------------->| |<------------------------------------------</div><div> (user 100 registered to FS1) | | | | (user 200 registered to FS2)</div><div> -------------------- --------------------</div><div><br></div><div>Freeswitch 1:</div><div>------------------</div><div>Created a gateway ( with User 2222) in external sip_profile which registers to Freeswitch2</div><div>User 100 registers to Freeswitch1 in external sip_profile.</div><div>Public dialplan is as below</div><div><br></div><div><div> <extension name=gw_To_fs2"></div><div> <condition field="destination_number" expression="^200$"></div><div> <action application="set" data="dialed_extension=$1"/><br></div><div> <action application="set" data="dialed_domain=IP of FS2"/></div><div> <action application="bridge" data="sofia/gateway/sip_provider_1/${dialed_extension}"/></div><div> </condition></div><div> </extension></div></div><div><br></div><div><br></div><div>Freeswitch 2:</div><div>------------------</div><div>User 200 registers to Freeswitch2 in external sip_profile.<br></div><div><br></div><div>Public dialplan is as below</div><div><br></div><div><div> <extension name="client_1"></div><div> <condition field="destination_number" expression="^200$"></div><div> <action application="set" data="dialed_domain=IP of FS2"/></div><div> <action application="set" data="dialed_extension=$1"/></div><div> <action application="set" data="hangup_after_bridge=true"/></div><div> <action application="bridge" data="user/${dialed_extension}@${dialed_domain}"/><br></div><div> </condition></div><div> </extension></div></div><div><br></div><div><br></div><div>Query:</div><div>---------</div><div>I am able to call 200 from user 100 using gateway (configured on Freeswitch1 and registered on Freeswitch2)</div><div><br></div><div>How can I call User 100 from from user 200 without confuring a gateway on Freeswitch2? </div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br>regards,<br>akhil
</font></span></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>