[Freeswitch-svn] [commit] r9015 - freeswitch/trunk/src/mod/languages/mod_lua

Freeswitch SVN brian at freeswitch.org
Mon Jul 14 11:38:44 EDT 2008


Author: brian
Date: Mon Jul 14 11:38:44 2008
New Revision: 9015

Modified:
   freeswitch/trunk/src/mod/languages/mod_lua/freeswitch_lua.cpp

Log:
include session in hangup hook

Modified: freeswitch/trunk/src/mod/languages/mod_lua/freeswitch_lua.cpp
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_lua/freeswitch_lua.cpp	(original)
+++ freeswitch/trunk/src/mod/languages/mod_lua/freeswitch_lua.cpp	Mon Jul 14 11:38:44 2008
@@ -86,7 +86,7 @@
 {
 	if (hh && !mark) {
 		const char *err = NULL;
-		int arg_count = 1;
+		int arg_count = 2;
 		mark++;
 
 		if (!getLUA()) {
@@ -94,6 +94,7 @@
 		}
 
 		lua_getfield(L, LUA_GLOBALSINDEX, (char *) hangup_func_str);
+		lua_getfield(L, LUA_GLOBALSINDEX, uuid);
 
 		lua_pushstring(L, hook_state == CS_HANGUP ? "hangup" : "transfer");
 



More information about the Freeswitch-svn mailing list