Added test_reactive to mod_lua freeswitch.Dbh

This commit is contained in:
Leon de Rooij
2011-01-27 14:17:49 +01:00
parent a01814794c
commit 425df0c783
4 changed files with 191 additions and 0 deletions
@@ -350,6 +350,16 @@ bool Dbh::connected()
return m_connected;
}
bool Dbh::test_reactive(char *test_sql, char *drop_sql, char *reactive_sql)
{
if (m_connected) {
if (switch_cache_db_test_reactive(dbh, test_sql, drop_sql, reactive_sql) == SWITCH_TRUE) {
return true;
}
}
return false;
}
int Dbh::query_callback(void *pArg, int argc, char **argv, char **cargv)
{
SWIGLUA_FN *lua_fun = (SWIGLUA_FN *)pArg;