tweak for MODLANG-77

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9244 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2008-08-11 18:47:30 +00:00
parent 7bf1651388
commit 6f6cd375ad
4 changed files with 48 additions and 4 deletions
+8 -3
View File
@@ -50,16 +50,21 @@ bool Session::end_allow_threads()
void Session::setLUA(lua_State * state)
{
sanity_check_noreturn;
L = state;
if (uuid) {
if (session && allocated && uuid) {
lua_setglobal(L, uuid);
lua_getfield(L, LUA_GLOBALSINDEX, uuid);
}
}
void Session::originate(CoreSession *a_leg_session, char *dest, int timeout)
{
CoreSession::originate(a_leg_session, dest, timeout);
setLUA(L);
}
lua_State *Session::getLUA()
{
if (!L) {