Nik, What are you building? I'm wondering if this is the correct approach for your application. You might be better off using the even socket and controlling your calls from a central point.
-MC On Wed, Feb 18, 2009 at 11:26 AM, Nik Middleton <[email protected]> wrote: > Hi Guys, > > > > It's not clear from the docs how I can originate a call from within an lua > script > > > > This what works in js, > > > > Question. How do I instantiate a new session, do I use the execute to dial, > and same for bridge? > > > > Regards, > > > > if (!first_session.ready()) > > > > var new_session = new Session(tdial-string); > > > > if (!first_session.ready()) { > > disp_call(DROP) > > exit(); > > > > > > > > new_session.answer(); > > > > if (new_session.ready()) { > > bridge(first_session, new_session); > > } > > _______________________________________________ > Freeswitch-users mailing list > [email protected] > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > _______________________________________________ Freeswitch-users mailing list [email protected] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
