[Freeswitch-users] Transfer/shift calls from one freeswitch to other freeswitch box

Luiz Fernando Softov fernando at softov.com.br
Thu Apr 2 01:17:31 MSD 2015


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

https://wiki.freeswitch.org/wiki/Clarification:gateways

https://freeswitch.org/confluence/display/FREESWITCH/Gateways+Configuration


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.


-- 
Luiz Fernando Softov
http://www.softov.com.br
fernando at softov.com.br
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150401/b3294f34/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list