mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-08 05:11:51 +00:00
FS-4015 --resolve
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
using namespace LUA;
|
||||
|
||||
extern "C" {
|
||||
int docall(lua_State * L, int narg, int clear, int perror);
|
||||
int docall(lua_State * L, int narg, int nresults, int perror);
|
||||
};
|
||||
|
||||
Session::Session():CoreSession()
|
||||
@@ -147,7 +147,7 @@ void Session::do_hangup_hook()
|
||||
arg_count++;
|
||||
}
|
||||
|
||||
docall(L, arg_count, 0, 1);
|
||||
docall(L, arg_count, 1, 1);
|
||||
|
||||
const char *err = lua_tostring(L, -1);
|
||||
|
||||
@@ -294,7 +294,7 @@ switch_status_t Session::run_dtmf_callback(void *input, switch_input_type_t ityp
|
||||
arg_count++;
|
||||
}
|
||||
|
||||
docall(L, arg_count, 0, 1);
|
||||
docall(L, arg_count, 1, 1);
|
||||
|
||||
ret = lua_tostring(L, -1);
|
||||
lua_pop(L, 1);
|
||||
@@ -319,7 +319,7 @@ switch_status_t Session::run_dtmf_callback(void *input, switch_input_type_t ityp
|
||||
arg_count++;
|
||||
}
|
||||
|
||||
docall(L, arg_count, 0, 1);
|
||||
docall(L, arg_count, 1, 1);
|
||||
ret = lua_tostring(L, -1);
|
||||
lua_pop(L, 1);
|
||||
|
||||
@@ -397,7 +397,7 @@ int Dbh::query_callback(void *pArg, int argc, char **argv, char **cargv)
|
||||
lua_settable(lua_fun->L, -3);
|
||||
}
|
||||
|
||||
docall(lua_fun->L, 1, 0, 1);
|
||||
docall(lua_fun->L, 1, 1, 1);
|
||||
ret = lua_tonumber(lua_fun->L, -1);
|
||||
lua_pop(lua_fun->L, 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user