Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] How to mix 3 way voice ?


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





PostPosted: Tue Aug 26, 2008 11:42 pm    Post subject: [Freeswitch-users] How to mix 3 way voice ? Reply with quote

Hello :

Here is the testing dialplan.

<extension name="070_gogotalk">
<condition field="destination_number" expression="^(070[0-9].*)">
<!-- action application="bind_meta_app" data="3 a a
execute_extension::att_xfer XML inter2"/ -->
<action application="bind_meta_app" data="3 a a
javascript::calltest.js" />
<action application="bridge" data="sofia/gateway/sip.ttn.net/$1"/>
</condition>
</extension>

While caller call out a 070xxx user , during talk caller press "*3" ,
FW execute calltest.js

### calltest.js ###
// Create new_session
n_sess = new Session() ;
res = n_sess.originate(n_sess, "sofia/inter2/1527%210.243.126.72" );

// wait for it ... answer
n_sess.waitForAnswer(10000);

// IF everybody is ready, then bridge our current session & the new_session
//session.ready() && new.session ready
if ( n_sess.ready() ) {
//bridge(session, n_sess);
//session.execute("threeway", sv_uuid ) ;
//n_sess.execute("threeway", n_sess.uuid ) ;
session.execute("conference", "3001@default" ) ;
n_sess.execute("conference", "3001@default" ) ;
}

No matter I tried "bridge" , "threeway" or conference , there always
one leg hangup.

2008-08-27 12:22:37 [NOTICE] switch_channel.c:534
switch_channel_set_name() New Channel sofia/inter2/1527 [5
fe74280-953d-4aba-a738-f0b8e01bfc60]
2008-08-27 12:22:38 [NOTICE] sofia.c:2167 sofia_handle_sip_i_state()
Ring-Ready sofia/inter2/1527!
2008-08-27 12:22:41 [NOTICE] sofia.c:2491 sofia_handle_sip_i_state()
Channel [sofia/inter2/1527] has been answered
2008-08-27 12:23:06 [NOTICE] sofia.c:2545 sofia_handle_sip_i_state()
Hangup sofia/external/0702058899 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]

How to put all 3 legs into a conference room ? Should I have to
specify each uuid ?

Thanks !

_______________________________________________
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
anthony.minessale at g...
Guest





PostPosted: Wed Aug 27, 2008 9:29 am    Post subject: [Freeswitch-users] How to mix 3 way voice ? Reply with quote

when you use the bind meta app to the att_xfer put the first guy on hold and call the 2nd guy then press 0 to make it into a 3 way call.


On Tue, Aug 26, 2008 at 11:40 PM, Lee JJ <jengjr@gmail.com (jengjr@gmail.com)> wrote:
Quote:
Hello :

Here is the testing dialplan.

<extension name="070_gogotalk">
<condition field="destination_number" expression="^(070[0-9].*)">
<!-- action application="bind_meta_app" data="3 a a
execute_extension::att_xfer XML inter2"/ -->
<action application="bind_meta_app" data="3 a a
javascript::calltest.js" />
<action application="bridge" data="sofia/gateway/sip.ttn.net/$1"/>
</condition>
</extension>

While caller call out a 070xxx user , during talk caller press "*3" ,
FW execute calltest.js

### calltest.js ###
// Create new_session
n_sess = new Session() ;
res = n_sess.originate(n_sess, "sofia/inter2/1527%210.243.126.72" );

// wait for it ... answer
n_sess.waitForAnswer(10000);

// IF everybody is ready, then bridge our current session & the new_session
//session.ready() && new.session ready
if ( n_sess.ready() ) {
//bridge(session, n_sess);
//session.execute("threeway", sv_uuid ) ;
//n_sess.execute("threeway", n_sess.uuid ) ;
session.execute("conference", "3001@default" ) ;
n_sess.execute("conference", "3001@default" ) ;
}

No matter I tried "bridge" , "threeway" or conference , there always
one leg hangup.

2008-08-27 12:22:37 [NOTICE] switch_channel.c:534
switch_channel_set_name() New Channel sofia/inter2/1527 [5
fe74280-953d-4aba-a738-f0b8e01bfc60]
2008-08-27 12:22:38 [NOTICE] sofia.c:2167 sofia_handle_sip_i_state()
Ring-Ready sofia/inter2/1527!
2008-08-27 12:22:41 [NOTICE] sofia.c:2491 sofia_handle_sip_i_state()
Channel [sofia/inter2/1527] has been answered
2008-08-27 12:23:06 [NOTICE] sofia.c:2545 sofia_handle_sip_i_state()
Hangup sofia/external/0702058899 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]

How to put all 3 legs into a conference room ? Should I have to
specify each uuid ?

Thanks !

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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



--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
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