Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
jason at jasonjgw.net
Guest





PostPosted: Mon Jun 01, 2009 10:27 pm    Post subject: [Freeswitch-users] How to pass a call from one FS to another Reply with quote

Brad Tuan <brad.tuan@gmail.com> wrote:
Quote:
This question can be separated into two part:
1.Pass a call to another FS

uuid_deflect or uuid_transfer, depending on whether the call has been answered
by the first FS instance or not. See the wiki.
Quote:

2.Receive a call from another FS

Provide a dial plan entry in the second FS that handles the call appropriately
after the deflect or transfer.

You haven't explained what you're trying to do - a general question warrants a
general answer. I am assuming the call is arriving at one FS system, and
(before or after answering it), you want to move it to another FS system.
That's the question I've answered above. The wiki documents the syntax.


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
jason at jasonjgw.net
Guest





PostPosted: Mon Jun 01, 2009 11:06 pm    Post subject: [Freeswitch-users] How to pass a call from one FS to another Reply with quote

Brad Tuan <brad.tuan@gmail.com> wrote:
Quote:
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@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.



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
jason at jasonjgw.net
Guest





PostPosted: Tue Jun 02, 2009 12:59 am    Post subject: [Freeswitch-users] How to pass a call from one FS to another Reply with quote

Brad Tuan <brad.tuan@gmail.com> wrote:
Quote:
I have tried

<extension name="remoteFreeswitch">
<condition field="destination_number" expression="^014(\d+)$">
<action application="bridge" data="sofia/external/$1 at
192.168.141.187<http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
:5080"/>
</condition>
</extension>

But the console moniter return :
[INFO] mod_dialplan_xml.c:233 dialplan_hunt() Processing 1001->01497710001
in context default
[WARNING] mod_sofia.c:2546 sofia_outgoing_channel() Cannot locate registered
user 97710001 at 192.168.141.187:5080@external
[NOTICE] mod_sofia.c:2642 sofia_outgoing_channel() Close Channel N/A
[CS_NEW]
[ERR] switch_ivr_originate.c:1425 switch_ivr_originate() Cannot create
outgoing channel of type [sofia] cause: [USER_NOT_REGISTERED]
[INFO] mod_dptools.c:1998 audio_bridge_function() OriginateFailed. Cause:
USER_NOT_REGISTERED

I am sure that 97710001 is a online user on "192.168.141.187", What's
wrong??

It will work if you use a domain name for the host rather than an IP address.


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
jason at jasonjgw.net
Guest





PostPosted: Tue Jun 02, 2009 1:06 am    Post subject: [Freeswitch-users] How to pass a call from one FS to another Reply with quote

Also, if the other FS box is behind the same NAT you're on, you should be
using the internal profile:
sofia/internal/$1@192.168.xxx.xxx or whatever.


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
jason at jasonjgw.net
Guest





PostPosted: Tue Jun 02, 2009 3:24 am    Post subject: [Freeswitch-users] How to pass a call from one FS to another Reply with quote

Brad Tuan <brad.tuan@gmail.com> wrote:
Quote:
I have tried

<extension name="transfer_to_MeiLan">
<condition field="destination_number" expression="^014(\d+)$">
<action application="bridge" data="sofia/internal/$1%192.168.141.187"/>

Change the % to an @ in the above.


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services