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

Lee JJ jengjr at gmail.com
Tue Aug 26 21:40:05 PDT 2008


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 at default" ) ;
    n_sess.execute("conference",  "3001 at 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 !




More information about the FreeSWITCH-users mailing list