add startup-script to mod_lua

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9075 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West
2008-07-17 20:31:49 +00:00
parent e23ce1f5db
commit ccbf39361f
2 changed files with 14 additions and 0 deletions
+5
View File
@@ -49,6 +49,7 @@ static struct {
} globals;
int luaopen_freeswitch(lua_State * L);
int lua_thread(const char *text);
static int panic(lua_State * L)
{
@@ -274,6 +275,10 @@ static switch_status_t do_config(void)
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "binding '%s' to '%s'\n", globals.xml_handler, val);
switch_xml_bind_search_function(lua_fetch, switch_xml_parse_section_string(val), NULL);
}
} else if (!strcmp(var, "startup-script")) {
if (val) {
lua_thread(val);
}
}
}
}