[Freeswitch-users] How to pass a call from one FS to another FS ??

Jason White jason at jasonjgw.net
Mon Jun 1 21:04:38 PDT 2009


Brad Tuan <brad.tuan at gmail.com> wrote:
> When User1( User of FS1 ) call User2( User of FS2 ) ,
> 
> FS1 will pass the call to FS2 before answering,

You just need to write a dial plan extension that matches the call on FS1 and
bridges it to FS2.
For example:

<include>
  <extension name="remoteFreeswitch">
    <condition field="destination_number" expression="^014(\d+)$">
      <action application="bridge"
data="sofia/external/$1 at fs2.example.org:5080"/>
    </condition>
  </extension>
</include>

Dialing any extension with the prefix 014 will call that extension (with the
prefix removed) on fs2.example.org at port 5080. If FS2 has the default
configuration installed, the call will land in the public context of fs2,
where you can transfer it to the default context or take other actions
depending on the extension called.






More information about the FreeSWITCH-users mailing list