mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-08 05:11:51 +00:00
fix lua originate
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9297 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user