]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
include session in hangup hook
authorBrian West <brian@freeswitch.org>
Mon, 14 Jul 2008 15:38:44 +0000 (15:38 +0000)
committerBrian West <brian@freeswitch.org>
Mon, 14 Jul 2008 15:38:44 +0000 (15:38 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9015 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/languages/mod_lua/freeswitch_lua.cpp

index 84e36943faf5e5475bd25a6ed60ce7e3c40d1dfc..437335b8080406b9a4aee919346e688783160c7f 100644 (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");