include session in hangup hook

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9015 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2008-07-14 15:38:44 +00:00
parent b55bd6370e
commit d6022f302a

View File

@ -86,7 +86,7 @@ void Session::do_hangup_hook()
{
if (hh && !mark) {
const char *err = NULL;
int arg_count = 1;
int arg_count = 2;
mark++;
if (!getLUA()) {
@ -94,6 +94,7 @@ void Session::do_hangup_hook()
}
lua_getfield(L, LUA_GLOBALSINDEX, (char *) hangup_func_str);
lua_getfield(L, LUA_GLOBALSINDEX, uuid);
lua_pushstring(L, hook_state == CS_HANGUP ? "hangup" : "transfer");