fix lua originate

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9297 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West
2008-08-14 17:35:46 +00:00
parent 23c0d9ebbf
commit 12f01067c5
3 changed files with 12 additions and 6 deletions
+8 -3
View File
@@ -59,10 +59,15 @@ void Session::setLUA(lua_State * state)
}
void Session::originate(CoreSession *a_leg_session, char *dest, int timeout)
int Session::originate(CoreSession *a_leg_session, char *dest, int timeout)
{
CoreSession::originate(a_leg_session, dest, timeout);
setLUA(L);
int x = CoreSession::originate(a_leg_session, dest, timeout);
if (x) {
setLUA(L);
}
return x;
}
lua_State *Session::getLUA()