update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4835 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
1eafc86063
commit
f79369002d
|
@ -2663,7 +2663,6 @@ static void js_parse_and_execute(switch_core_session_t *session, char *input_cod
|
||||||
for (y = 0; y < argc; y++) {
|
for (y = 0; y < argc; y++) {
|
||||||
snprintf(buf, sizeof(buf), "~argv[%d] = \"%s\";", x++, argv[y]);
|
snprintf(buf, sizeof(buf), "~argv[%d] = \"%s\";", x++, argv[y]);
|
||||||
eval_some_js(buf, cx, javascript_global_object, &rval);
|
eval_some_js(buf, cx, javascript_global_object, &rval);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2764,10 +2763,13 @@ static void message_query_handler(switch_event_t *event)
|
||||||
if (account) {
|
if (account) {
|
||||||
char *text;
|
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);
|
assert(text != NULL);
|
||||||
|
|
||||||
js_thread_launch(text);
|
if (switch_file_exists(text) == SWITCH_STATUS_SUCCESS) {
|
||||||
|
js_thread_launch(text);
|
||||||
|
}
|
||||||
|
|
||||||
free(text);
|
free(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue