Thanks Jeff, When I try NULL I get this: freeswitch@internal> 2011-04-12 14:49:31.582049 [ERR] mod_lua.cpp:191 Error in originate (arg 2), ex pected 'CoreSession *' got 'string' stack traceback: [C]: in function 'originate' /usr/local/freeswitch/scripts/test_originate.lua:3: in main chunk I've been digging through the source code, and I can't find where 4 args are required. I see this in freeswitch_lua.cpp: int Session::originate(CoreSession *a_leg_session, char *dest, int timeout) { int x = CoreSession::originate(a_leg_session, dest, timeout); if (x) { setLUA(L); } return x; } ----------------------- Eric Z. Beard, CTO Loop LLC w (877) 850-2010 x9249 m (727) 776-2768 eric@loopfx.com -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Jeff Lenk Sent: Tuesday, April 12, 2011 2:42 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Lua session originate The fourth parameter is the switch_state_handler_table reference and for most uses(script language) you should just pass null but I dont use lua so I dont know the details on that. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Lua-session-originate-tp626612... Sent from the freeswitch-users mailing list archive at Nabble.com. _______________________________________________ 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