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> wrote:
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



--
Anthony Minessale II

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

AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org
pstn:213-799-1400