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:
parent
b55bd6370e
commit
d6022f302a
|
@ -86,7 +86,7 @@ void Session::do_hangup_hook()
|
||||||
{
|
{
|
||||||
if (hh && !mark) {
|
if (hh && !mark) {
|
||||||
const char *err = NULL;
|
const char *err = NULL;
|
||||||
int arg_count = 1;
|
int arg_count = 2;
|
||||||
mark++;
|
mark++;
|
||||||
|
|
||||||
if (!getLUA()) {
|
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, (char *) hangup_func_str);
|
||||||
|
lua_getfield(L, LUA_GLOBALSINDEX, uuid);
|
||||||
|
|
||||||
lua_pushstring(L, hook_state == CS_HANGUP ? "hangup" : "transfer");
|
lua_pushstring(L, hook_state == CS_HANGUP ? "hangup" : "transfer");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue