提交 f7936900 authored 作者: Anthony Minessale's avatar Anthony Minessale

update

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4835 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 1eafc860
......@@ -2663,7 +2663,6 @@ static void js_parse_and_execute(switch_core_session_t *session, char *input_cod
for (y = 0; y < argc; y++) {
snprintf(buf, sizeof(buf), "~argv[%d] = \"%s\";", x++, argv[y]);
eval_some_js(buf, cx, javascript_global_object, &rval);
}
}
......@@ -2764,10 +2763,13 @@ static void message_query_handler(switch_event_t *event)
if (account) {
char *text;
text = switch_mprintf("mwi.js %s", account);
text = switch_mprintf("%s%smwi.js", SWITCH_GLOBAL_dirs.script_dir, SWITCH_PATH_SEPARATOR);
assert(text != NULL);
js_thread_launch(text);
if (switch_file_exists(text) == SWITCH_STATUS_SUCCESS) {
js_thread_launch(text);
}
free(text);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论